Skip to main content
Public proof of conceptFix available

CVE-2024-34340

Authentication Bypass when using using older password hashes

A public proof of concept exists; no exploitation attested.

  • Published2024-05-14
  • Fixed in1.2.27
  • WeaknessCWE-287 · CWE-697

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-05-1415:38CVE publishedNVD

Versions per branch

NVD · CISA-ADP
Cacti
BranchAffectedFixed in
1.2< 1.2.271.2.27
Fedoraproject fedora
BranchAffectedFixed in
39.x= 39no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • cacti
    Affected
    • = < 1.2.27no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-06-10

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cactiUbuntu:Pro:18.04:LTSall versions · fixed in 1.1.38+ds1-1ubuntu0.1~esm3
  • cactiUbuntu:Pro:16.04:LTSall versions · fixed in 0.8.8f+ds1-4ubuntu4.16.04.2+esm2
  • cactiUbuntu:Pro:14.04:LTSall versions · fixed in 0.8.8b+dfsg-5ubuntu0.2+esm2
  • cactiUbuntu:24.04:LTSall versions · fixed in 1.2.26+ds1-1ubuntu0.1
  • cactiUbuntu:22.04:LTSall versions · fixed in 1.2.19+ds1-2ubuntu1.1
  • cactiUbuntu:20.04:LTSall versions · fixed in 1.2.10+ds1-1ubuntu1.1
  • cactiSUSE:Package Hub 15 SP6all versions · fixed in 1.2.27-bp156.2.3.1and 1 other package
  • cactiSUSE:Package Hub 15 SP5all versions · fixed in 1.2.27-bp155.2.9.1and 1 other package

15 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-34340 Red Hat Product Security

    cacti: authentication bypass when using older password hashes

Full record on NVD

Fix

  1. Update Cacti to 1.2.27

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-05-13
  • CNACVSS 3.19.1known since 2026-10-23
  • NVDCVSS 3.19.1read 2026-10-23
  • CNAweakness (CWE)CWE-287, CWE-697known since 2026-10-23
  • NVDweakness (CWE)CWE-697read 2026-10-23
  • FIRST EPSSEPSS score1.1 %2026-11-18
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
2024-05-14
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2024-34340?

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.

Is CVE-2024-34340 actively exploited?

A proof-of-concept exploit exists for CVE-2024-34340, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-34340?

CVE-2024-34340 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Running cacti? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record