CVE-2024-34340 in Cacti and 1 more product
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_passwor...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Cacti | Cacti | < 1.2.27 |
| Fedoraproject | Fedora | 39 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-34340 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-193622-C |
| CVSS 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 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-287: Improper Authentication
Software does not prove or insufficiently proves that the user is who they claim to be.
CWE-697: CWE-697
Related attack patterns (CAPEC)
CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters via CWE-697
CAPEC-7 Blind SQL Injection via CWE-697
CAPEC-8 Buffer Overflow in an API Call via CWE-697
CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-697
CAPEC-10 Buffer Overflow via Environment Variables via CWE-697
Show all 39
CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-697
CAPEC-24 Filter Failure through Buffer Overflow via CWE-697
CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads via CWE-697
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-697
CAPEC-44 Overflow Binary Resource File via CWE-697
CAPEC-45 Buffer Overflow via Symbolic Links via CWE-697
CAPEC-46 Overflow Variables and Tags via CWE-697
CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-697
CAPEC-52 Embedding NULL Bytes via CWE-697
CAPEC-53 Postfix, Null Terminate, and Backslash via CWE-697
CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data via CWE-287
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-697
CAPEC-67 String Format Overflow in syslog() via CWE-697
CAPEC-71 Using Unicode Encoding to Bypass Validation Logic via CWE-697
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-697
CAPEC-79 Using Slashes in Alternate Encoding via CWE-697
CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic via CWE-697
CAPEC-92 Forced Integer Overflow via CWE-697
CAPEC-120 Double Encoding via CWE-697
CAPEC-633 Token Impersonation via CWE-287
CAPEC-650 Upload a Web Shell to a Web Server via CWE-287
CAPEC-6 Argument Injection via CWE-697
CAPEC-15 Command Delimiters via CWE-697
CAPEC-73 User-Controlled Filename via CWE-697
CAPEC-88 OS Command Injection via CWE-697
CAPEC-182 Flash Injection via CWE-697
CAPEC-194 Fake the Source of Data via CWE-287
CAPEC-267 Leverage Alternate Encoding via CWE-697
CAPEC-593 Session Hijacking via CWE-287
CAPEC-22 Exploiting Trust in Client via CWE-287
CAPEC-94 Adversary in the Middle (AiTM) via CWE-287
CAPEC-114 Authentication Abuse via CWE-287
CAPEC-115 Authentication Bypass via CWE-287
CAPEC-151 Identity Spoofing via CWE-287
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-34340 affects Cacti versions prior to 1.2.27, where the use of MD5 for password hashing and verification can be exploited due to MD5's vulnerabilities to collision attacks and brute force.
An attacker could exploit this vulnerability by intercepting or obtaining hashed passwords and using brute force or rainbow table attacks to crack them, leading to unauthorized access to the Cacti system.
Questions
What is CVE-2024-34340?
CVE-2024-34340 affects Cacti versions prior to 1.2.27, where the use of MD5 for password hashing and verification can be exploited due to MD5's vulnerabilities to collision attacks and brute force.
What is the CVSS score for CVE-2024-34340?
CVE-2024-34340 has CVSS 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 1.0%.
Is CVE-2024-34340 actively exploited?
No confirmed active exploitation of CVE-2024-34340 as of 2026-09-25.
How do I remediate CVE-2024-34340?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2024-34340?
CVE-2024-34340 affects Cacti Cacti; Fedoraproject Fedora.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Cacti","product":"Cacti","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.