Name | CVE-2023-39362 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3765-1, DSA-5550-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
cacti (PTS) | bullseye | 1.2.16+ds1-2+deb11u3 | fixed |
bullseye (security) | 1.2.16+ds1-2+deb11u4 | fixed | |
bookworm | 1.2.24+ds1-1+deb12u4 | fixed | |
bookworm (security) | 1.2.24+ds1-1+deb12u2 | fixed | |
sid, trixie | 1.2.28+ds1-3 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
cacti | source | buster | 1.2.2+ds1-2+deb10u6 | DLA-3765-1 | ||
cacti | source | bullseye | 1.2.16+ds1-2+deb11u2 | DSA-5550-1 | ||
cacti | source | bookworm | 1.2.24+ds1-1+deb12u1 | DSA-5550-1 | ||
cacti | source | (unstable) | 1.2.25+ds1-1 |
https://github.com/Cacti/cacti/security/advisories/GHSA-g6ff-58cj-x3cp
https://github.com/cacti/cacti/commit/cb9ab92f2580fc6cb9b64ce129655fb15e35d056 (release/1.2.25)
https://github.com/Cacti/cacti/commit/4c26f39fa3567553192823a5e8096b187bbaddde (release/1.2.25)
snmp_escape_string broken and non-exploitable until https://github.com/Cacti/cacti/commit/c66d5815b8381eaa7ef679abc8d041f23105ef34 (release/1.2.23)
Requires php-snmp be disabled.