{"id":"CVE-2024-29895","state":"PUBLISHED","title":"Cacti command injection in cmd_realtime.php","description":"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.","publishedAt":"2024-05-13T14:33:27.594Z","updatedAt":"2024-08-02T01:17:58.192Z","severity":{"score":10,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["Cacti cacti"],"affected":[{"vendor":"Cacti","product":"cacti","versions":[{"version":"= 1.3.x DEV","status":"affected"}]}],"references":["https://github.com/Cacti/cacti/security/advisories/GHSA-cr28-x256-xf5m","https://github.com/Cacti/cacti/commit/53e8014d1f082034e0646edc6286cde3800c683d","https://github.com/Cacti/cacti/commit/99633903cad0de5ace636249de16f77e57a3c8fc","https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/cmd_realtime.php#L119"],"weaknesses":["CWE-77"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/29xxx/CVE-2024-29895.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-29895","state":"PUBLISHED","datePublished":"2024-05-13T14:33:27.594Z","dateUpdated":"2024-08-02T01:17:58.192Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-03-21T15:12:08.998Z"},"containers":{"cna":{"title":"Cacti command injection in cmd_realtime.php","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Cacti","product":"cacti","versions":[{"version":"= 1.3.x DEV","status":"affected"}]}],"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-cr28-x256-xf5m","name":"https://github.com/Cacti/cacti/security/advisories/GHSA-cr28-x256-xf5m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Cacti/cacti/commit/53e8014d1f082034e0646edc6286cde3800c683d","name":"https://github.com/Cacti/cacti/commit/53e8014d1f082034e0646edc6286cde3800c683d","tags":["x_refsource_MISC"]},{"url":"https://github.com/Cacti/cacti/commit/99633903cad0de5ace636249de16f77e57a3c8fc","name":"https://github.com/Cacti/cacti/commit/99633903cad0de5ace636249de16f77e57a3c8fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/cmd_realtime.php#L119","name":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/cmd_realtime.php#L119","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-77","lang":"en","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-05-13T14:33:27.594Z"},"source":{"advisory":"GHSA-cr28-x256-xf5m","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"cacti","product":"cacti","defaultStatus":"unknown","versions":[{"version":"1.3.0","status":"affected"}],"cpes":["cpe:2.3:a:cacti:cacti:1.3.0:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-29895","role":"CISA Coordinator","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2024-05-13T17:31:11.680843Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:56:45.934Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-cr28-x256-xf5m","name":"https://github.com/Cacti/cacti/security/advisories/GHSA-cr28-x256-xf5m","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/Cacti/cacti/commit/53e8014d1f082034e0646edc6286cde3800c683d","name":"https://github.com/Cacti/cacti/commit/53e8014d1f082034e0646edc6286cde3800c683d","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/Cacti/cacti/commit/99633903cad0de5ace636249de16f77e57a3c8fc","name":"https://github.com/Cacti/cacti/commit/99633903cad0de5ace636249de16f77e57a3c8fc","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/cmd_realtime.php#L119","name":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/cmd_realtime.php#L119","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T01:17:58.192Z"}}]}}}