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-2026-7258

CVE-2026-7258: PHP urldecode() Denial of Service Vulnerability

CVE-2026-7258 is a denial of service flaw in PHP urldecode() and related functions that can cause crashes on systems like NetBSD. This article covers the technical details, affected PHP versions, impact, and mitigation strategies.

Published: May 18, 2026

CVE-2026-7258 Overview

CVE-2026-7258 is an out-of-bounds read vulnerability [CWE-125] affecting multiple PHP versions. The flaw resides in how certain PHP functions, including urldecode(), pass signed char values to ctype functions such as isxdigit(). On systems where the default char type is signed and ctype functions use optimized table lookups, this behavior can result in indexing an array with a negative offset. The condition triggers a denial of service in affected PHP processes. NetBSD is explicitly identified as a vulnerable platform due to its default signed char and lookup-table ctype implementation.

Critical Impact

Remote attackers can trigger a denial of service against PHP applications by sending crafted input to functions that internally invoke ctype routines on signed character data.

Affected Products

  • PHP versions 8.2.* before 8.2.31
  • PHP versions 8.3.* before 8.3.31, and 8.4.* before 8.4.21
  • PHP version 8.5.* before 8.5.6

Discovery Timeline

  • 2026-05-10 - CVE-2026-7258 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-7258

Vulnerability Analysis

The vulnerability is an out-of-bounds read in PHP's character-classification handling. Functions such as urldecode() parse user-supplied byte sequences and forward individual bytes to ctype helpers like isxdigit(). On platforms where char is signed by default, byte values above 0x7F are sign-extended to negative integers when promoted to int. When the underlying libc implements ctype routines as table lookups, a negative integer is used as an index into the classification table. The read occurs before the actual character class is determined, producing undefined behavior and process termination in many configurations. NetBSD is one platform where this combination of signed char and lookup-table ctype is the default, making the condition reliably reachable.

Root Cause

The root cause is a portability defect in PHP's source code. The C standard requires that the argument to ctype functions be representable as an unsigned char or equal to EOF. PHP code paths feeding urldecode() data into isxdigit() did not cast the byte to unsigned char before the call, allowing negative values on signed-char platforms.

Attack Vector

An attacker delivers an HTTP request containing high-bit bytes within a URL-encoded parameter to any application that calls urldecode() or a similarly affected function. Processing the input triggers the out-of-bounds read and crashes the PHP worker, degrading service availability for a remote, unauthenticated client.

No verified public proof-of-concept code is available. Refer to the PHP Security Advisory GHSA-m8rr-4c36-8gq4 for upstream technical details.

Detection Methods for CVE-2026-7258

Indicators of Compromise

  • Unexpected segmentation faults or SIGSEGV entries for PHP-FPM or Apache mod_php worker processes in system logs.
  • HTTP 5xx error spikes correlated with requests containing URL-encoded bytes above %7F in query strings or POST bodies.
  • Repeated PHP worker restarts on NetBSD or other signed-char platforms after exposure to internet traffic.

Detection Strategies

  • Inventory PHP installations and compare runtime versions against the fixed releases 8.2.31, 8.3.31, 8.4.21, and 8.5.6.
  • Inspect web access logs for malformed URL-encoded payloads targeting endpoints that call urldecode() on untrusted input.
  • Correlate worker crashes with the originating client IP and request body to distinguish probing from legitimate traffic.

Monitoring Recommendations

  • Enable core-dump collection for PHP worker processes and alert on new crash signatures in central logging.
  • Track PHP-FPM pm.status and request-failure metrics to detect availability degradation early.
  • Add a WAF rule to flag requests containing sequences of non-ASCII URL-encoded octets directed at PHP endpoints.

How to Mitigate CVE-2026-7258

Immediate Actions Required

  • Upgrade PHP to 8.2.31, 8.3.31, 8.4.21, or 8.5.6 depending on the deployed branch.
  • Prioritize patching on NetBSD and any platform built with signed char defaults, where exploitation is reliable.
  • Restart PHP-FPM and web server processes after upgrading to ensure the patched binary is loaded.

Patch Information

PHP maintainers released fixed builds in versions 8.2.31, 8.3.31, 8.4.21, and 8.5.6. The fix ensures bytes are cast to unsigned char before being passed to ctype functions. See the PHP Security Advisory GHSA-m8rr-4c36-8gq4 for commit references.

Workarounds

  • Deploy a WAF or reverse-proxy rule that rejects request parameters containing non-ASCII URL-encoded byte sequences when patching cannot be performed immediately.
  • Rebuild PHP with the compiler flag -funsigned-char on affected platforms to neutralize the negative-index condition.
  • Enable PHP-FPM process recycling with low pm.max_requests to limit availability impact from worker crashes.
bash
# Verify the installed PHP version against fixed releases
php -v

# Example Debian/Ubuntu upgrade path
sudo apt update && sudo apt install --only-upgrade php php-fpm
sudo systemctl restart php8.3-fpm

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPhp

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-125
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-7259: PHP mb_regex_encoding() DOS Vulnerability

  • CVE-2026-7262: PHP SOAP Server DoS Vulnerability

  • CVE-2026-7568: PHP metaphone() DoS Vulnerability

  • CVE-2026-7263: PHP DOMNode::C14N() DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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