{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29895 exists.","fix":"No fix has been published for CVE-2024-29895 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-29895 is a critical command injection vulnerability in cacti, published on 13 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-29895 and fix it if it is affected.\n\nWhat it is: CVE-2024-29895 is a critical command injection vulnerability in cacti, published on 13 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29895 exists.\n\nAffected product: cacti. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-29895/ (Markdown: https://insights.sbomify.com/CVE-2024-29895/index.md)","id":"CVE-2024-29895","markdown":"https://insights.sbomify.com/CVE-2024-29895/index.md","name":"CVE-2024-29895","record":{"aliases":["GHSA-cr28-x256-xf5m","UBUNTU-CVE-2024-29895"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Cacti monitoring framework","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary commands on Cacti servers if PHP register_argc_argv is enabled, allowing full system compromise.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-05-15","github_poc":3,"max_poc_stars":21,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-05-15T13:11:45Z","kind":"github_poc","ref":"https://github.com/Stuub/CVE-2024-29895-CactiRCE-PoC","stars":21,"title":"CVE-2024-29895 PoC - Exploiting remote command execution in Cacti servers using the 1.3.X DEV branch builds"},{"date":"2024-05-16T06:29:21Z","kind":"github_poc","ref":"https://github.com/secunnix/CVE-2024-29895","stars":1,"title":"Cacti CVE-2024-29895 POC"},{"date":"2024-05-16T20:03:03Z","kind":"github_poc","ref":"https://github.com/ticofookfook/CVE-2024-29895.py","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-29895.yaml","stars":null,"title":"Cacti cmd_realtime.php - Command Injection"}],"tier":"weaponised"},"has_fix":false,"headline":"Cacti command injection in cmd_realtime.php","id":"CVE-2024-29895","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":0,"n_references":4,"next":{"headline":"Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections","id":"CVE-2024-29896"},"packages":[],"prev":{"headline":"Cacti Cross-site Scripting vulnerability when using JavaScript based messaging API","id":"CVE-2024-29894"},"products":["cacti"],"published":"2024-05-13","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["Cacti"]},"summary":"Unauthenticated attackers can execute arbitrary commands on Cacti servers if PHP register_argc_argv is enabled, allowing full system compromise.","url":"https://insights.sbomify.com/CVE-2024-29895/"}