---
title: CVE-2024-34340
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-34340
---

# CVE-2024-34340

Publication date 14 May 2024

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**9.1 · Critical**

[Score breakdown](https://ubuntu.com/security/CVE-2024-34340#impact-score)

Toggle side navigation

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| cacti | 24.04 LTS noble | Fixed in 1.2.26+ds1-1ubuntu0.1 |
| 23.10 mantic | Ignored end of life, was needs-triage |
| 22.04 LTS jammy | Fixed in 1.2.19+ds1-2ubuntu1.1 |
| 20.04 LTS focal | Fixed in 1.2.10+ds1-1ubuntu1.1 |
| 18.04 LTS bionic | Fixed in 1.1.38+ds1-1ubuntu0.1~esm3  Ubuntu Pro |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.1 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.1 · Critical |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34340)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-34340)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-34340)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-34340)

### Related Ubuntu Security Notices (USN)

+ [USN-6969-1](https://usn.ubuntu.com/USN-6969-1)
+ Cacti vulnerabilities
+ 20 August 2024

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-34340>
* <https://github.com/Cacti/cacti/security/advisories/GHSA-37x7-mfjv-mm7m>
