S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Oct 8, 2024

CVE-2024-29895 Scanner

CVE-2024-29895 Scanner - Command Injection vulnerability in Cacti

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
2.3k
Times Used
continuous scan runs
5.9k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-29895
10.0
CVSScritical
Exploitable remotely over the internet · no authentication required.

Cacti provides an operational monitoring and fault management framework. A command injection vulnerability on the 1.3.x DEV branch allows any unauthenticated user to execute arbitrary command on the server when `register_argc_argv` option of PHP is `On`. In `cmd_realtime.php` line 119, the `$poller_id` used as part of the command execution is sourced from `$_SERVER['argv']`, which can be controlled by URL when `register_argc_argv` option of PHP is `On`. And this option is `On` by default in many environments such as the main PHP Docker image for PHP. Commit 53e8014d1f082034e0646edc6286cde3800c683d contains a patch for the issue, but this commit was reverted in commit 99633903cad0de5ace636249de16f77e57a3c8fc.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
cactiby Cacti
= 1.3.x DEV
cactiby cacti
1.3.0
Updated Aug 22, 2026View on NVD →
Detail

Cacti is a software platform that provides operational monitoring and fault management, primarily used by IT administrators and network engineers to effectively monitor and maintain the health of infrastructure systems. It is favored for its graphing functionality, presenting data on network performance metrics in a visual format, and is highly customizable to fit the diverse needs of different network environments. Organizations of varying sizes rely on Cacti for ensuring that their systems are running efficiently and any performance issues are promptly identified and resolved. Used globally within datacenters and large corporate environments, the software supports an array of data sources, from network routers to application servers, allowing for comprehensive monitoring coverage. The flexibility and open-source nature of Cacti make it accessible for continual improvements and adaptations by its widespread community of users and developers.

The command injection vulnerability found in Cacti, specifically in the 1.3.x DEV branch, allows unauthorized users to inject and execute arbitrary commands on the hosting server, representing a critical security risk. This vulnerability is leveraged through a flaw where the `$poller_id` in the `cmd_realtime.php` is taken from `$_SERVER['argv']` enabling manipulation via URL when the `register_argc_argv` setting in PHP is `On`. Default configurations, such as those found in PHP Docker images, often have this setting enabled, increasing the susceptibility to exploitation. Successful exploitation can result in unauthorized access, data alteration, or further compromise of the affected server. Implementation errors, combined with inactive security measures, could lead to severe network breaches or data exposure.

Technically, this vulnerability targets the `cmd_realtime.php` file in Cacti where the `$poller_id` parameter is vulnerable, allowing execution of injected commands. This vector relies heavily on the presence of the `register_argc_argv` setting being enabled, which is typical in many PHP deployments. The issue arises from unsanitized input processed by the PHP server, where the URL parameters craft the payload that eventually reaches command execution contexts. It provides an entry point for cyber attackers, enabling the potential for lateral movement within the network post-compromise. Developers and system administrators often overlook these settings, contributing to the persistence of such vulnerabilities in the production environment. Efficient patching and parameter validation are crucial to mitigate this security risk.

If exploited, this vulnerability could lead to severe damaging outcomes such as unauthorized command execution, complete compromise of the affected machine, potential pivoting to other network segments, or data manipulation. It poses a high risk of data exposure, loss or theft, unauthorized changes, and full administrative control over the compromised system by an attacker. This capability may further result in the disruption of services, risk of data corruption, and erosion of trust in the system's integrity among users and stakeholders. A successful attack could also lead to an organization's legal and financial liabilities due to potential breaches of data protection regulations.

REFERENCES

Solution Advice
  • Immediately disable the `register_argc_argv` setting if not required by the application to eliminate exploitation via this vector.
  • Apply any available patches from Cacti’s maintainers for resolving this vulnerability as a top priority.
  • Implement strict input validation to ensure user input is sanitized before being processed by the application.
  • Isolate the affected environment to restrict unauthorized access until the patch is applied properly.
  • Regularly audit and review PHP configurations to ensure minimal exposure to known vulnerabilities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.