CVE-2006-6799

Cacti < 0.8.6i - SQL Injection via cmd.php Arguments

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2006-6799. PoCs published by rgod.

AI-analyzed exploit summary This exploit targets a SQL injection vulnerability in Cacti <= 0.8.6i via the 'cmd.php' script, leveraging improper input validation to inject malicious SQL commands. The injected commands manipulate the 'poller_item' table to execute arbitrary commands via a popen() call in the poller.php script.

Description

SQL injection vulnerability in Cacti 0.8.6i and earlier, when register_argc_argv is enabled, allows remote attackers to execute arbitrary SQL commands via the (1) second or (2) third arguments to cmd.php. NOTE: this issue can be leveraged to execute arbitrary commands since the SQL query results are later used in the polling_items array and popen function.

Exploits (1)

exploitdb WORKING POC VERIFIED
by rgod · phpwebappsphp
https://www.exploit-db.com/exploits/3029

This exploit targets a SQL injection vulnerability in Cacti <= 0.8.6i via the 'cmd.php' script, leveraging improper input validation to inject malicious SQL commands. The injected commands manipulate the 'poller_item' table to execute arbitrary commands via a popen() call in the poller.php script.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti <= 0.8.6i
No auth needed
Prerequisites: register_argc_argv must be enabled in PHP configuration · Access to the 'cmd.php' script
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (16)

Core 16
Core References
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1250
Vendor Advisory vendor-advisory x_refsource_openpkg
http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.001.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23917
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:015
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23528
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1017451
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/31177
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200701-23.xml
Vendor Advisory vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2007_07_cacti.html
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2006/5193
Various Sources x_refsource_confirm
http://www.cacti.net/release_notes_0_8_6j.php
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23665
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/3029
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/21799
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23941
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/457290/100/0/threaded

Scores

EPSS 0.0244
EPSS Percentile 82.2%

Details

Status published
Products (1)
the_cacti_group/cacti < 0.8.6i
Published Dec 28, 2006
Tracked Since Feb 18, 2026