{"id":"CVE-2024-29895","published":"2024-05-13T14:33:27Z","modified":"2024-08-02T01:17:58Z","title":"Cacti command injection in cmd_realtime.php","vendor":"Cacti","product":"cacti","tier":"core","eol":null,"affectedVersions":[{"vendor":"Cacti","product":"cacti","versions":["= 1.3.x DEV"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Cacti's cmd_realtime.php, on the 1.3.x DEV branch, passes a poller_id value taken from $_SERVER['argv'] into a server-side command, creating a command injection flaw. An unauthenticated remote attacker can execute arbitrary commands on the server through a crafted URL when PHP's register_argc_argv option is enabled, which is the default in many environments such as the official PHP Docker image.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T05:10:38Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.98826,"percentile":0.99927,"date":"2026-10-30","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-08-06","exploitedFirstSeen":"2024-08-06","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-06&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-06"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-07&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-07"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-14&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-14"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-15&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-15"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-19&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-19"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-20&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-20"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-22&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-22"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-23&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-23"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-24&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-24"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-26&host_type=src&vulnerability=cve-2024-29895","date":"2024-08-26"}],"evidenceTotal":369,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-cr28-x256-xf5m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Cacti/cacti/commit/53e8014d1f082034e0646edc6286cde3800c683d","tags":["x_refsource_MISC"]},{"url":"https://github.com/Cacti/cacti/commit/99633903cad0de5ace636249de16f77e57a3c8fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/cmd_realtime.php#L119","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2024-26876","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-26876","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2024-05-15","earliestUrl":"https://github.com/Stuub/CVE-2024-29895-CactiRCE-PoC","repos":[{"name":"Stuub/CVE-2024-29895-CactiRCE-PoC","url":"https://github.com/Stuub/CVE-2024-29895-CactiRCE-PoC","stars":21,"created":"2024-05-15"},{"name":"secunnix/CVE-2024-29895","url":"https://github.com/secunnix/CVE-2024-29895","stars":1,"created":"2024-05-16"}]},"nuclei":[{"id":"CVE-2024-29895","name":"Cacti cmd_realtime.php - Command Injection","severity":"critical","path":"http/cves/2024/CVE-2024-29895.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-29895.yaml"}],"first":{"date":"2024-05-15","source":"PoC-in-GitHub","url":"https://github.com/Stuub/CVE-2024-29895-CactiRCE-PoC"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-05-13","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-29895","provenance":"source"},{"date":"2024-05-15","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/Stuub/CVE-2024-29895-CactiRCE-PoC","provenance":"source"},{"date":"2024-08-06","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-06&host_type=src&vulnerability=cve-2024-29895","provenance":"source"}],"speed":{"daysToPublicExploit":2,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":67.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 816 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.99,"detail":"percentile 0.9993"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}