CVE-2024-34340: Authentication Bypass when using using older password hashes

Published May 13, 2024
·
Updated

Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, Cacti calls compatpasswordhash when users set their password. compatpasswordhash use passwordhash if there is it, else use md5. When verifying password, it calls compatpasswordverify. In compatpasswordverify, passwordverify is called if there is it, else use md5. passwordverify and passwordhash are supported on PHP < 5.5.0, following PHP manual. The vulnerability is in compatpasswordverify. 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.

Affected Software

12 affected componentsFixes available
Cacti Cacti<1.2.27
Fedoraproject Fedora=39
debian/cacti<1.2.24+ds1-1+deb12u3
1.2.24+ds1-1+deb12u3
debian/cacti<1.2.27+ds1-1
1.2.27+ds1-1
debian/cacti<1.2.27+ds1-1
1.2.27+ds1-1
debian/cacti
1.2.24+ds1-1+deb12u51.2.30+ds1-11.2.31+ds1-4
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.24+ds1-1+deb12u3
  2. Upgrade

    Upgrade debian/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.27+ds1-1
  3. Upgrade

    Upgrade debian/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.24+ds1-1+deb12u5Fixed in 1.2.30+ds1-1Fixed in 1.2.31+ds1-4
  4. Upgrade

    Upgrade alpine/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.27-r0
  5. Upgrade

    Upgrade Cacti to a version that resolves this vulnerability.

    Fixed in 1.2.27

Event History

May 13, 2024
CVE Published
via MITRE·03:26 PM
Data Sourced
via MITRE·03:26 PM
DescriptionSeverityWeakness
May 14, 2024
Data Sourced
via NVD·03:38 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·03:38 PM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-34340?

CVE-2024-34340 is considered a medium severity vulnerability due to improper password hashing.

2

How do I fix CVE-2024-34340?

To fix CVE-2024-34340, upgrade your Cacti installation to version 1.2.27 or later.

3

Which versions of Cacti are affected by CVE-2024-34340?

CVE-2024-34340 affects Cacti versions prior to 1.2.27.

4

What is the impact of CVE-2024-34340 on user accounts?

The impact of CVE-2024-34340 could allow attackers to potentially compromise user accounts due to insufficient password hashing.

5

Is there a workaround for CVE-2024-34340 before applying a patch?

There is no official workaround specified for CVE-2024-34340, so upgrading is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203