CVE-2023-39362: cacti OS Command Injection
Vulnerability summary
CVE-2023-39362 is a high (CVSS 7.2) OS Command Injection vulnerability in cacti. EPSS estimates a 85.45% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities. 3 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 4 · Related 2Timeline
- 05-09-2023PublishedVulnerability first disclosed.
- 27-02-2025Last modifiedVulnerability information updated.
Description
Cacti is an open source operational monitoring and fault management framework. In Cacti 1.2.24, under certain conditions, an authenticated privileged user, can use a malicious string in the SNMP options of a Device, performing command injection and obtaining remote code execution on the underlying server. The `lib/snmp.php` file has a set of functions, with similar behavior, that accept in input some variables and place them into an `exec` call without a proper escape or validation. This issue has been addressed in version 1.2.25. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
85.45%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 85.45% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundCacti
Maturity: poc
Exploit Reference (packetstormsecurity.com)
Maturity: unknown
Cacti 1.2.24 - Authenticated command injection when using SNMP options
Maturity: poc
Weaknesses
CWE · root cause- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
- CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Affected systems
Cacti1 product
- cacti< 1.2.25
Debian1 product
- cacti< 1.2.24+ds1-1+deb12u1 | < 1.2.25+ds1-1
Fedoraproject1 product
- fedoraEOL37 | 38
Ubuntu1 product
- cactiAll versions (No fix recorded)
4 vendors · 4 products
References
11 links- github.com/Cacti/cacti/security/advisories/GHSA-g6ff-58cj-x3cpX Refsource CONFIRMREPORTExploitVendor Advisory
- packetstormsecurity.com/files/175029/Cacti-1.2.24-Command-Injection.htmlExploitThird Party AdvisoryVDB Entry
- lists.fedoraproject.org/archives/…Mailing List
- lists.fedoraproject.org/archives/…Mailing List