The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-34340

CVE-2024-34340: Cacti Authentication Bypass Vulnerability

CVE-2024-34340 is an authentication bypass flaw in Cacti caused by a type juggling vulnerability in password verification. Attackers can exploit weak MD5 comparisons to gain unauthorized access. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: April 8, 2026

CVE-2024-34340 Overview

CVE-2024-34340 is an authentication bypass vulnerability affecting Cacti, a widely-used operational monitoring and fault management framework. The vulnerability exists in the compat_password_verify function, which uses a loose comparison operator (==) instead of strict comparison (===) when verifying MD5-hashed passwords. This type juggling vulnerability allows attackers to potentially bypass authentication mechanisms by exploiting PHP's loose type comparison behavior, leading to unauthorized access to the Cacti monitoring platform.

Critical Impact

Attackers can bypass authentication controls on vulnerable Cacti installations, potentially gaining unauthorized administrative access to monitoring infrastructure and the ability to view sensitive network data or execute privileged operations.

Affected Products

  • Cacti versions prior to 1.2.27
  • Fedora 39 (with vulnerable Cacti packages)

Discovery Timeline

  • 2024-05-14 - CVE CVE-2024-34340 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2024-34340

Vulnerability Analysis

This vulnerability stems from improper authentication implementation in Cacti's password verification logic. When users set their password, Cacti calls the compat_password_hash function, which utilizes PHP's native password_hash function if available, otherwise falling back to MD5 hashing. The critical flaw exists in the compat_password_verify function used during login verification.

On PHP versions below 5.5.0 (or systems where password_verify is unavailable), the verification logic falls back to comparing MD5 hashes. The vulnerable code compares the user-supplied MD5-hashed input with the stored password hash using PHP's loose comparison operator (==). This enables type juggling attacks where specially crafted inputs can match password hashes due to PHP's automatic type coercion during comparisons.

The vulnerability is classified under CWE-287 (Improper Authentication) and CWE-697 (Incorrect Comparison), reflecting both the authentication bypass impact and the root cause in flawed comparison logic.

Root Cause

The root cause is the use of PHP's loose comparison operator (==) instead of the strict comparison operator (===) in the compat_password_verify function. When comparing MD5 hashes, PHP's loose comparison can lead to unexpected true results if the hash values begin with specific patterns (such as 0e followed by digits, which PHP interprets as scientific notation evaluating to zero). This allows attackers to craft inputs that produce hash values which loosely equal legitimate password hashes through type juggling.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying a Cacti installation running a vulnerable version (prior to 1.2.27)
  2. Determining that the target uses MD5-based password hashing (legacy PHP environment)
  3. Crafting authentication requests with specially selected password values that produce MD5 hashes triggering PHP type juggling
  4. Bypassing authentication when the loose comparison evaluates to true against stored password hashes that have exploitable patterns

The vulnerability mechanism relies on PHP interpreting certain string patterns as scientific notation. For example, an MD5 hash starting with 0e followed only by digits (like 0e462097431906509019562988736854) is interpreted as 0^462097431906509019562988736854 which equals 0 when evaluated numerically. If both the stored hash and attacker-supplied hash value trigger this behavior, the loose comparison == returns true despite the actual password being different.

Detection Methods for CVE-2024-34340

Indicators of Compromise

  • Unusual or unexpected authentication successes in Cacti access logs
  • Login events from unrecognized IP addresses or geographic locations
  • Multiple failed authentication attempts followed by successful logins without valid credentials
  • Suspicious administrative actions performed by accounts with weak or unknown passwords

Detection Strategies

  • Monitor Cacti authentication logs for anomalous login patterns, particularly rapid authentication attempts with varying password inputs
  • Implement Web Application Firewall (WAF) rules to detect potential type juggling payloads in authentication requests
  • Deploy intrusion detection signatures looking for authentication bypass attempts against Cacti endpoints
  • Review and audit user accounts for unauthorized access or privilege changes

Monitoring Recommendations

  • Enable detailed authentication logging in Cacti and forward logs to a centralized SIEM platform
  • Set up alerts for successful authentications from previously unseen source IPs
  • Monitor for configuration changes or data exports following authentication events
  • Implement baseline analysis to detect anomalous user behavior patterns post-authentication

How to Mitigate CVE-2024-34340

Immediate Actions Required

  • Upgrade Cacti to version 1.2.27 or later immediately
  • Review authentication logs for evidence of exploitation prior to patching
  • Reset passwords for all Cacti user accounts, particularly administrative accounts
  • Restrict network access to Cacti instances using firewall rules or VPN requirements
  • Verify PHP version and ensure modern password hashing functions are available

Patch Information

Cacti version 1.2.27 contains the official patch for this vulnerability. The fix replaces the loose comparison operator (==) with the strict comparison operator (===) in the compat_password_verify function, eliminating the type juggling attack vector. Security advisories and patch details are available in the Cacti GitHub Security Advisory. Additional distribution-specific updates are available through the Fedora Package Announcement and Debian LTS Announcement.

Workarounds

  • Restrict access to Cacti web interface to trusted internal networks only using firewall rules
  • Implement multi-factor authentication (MFA) in front of Cacti access where possible
  • Deploy a reverse proxy with additional authentication requirements
  • Ensure PHP environment uses version 5.5.0 or later where native password_hash and password_verify functions are available, bypassing the vulnerable MD5 fallback code path
  • Monitor authentication attempts closely until patching is complete

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechCacti

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.84%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-287

  • CWE-697
  • Technical References
  • Fedora Package Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2022-0730: Cacti Authentication Bypass Vulnerability

  • CVE-2025-45160: Cacti File Upload XSS Vulnerability

  • CVE-2024-25641: Cacti Package Import RCE Vulnerability

  • CVE-2025-24367: Cacti Graph Template RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English