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
    • 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-0568

CVE-2023-0568: PHP Buffer Overflow Vulnerability

CVE-2023-0568 is a buffer overflow vulnerability in PHP that affects path resolution, potentially causing unauthorized data access. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 11, 2026

CVE-2023-0568 Overview

CVE-2023-0568 is a critical off-by-one buffer overflow vulnerability affecting PHP's core path resolution functionality. The vulnerability occurs when the path resolution function allocates a buffer that is one byte too small. When resolving paths with lengths close to the system's MAXPATHLEN setting, this miscalculation can cause the byte immediately following the allocated buffer to be overwritten with a NUL value, potentially leading to unauthorized data access or modification.

Critical Impact

Successful exploitation of this vulnerability could allow attackers to access or modify unauthorized data through memory corruption, potentially compromising the integrity and confidentiality of PHP-based applications and systems.

Affected Products

  • PHP 8.0.X before 8.0.28
  • PHP 8.1.X before 8.1.16
  • PHP 8.2.X before 8.2.3

Discovery Timeline

  • 2023-02-16 - CVE-2023-0568 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-0568

Vulnerability Analysis

This vulnerability is classified under CWE-131 (Incorrect Calculation of Buffer Size) and CWE-770 (Allocation of Resources Without Limits or Throttling). The flaw resides in PHP's internal path resolution mechanism, which is responsible for converting relative paths to absolute paths and normalizing path components.

When processing file paths that approach the system's MAXPATHLEN limit, the buffer allocation routine fails to account for the NUL terminator byte. This off-by-one error creates a condition where the path resolution function writes beyond the allocated buffer boundary, specifically overwriting the adjacent byte with a NUL (0x00) value.

The vulnerability is exploitable over the network without requiring authentication or user interaction, though exploitation complexity is considered high due to the specific path length requirements that must be met. Successful exploitation could result in significant impacts to confidentiality and integrity.

Root Cause

The root cause is an incorrect buffer size calculation in PHP's core path resolution function. The function calculates the required buffer size but fails to include space for the null terminator character, resulting in a buffer that is exactly one byte smaller than required. When the resolved path length approaches MAXPATHLEN, this miscalculation causes an out-of-bounds write condition.

Attack Vector

The attack vector involves crafting file path inputs with lengths close to the system's maximum path length limit (MAXPATHLEN). An attacker would need to:

  1. Identify PHP applications that perform path resolution operations on user-controllable input
  2. Craft path strings that, when resolved, approach the MAXPATHLEN boundary
  3. Trigger the path resolution function to cause the off-by-one overflow
  4. Leverage the memory corruption to access or modify unauthorized data

The exploitation requires precise control over path lengths and understanding of the target system's memory layout, which contributes to the high attack complexity rating.

Detection Methods for CVE-2023-0568

Indicators of Compromise

  • Unusual PHP process crashes or segmentation faults related to file operations
  • Error logs indicating path resolution failures with unusually long file paths
  • Anomalous memory access patterns in PHP processes handling file path operations
  • Unexplained data modifications in applications processing user-supplied file paths

Detection Strategies

  • Monitor PHP error logs for segmentation faults and memory-related errors during path operations
  • Implement application-level logging for file path operations that approach system path length limits
  • Deploy runtime application self-protection (RASP) solutions to detect buffer overflow attempts
  • Use SentinelOne's behavioral AI to identify anomalous memory access patterns in PHP processes

Monitoring Recommendations

  • Configure alerting for PHP process crashes that may indicate exploitation attempts
  • Monitor file system activity for operations involving exceptionally long path names
  • Implement log correlation to identify patterns of path manipulation across multiple requests
  • Enable detailed PHP error logging to capture path resolution failures

How to Mitigate CVE-2023-0568

Immediate Actions Required

  • Upgrade PHP 8.0.X installations to version 8.0.28 or later immediately
  • Upgrade PHP 8.1.X installations to version 8.1.16 or later immediately
  • Upgrade PHP 8.2.X installations to version 8.2.3 or later immediately
  • Conduct an inventory of all PHP installations to ensure complete coverage

Patch Information

The PHP development team has addressed this vulnerability in the following releases:

PHP BranchFixed Version
PHP 8.08.0.28
PHP 8.18.1.16
PHP 8.28.2.3

For detailed information about the bug and its resolution, refer to the PHP Bug Report #81746. Additional vendor security information is available in the NetApp Security Advisory ntap-20230517-0001.

Workarounds

  • Implement input validation to reject file paths exceeding reasonable length thresholds
  • Configure web application firewalls (WAF) to filter requests containing excessively long path components
  • Apply operating system-level path length restrictions where supported
  • Use containerization to isolate PHP applications and limit potential impact of exploitation
bash
# Configuration example - Validate path lengths in application
# Add to PHP configuration or application bootstrap
# Limit maximum path length processing (example using open_basedir)
php_admin_value[open_basedir] = /var/www/html:/tmp
php_admin_value[max_execution_time] = 30

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPhp

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-131

  • CWE-770
  • Technical References
  • NetApp Security Advisory ntap-20230517-0001
  • Vendor Resources
  • PHP Bug Report #81746
  • Related CVEs
  • CVE-2024-8932: PHP ldap_escape() Buffer Overflow Flaw

  • CVE-2024-11236: PHP ldap_escape() Buffer Overflow Flaw

  • CVE-2024-11233: PHP Buffer Overflow Vulnerability

  • CVE-2023-3824: PHP PHAR Buffer Overflow Vulnerability
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