CVE-2024-34340 Authentication Bypass when using using older password hashes
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHPUbuntuDebian
Description
Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, Cacti calls compat_password_hash when users set their password. compat_password_hash use password_hash if there is it, else use md5. When verifying password, it calls compat_password_verify. In compat_password_verify, password_verify is called if there is it, else use md5. password_verify and password_hash are supported on PHP < 5.5.0, following PHP manual. The vulnerability is in compat_password_verify. Md5-hashed user input is compared with correct password in database by $md5 == $hash. It is a loose comparison, not ===. It is a type juggling vulnerability. Version 1.2.27 contains a patch for the issue.
Upgrade path
15 packages: 14 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/cacti(Alpine v3.19) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.20) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.21) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.22) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.23) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.24) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| cacti | < 1.2.27; = < 1.2.27 | 1.2.27 | Fixed |
| debian/cacti(Debian 12) | < 1.2.24+ds1-1+deb12u3; = 1.2.24+ds1-1; = 1.2.24+ds1-1+deb12u1; = 1.2.24+ds1-1+deb12u2 | 1.2.24+ds1-1+deb12u3 | Fixed |
| debian/cacti(Debian 13) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 | Fixed |
| debian/cacti(Debian 14) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 | Fixed |
| ubuntu/cacti(Ubuntu 20.04) | < 1.2.10+ds1-1ubuntu1.1; = 1.2.4+ds1-2ubuntu3; = 1.2.9+ds1-1ubuntu1; = 1.2.9+ds1-1ubuntu2 +1 more | 1.2.10+ds1-1ubuntu1.1 | Fixed |
| ubuntu/cacti(Ubuntu 22.04) | < 1.2.19+ds1-2ubuntu1.1; = 1.2.16+ds1-2ubuntu1; = 1.2.19+ds1-2ubuntu1 | 1.2.19+ds1-2ubuntu1.1 | Fixed |
| ubuntu/cacti(Ubuntu 24.04) | < 1.2.26+ds1-1ubuntu0.1; = 1.2.25+ds1-2; = 1.2.26+ds1-1 | 1.2.26+ds1-1ubuntu0.1 | Fixed |
| ubuntu/cacti(Ubuntu Pro 18.04) | < 1.1.38+ds1-1ubuntu0.1~esm3; = 1.1.18+ds1-1; = 1.1.27+ds1-2; = 1.1.27+ds1-3 +5 more | 1.1.38+ds1-1ubuntu0.1~esm3 | Fixed |
| fedoraproject fedora | = 39 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cacti(Debian:12) | < 1.2.24+ds1-1+deb12u3 | 1.2.24+ds1-1+deb12u3 |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u2 | No fix listed |
| debian/cacti(Debian:13) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 |
| debian/cacti(Debian:14) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 |
| ubuntu/cacti(Ubuntu:22.04) | < 1.2.19+ds1-2ubuntu1.1 | 1.2.19+ds1-2ubuntu1.1 |
| cacti | = < 1.2.27 | No fix listed |
| cacti | < 1.2.27 | 1.2.27 |
| alpine/cacti(Alpine:v3.19) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.20) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.21) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.22) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.23) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.24) | < 1.2.27-r0 | 1.2.27-r0 |
| ubuntu/cacti(Ubuntu:24.04) | < 1.2.26+ds1-1ubuntu0.1 | 1.2.26+ds1-1ubuntu0.1 |
| fedoraproject fedora | = 39 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | < 1.1.38+ds1-1ubuntu0.1~esm3 | 1.1.38+ds1-1ubuntu0.1~esm3 |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.18+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.27+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.27+ds1-3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.28+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.35+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.36+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1 | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | < 1.2.10+ds1-1ubuntu1.1 | 1.2.10+ds1-1ubuntu1.1 |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.4+ds1-2ubuntu3 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.9+ds1-1ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.9+ds1-1ubuntu2 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.10+ds1-1ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:22.04) | = 1.2.16+ds1-2ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:22.04) | = 1.2.19+ds1-2ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.25+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.26+ds1-1 | No fix listed |
References
- Debian Security Tracker CVE-2024-34340 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6969-1 vendor-advisory
- www.cve.org issue-tracking
- https://github.com/Cacti/cacti/security/advisories/GHSA-37x7-mfjv-mm7m exploit issue-tracking vendor-advisory
- lists.fedoraproject.org product
- lists.debian.org
- security.alpinelinux.org vendor-advisory