CVE-2026-39949cacti/cacti OS Command Injection
NVD
Vulnerability Summary
Updated Fix Status Previous fix covered only the test path in get_full_test_script_path(). Production poller sinks in test_data_source() are now covered: path_php_binary is wrapped with cacti_escapeshellcmd() at lib/functions.php:2237 and :2525, and host-variable arguments are escaped at lib/data_query.php. Present in shipped 1.2.x. Reviewed in session 2026-04-17. --- Fix: https://github.com/Cacti/cacti/commit/891344a5c10b8687a3d2a5d26e6de20f13069e2a (PR #7054) --- Maintainer Remediation & Release Information This vulnerability is fixed in Cacti 1.2.31 (`release/1.2.31`) via PR #7054, which escapes substituted host variables and script command arguments in `lib/functions.php` and `lib/data_query.php`. Users should upgrade to Cacti 1.2.31 or later.
CVSS v3.1 Base Metrics — Score 7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- cacti/cacti <= 1.2.30
- cacti/cacti 1.2.31
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run cacti/cacti and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 29, 2026Published
- Nov 29, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new cacti/cacti CVEsYou are reading CVE-2026-39949. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 29, 2026 05:01 UTC