CVEfocus › CVE database › CVE-2024-29895

CVE-2024-29895Cacti command injection in cmd_realtime.php

CVSS 10.0 CriticalEPSS 42.4% (in the top 1% of all CVEs)Published 2024-05-13Updated 2024-08-02Assigner: GitHub_M

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.

CWE-77

What to do

Likely to be exploited: EPSS gives a 42% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10cactiFix pendingUBUNTU-CVE-2024-29895
Ubuntu 26.04cactiUnder investigationUBUNTU-CVE-2024-29895
Ubuntu 25.10cactiWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-29895
Ubuntu 24.04cactiUnder investigationUBUNTU-CVE-2024-29895
Ubuntu 22.04cactiFix pendingUBUNTU-CVE-2024-29895
Ubuntu 20.04cactiFix pendingUBUNTU-CVE-2024-29895
Ubuntu 18.04cactiFix pendingUBUNTU-CVE-2024-29895

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.