Cacti cmd.php Multiple Parameter SQL Injection Arbitrary Command Execution

high Nessus Plugin ID 23963


The remote web server contains a PHP script that allows arbitrary command execution.


The remote host is running Cacti, a web-based, front end to RRDTool for network graphing.

The version of Cacti on the remote host does not properly check to ensure that the 'cmd.php' script is being run from a commandline and fails to sanitize user-supplied input before using it in database queries. Provided PHP's 'register_argc_argv' parameter is enabled, which is the default, an attacker can launch SQL injection attacks against the underlying database and even to execute arbitrary code on the remote host subject to the privileges of the web server user id.


Upgrade to Cacti version 0.8.6j or later.

See Also

Plugin Details

Severity: High

ID: 23963

File Name: cacti_cmd_php_cmd_exec.nasl

Version: 1.25

Type: remote

Family: CGI abuses

Published: 1/2/2007

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information


Risk Factor: Medium

Score: 5.8


Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:the_cacti_group:cacti

Required KB Items: www/cacti

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 12/28/2006

Reference Information

CVE: CVE-2006-6799

BID: 21799