# CVE-2024-34340: Authentication Bypass when using using older password hashes

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 63% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-13T15:26:32.364Z
- Modified: 2026-06-17T07:33:12.527Z
- Weaknesses: CWE-287, CWE-697
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Cacti cacti: < 1.2.27; before 1.2.27
- fedoraproject fedora: 39

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/Cacti/cacti/security/advisories/GHSA-37x7-mfjv-mm7m> (exploit, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/> (product)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html>

## Sources

- CVE List: [CVE-2024-34340](https://www.cve.org/CVERecord?id=CVE-2024-34340), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-34340](https://nvd.nist.gov/vuln/detail/CVE-2024-34340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-34340 · Whole record: https://cve.day/CVE-2024-34340.json · Rebuilt by cve.day 2026-11-25T22:58:40.174Z
