SQL Injection Vulnerability in Cacti: Remote Code Execution Risk

cacti Updated 02 Oct 2025

Summary

15/12/2011
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2011-4824: SQL injection vulnerability in auth_login.php in Cacti before 0.8.7h allows remote attackers to execute arbitrary SQL commands via the login_username parameter. Affects cacti versions < 0.8.7i-1. Fixed in 0.8.7i-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Cacti is an open-source network monitoring and graphing tool that utilizes the RRDTool (Round Robin Database Tool) to store data. It is widely used for monitoring network traffic and performance metrics. The tool provides a web-based interface for users to create graphs and manage data sources. However, Cacti has been found to have a critical SQL injection vulnerability that can be exploited by remote attackers, potentially leading to unauthorized access and manipulation of the database.

Vulnerability Detail

The vulnerability, identified as CVE-2011-4824, exists in the auth_login.php file of Cacti versions prior to 0.8.7h. It allows remote attackers to execute arbitrary SQL commands through the 'login_username' parameter. This SQL injection flaw can lead to unauthorized access to sensitive data, manipulation of database records, and potentially full control over the Cacti installation, posing significant risks to the integrity and confidentiality of the monitored data.

How To Fix

Minimum fixed version

0.8.7i-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade cacti

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not possible, consider restricting access to the Cacti web interface to trusted IP addresses only. This can be done by configuring your web server settings to allow access only from specific IP ranges.

Conclusion

The SQL injection vulnerability in Cacti poses a significant risk to users of the software, allowing remote attackers to execute arbitrary SQL commands. It is crucial to update to the latest patched version to mitigate this risk and ensure the security of your network monitoring data.

See every vulnerability recorded for cacti →

Share this vulnerability

FAQ

SQL injection is a code injection technique that exploits a vulnerability in an application's software by allowing attackers to interfere with the queries that an application makes to its database.

If you are running a version of Cacti prior to 0.8.7h, your installation is vulnerable to this SQL injection flaw. You can check your version in the Cacti web interface or by running 'cacti -v' in the terminal.

Exploitation of this vulnerability can lead to unauthorized access to the database, data manipulation, and potentially complete control over the Cacti application, which can compromise the security of your network monitoring.

Yes, tools like Vulert can help monitor and alert you in real-time for open-source vulnerabilities in your software without requiring access to the code or installation.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for cacti.

How To Fix

Minimum fixed version

0.8.7i-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade cacti

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback