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-7259

CVE-2026-7259: PHP mb_regex_encoding() DOS Vulnerability

CVE-2026-7259 is a denial of service flaw in PHP that causes NULL pointer dereference through mb_regex_encoding(). This article covers the technical details, affected PHP versions, security impact, and mitigation.

Published: May 18, 2026

CVE-2026-7259 Overview

CVE-2026-7259 is a NULL pointer dereference vulnerability [CWE-476] in PHP affecting the mb_regex_encoding() function. The flaw stems from a mismatch between encoding lists in the Oniguruma regex library and the mbfl (multibyte filter library) component. When user-controlled input influences the encoding argument passed to mb_regex_encoding(), the resulting dereference triggers a segmentation fault and denial of service in the PHP process.

The issue affects PHP versions 8.2.x before 8.2.31, 8.3.x before 8.3.31, 8.4.x before 8.4.21, and 8.5.x before 8.5.6.

Critical Impact

An attacker who controls the encoding string passed to mb_regex_encoding() can crash the PHP worker process, causing a denial of service condition on affected web applications.

Affected Products

  • PHP 8.2.x prior to 8.2.31
  • PHP 8.3.x prior to 8.3.31
  • PHP 8.4.x prior to 8.4.21
  • PHP 8.5.x prior to 8.5.6

Discovery Timeline

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

Technical Details for CVE-2026-7259

Vulnerability Analysis

The vulnerability resides in PHP's multibyte string extension (ext/mbstring). PHP's mb_regex_encoding() function sets the character encoding used by multibyte regular expression functions. Internally, PHP relies on two encoding subsystems: Oniguruma for regex matching and mbfl for character conversion.

The encoding name resolution differs between these two components. An encoding string accepted by one lookup table may return a NULL pointer in the other. When the code path proceeds to dereference that NULL pointer, the PHP process terminates with a segmentation fault. The flaw is categorized as [CWE-476] NULL Pointer Dereference.

Applications that pass user-supplied data, such as HTTP headers or query parameters, into mb_regex_encoding() without validation are exposed. Each successful trigger kills the PHP worker handling the request, degrading availability of the application.

Root Cause

The defect is a logic inconsistency between encoding registries. Oniguruma recognizes certain encoding aliases that mbfl does not, and vice versa. PHP code that queries one registry assumes the other will return a matching, non-NULL pointer for the same input. This assumption fails for specific edge-case encoding names, producing the dereference.

Attack Vector

Exploitation requires an attacker to reach a code path where untrusted input flows into the encoding argument of mb_regex_encoding(). This is a network-reachable issue, but it requires user interaction or specific application logic that forwards input into the function. Successful exploitation yields denial of service against the PHP worker. The advisory does not indicate information disclosure or code execution impact.

No public proof-of-concept exploit is available. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The EPSS probability is 0.052%.

No verified exploitation code is published. See the PHP Security Advisory GHSA-wm6j-2649-pv75 for upstream technical detail.

Detection Methods for CVE-2026-7259

Indicators of Compromise

  • Repeated PHP-FPM or Apache worker crashes with segmentation fault signatures in system logs.
  • Web server error logs showing child process exited on signal 11 correlated with requests that include unusual encoding parameters.
  • HTTP requests containing atypical encoding names targeting endpoints that invoke mb_regex_encoding().

Detection Strategies

  • Audit application source code for calls to mb_regex_encoding() and trace whether the argument originates from untrusted input.
  • Inspect web access logs for anomalous values in parameters or headers that feed multibyte regex configuration.
  • Monitor PHP version inventory across hosts to identify instances running versions earlier than 8.2.31, 8.3.31, 8.4.21, or 8.5.6.

Monitoring Recommendations

  • Alert on spikes in PHP worker restarts or segmentation faults reported by the operating system.
  • Forward PHP-FPM, Apache, and Nginx error logs to a central log platform for correlation against request patterns.
  • Track outbound 5xx response rates from PHP-backed endpoints as an early indicator of crash-driven denial of service.

How to Mitigate CVE-2026-7259

Immediate Actions Required

  • Upgrade PHP to 8.2.31, 8.3.31, 8.4.21, or 8.5.6 or later, depending on the active branch.
  • Identify all application code that calls mb_regex_encoding() with input derived from HTTP requests, file uploads, or other untrusted sources.
  • Apply an allowlist of known-good encoding names before invoking mb_regex_encoding().

Patch Information

The PHP project addressed the vulnerability in PHP 8.2.31, 8.3.31, 8.4.21, and 8.5.6. Refer to the PHP Security Advisory GHSA-wm6j-2649-pv75 for the upstream fix details and commit references.

Workarounds

  • Validate the encoding argument against a hardcoded list of supported encodings such as UTF-8, SJIS, or EUC-JP before calling mb_regex_encoding().
  • Wrap calls to mb_regex_encoding() in input sanitization routines that reject unknown or malformed encoding names.
  • Configure PHP-FPM to limit worker restart storms and rate-limit requests to endpoints that accept encoding parameters.
bash
# Verify installed PHP version
php -v

# Example allowlist check before calling mb_regex_encoding()
# (pseudocode for application-layer mitigation)
# $allowed = ['UTF-8', 'SJIS', 'EUC-JP', 'ASCII'];
# if (in_array($input, $allowed, true)) { mb_regex_encoding($input); }

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPhp

  • SeverityLOW

  • CVSS Score2.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/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:Y/R:X/V:X/RE:X/U:Amber
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-476
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-7258: PHP urldecode() Denial of Service 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