Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-34340
Cacti vulnerability analysis and mitigation

Overview

CVE-2024-34340 is an authentication bypass vulnerability affecting Cacti, an operational monitoring and fault management framework, prior to version 1.2.27. The vulnerability exists in the compat_password_verify function where md5-hashed user input is compared with the correct password in the database using loose comparison instead of strict comparison (GitHub Advisory, NVD).

Technical details

The vulnerability stems from the password verification mechanism in Cacti's authentication system. When verifying passwords, Cacti calls compat_password_verify, which uses password_verify if available, otherwise falling back to md5 comparison. The critical flaw lies in the loose comparison (== instead of ===) between the md5-hashed user input and the stored password hash, leading to potential type juggling vulnerabilities. The vulnerability has been assigned a CVSS v3.1 base score of 9.1 CRITICAL (GitHub Advisory).

Impact

This vulnerability could allow unauthorized access to Cacti installations running on PHP versions lower than 5.5.0, where the md5 hashing fallback is used. The impact is particularly severe as it could lead to authentication bypass, potentially allowing attackers to gain unauthorized access to the system (Security Online).

Exploitability

The vulnerability is exploitable through type juggling in PHP. Specifically, when password hashes begin with '0e', they can be bypassed using known magic hashes that also begin with '0e', as PHP treats these as scientific notation during loose comparison. Several known magic hash values can be used to exploit this vulnerability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Cacti version 1.2.27. Users are strongly advised to upgrade to this version or later to mitigate the risk. The fix implements proper password hash comparison to prevent type juggling attacks (Fedora Update).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

cacti: 1.2.24+ds1-1+deb12u3

Fixed

bullseye

cacti: 1.2.16+ds1-2+deb11u4

Fixed

sid

cacti: 1.2.27+ds1-1

Fixed

trixie

cacti: 1.2.27+ds1-1

Fixed

SourceThis report was generated using AI

Related Cacti vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-71287HIGH8.8
  • Cacti logoCacti
  • cacti
NoNoAug 05, 2026
CVE-2026-40083HIGH7.2
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026
CVE-2026-40941HIGH7.1
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026
CVE-2026-40084MEDIUM6.5
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026
CVE-2026-40082MEDIUM5.4
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management