cve.bz

CVE-2024-34340 Incorrect Comparison

9.1 criticalExploit referenceEPSS 1.1%

Critical (9.1). EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-697 Incorrect Comparison
CWE-287 Improper Authentication
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-34340 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-34340?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-34340?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-34340 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
cacti:cactibefore 1.2.27
fedoraproject:fedora39

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11cacti1.2.16+ds1-2+deb11u4DLA-3884-1
Debian12cacti1.2.24+ds1-1+deb12u3DEBIAN-CVE-2024-34340
Debian13, 14cacti1.2.27+ds1-1DEBIAN-CVE-2024-34340
Ubuntu20.04:LTScacti1.2.10+ds1-1ubuntu1.1UBUNTU-CVE-2024-34340 USN-6969-1
Ubuntu22.04:LTScacti1.2.19+ds1-2ubuntu1.1UBUNTU-CVE-2024-34340 USN-6969-1
Ubuntu24.04:LTScacti1.2.26+ds1-1ubuntu0.1UBUNTU-CVE-2024-34340 USN-6969-1
UbuntuPro:14.04:LTScacti0.8.8b+dfsg-5ubuntu0.2+esm2USN-6969-1
UbuntuPro:16.04:LTScacti0.8.8f+ds1-4ubuntu4.16.04.2+esm2USN-6969-1
UbuntuPro:18.04:LTScacti1.1.38+ds1-1ubuntu0.1~esm3UBUNTU-CVE-2024-34340 USN-6969-1
SUSEPackage Hub 12, Package Hub 15 SP5cacti, cacti-spine1.2.27-bp155.2.9.1openSUSE-SU-2024:0274-1
SUSEPackage Hub 15 SP6cacti, cacti-spine1.2.27-bp156.2.3.1openSUSE-SU-2024:0276-1
openSUSELeap 15.5cacti, cacti-spine1.2.27-bp155.2.9.1openSUSE-SU-2024:0274-1
openSUSELeap 15.6cacti, cacti-spine1.2.27-bp156.2.3.1openSUSE-SU-2024:0276-1
openSUSETumbleweedcacti1.2.27-1.1openSUSE-SU-2024:13962-1
Alpinev3.19, v3.20, v3.21 and 3 morecacti1.2.27-r0ALPINE-CVE-2024-34340

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-697 (29).

References

Check your stackJSON