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-2023-0567

CVE-2023-0567: PHP Authentication Bypass Vulnerability

CVE-2023-0567 is an authentication bypass vulnerability in PHP that allows invalid Blowfish hashes to be accepted as valid, potentially granting unauthorized access. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2023-0567 Overview

CVE-2023-0567 affects the PHP password_verify() function across multiple branches of the language runtime. Versions 8.0.x before 8.0.28, 8.1.x before 8.1.16, and 8.2.x before 8.2.3 may accept some malformed Blowfish (bcrypt) hashes as valid. When a corrupted or invalid hash reaches the password database, the function can return true for arbitrary passwords against that entry. The flaw maps to CWE-916: Use of Password Hash With Insufficient Computational Effort. Local authenticated attackers, or any actor able to influence stored hashes, can leverage the weakness to bypass authentication for affected accounts.

Critical Impact

An invalid Blowfish hash in the password store causes password_verify() to accept any password as valid, enabling silent authentication bypass for affected accounts.

Affected Products

  • PHP 8.0.x prior to 8.0.28
  • PHP 8.1.x prior to 8.1.16
  • PHP 8.2.x prior to 8.2.3

Discovery Timeline

  • 2023-03-01 - CVE-2023-0567 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2023-0567

Vulnerability Analysis

The vulnerability resides in the PHP password_verify() function, which validates a plaintext password against a stored hash. PHP supports several algorithms, with bcrypt (Blowfish) as the historical default. The function delegates Blowfish comparison to the underlying crypt() routine. When the stored hash is malformed in specific ways, crypt() can return an empty or attacker-controllable output that the verification routine treats as a successful match.

The practical effect is silent authentication bypass. An application checking a user-supplied password against a corrupted hash entry receives a true result regardless of the password submitted. The vulnerability does not require network access and does not impact confidentiality or availability directly. It impacts integrity of authentication, which is the highest-value control in most web applications.

This class of flaw belongs to the broader category of weak password hashing and verification logic tracked under CWE-916.

Root Cause

The root cause is insufficient validation of the Blowfish hash format inside password_verify(). The function did not reject all malformed hash strings before delegating to crypt(). Certain malformed inputs caused crypt() to produce return values that the verification path compared as equal to attacker-supplied inputs, producing false positives. Details and the upstream fix are documented in the GitHub Security Advisory GHSA-7fj2-8x79-rjf4 and the PHP Bug Report #81744.

Attack Vector

Exploitation requires that an invalid Blowfish hash exists in the password database for a target account. This can occur through data corruption, faulty migration scripts, manual database edits, or upstream issues that truncate or alter hash strings. An attacker with write access to the password store, or one able to register or trigger creation of an account whose hash is stored incorrectly, can subsequently authenticate as that account using any password. The attack vector is local per the CVSS metrics, reflecting that the attacker must influence stored data rather than reach the function purely over the network.

No public proof-of-concept is referenced in the advisory, and the issue is not listed in the CISA Known Exploited Vulnerabilities catalog. Refer to the GitHub Security Advisory for technical details of the malformed hash patterns.

Detection Methods for CVE-2023-0567

Indicators of Compromise

  • Entries in the user password table whose hash does not conform to the standard bcrypt format ($2y$<cost>$<22-char-salt><31-char-hash>).
  • Successful authentication events for accounts whose stored hash is truncated, empty, or otherwise malformed.
  • Unexpected login activity for service or legacy accounts that have not had recent password resets.

Detection Strategies

  • Query the user database for password hashes that fail a strict regex match against the valid bcrypt format and flag any non-conforming rows.
  • Run PHP version inventories across web servers and containers to identify hosts running PHP versions earlier than 8.0.28, 8.1.16, or 8.2.3.
  • Correlate authentication success logs with the set of accounts whose hashes were created or modified before the patched runtime was deployed.

Monitoring Recommendations

  • Alert on writes to password hash columns originating from sources other than the application's password reset flow.
  • Forward web application authentication logs to a centralized analytics platform and baseline login patterns per account to surface anomalies.
  • Track PHP runtime versions as part of software bill of materials and trigger alerts when unpatched versions are observed in production.

How to Mitigate CVE-2023-0567

Immediate Actions Required

  • Upgrade PHP to 8.0.28, 8.1.16, 8.2.3, or later on all systems running the affected branches.
  • Audit the user password table for malformed bcrypt hashes and force password resets on any accounts with non-conforming entries.
  • Review database write paths and remove any non-application processes capable of modifying password hash columns.

Patch Information

The PHP project released fixes in versions 8.0.28, 8.1.16, and 8.2.3. The upstream fix and affected branches are documented in the GitHub Security Advisory GHSA-7fj2-8x79-rjf4 and the PHP Bug Report #81744. Downstream vendors have published their own guidance, including the NetApp Security Advisory NTAP-20230331-0008.

Workarounds

  • Validate hash format at the application layer before calling password_verify(), rejecting any stored value that does not match the strict bcrypt regex.
  • Re-hash passwords on next successful login using password_needs_rehash() to ensure all entries conform to the patched format.
  • Restrict direct database access to the credentials table to the application service account only and audit any privileged access.
bash
# Verify the installed PHP version on affected hosts
php -v

# Example regex check for valid bcrypt hash format
grep -E '^\$2[aby]\$[0-9]{2}\$[./A-Za-z0-9]{53}$' /path/to/hash_export.txt

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPhp

  • SeverityMEDIUM

  • CVSS Score6.2

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-916
  • Technical References
  • NetApp Security Advisory NTAP-20230331-0008
  • Vendor Resources
  • PHP Bug Report #81744

  • GitHub Security Advisory GHSA-7fj2-8x79-rjf4
  • Related CVEs
  • CVE-2024-3096: PHP Authentication Bypass Vulnerability

  • CVE-2020-7070: PHP Cookie Authentication Bypass Flaw

  • CVE-2025-14179: PHP PDO Firebird SQLi Vulnerability

  • CVE-2026-6722: PHP SOAP Extension 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