Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTTP request with NUL-byte encoding parameter
-
DeliveryTransmit to vulnerable PHP application
-
ExploitApplication invokes mb_convert_encoding() or related mbstring function
-
ExecutionVulnerable strncasecmp() misinterprets string length
-
PersistOut-of-bounds memory read triggered
-
ImpactInformation disclosure or crash occurs
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | An application must explicitly pass user-controlled or attacker-influenced input to one of the affected mbstring functions (mb_convert_encoding(), mb_detect_encoding(), mb_convert_variables(), or mb_detect_order()) or configure the mbstring.detect_order or mbstring.http_output INI settings with external input. The encoding parameter value must be deliverable via network (HTTP parameter, POST data, file upload metadata, Content-Type header, etc.). Exploitation specifically requires the encoding name to contain an embedded NUL byte (\x00), which must successfully traverse input handling without being stripped or rejected by earlier validation. Exploitation is limited to PHP versions 8.4.0-8.4.20 and 8.5.0-8.5.5; PHP 8.3.x and earlier versions are not vulnerable. The vulnerability does not require authentication or special privileges, and exploitation does not depend on non-default PHP configuration. However, if the application sanitizes or validates encoding names (rejecting NUL bytes, requiring known encoding names from a whitelist, or filtering special characters), exploitation is prevented. Default PHP installations with mbstring enabled but without explicit exposure of encoding parameters to untrusted input are at minimal risk. |
| Impact | CVSS 6.3 with CVSS:4.0 vector indicates moderate severity. Attack vector is network (AV:N) with low complexity (AC:L), meaning no authentication (PR:N) or user interaction (UI:N) is required, allowing remote exploitation. However, the AT:P (attack time = present) modifier suggests exploitation requires temporal conditions or specific request patterns. The vulnerability has limited confidentiality impact (VC:L) through information disclosure of global memory, and limited availability impact (SA:L) via crash-triggering. Integrity and remote system impact are not present (VI:N, VA:L as availability loss). EPSS score is not provided, limiting exploitation probability assessment. Critically, while network-accessible without authentication, the vulnerability requires crafting a request with an embedded NUL byte in an encoding parameter-a non-trivial but feasible precondition. The vulnerability is not listed as actively exploited (KEV status unknown), and no public exploit code has been identified. Real-world risk depends on deployment: applications that accept user-controlled encoding parameters via HTTP/API endpoints (e.g., web services, multi-language platforms) face higher risk than those with hardcoded encoding names. The information disclosure potential (reading arbitrary global memory) is more concerning than denial-of-service risk, particularly in scenarios where sensitive data (API keys, session tokens, cryptographic material) might reside in adjacent memory regions. The temporal modifier (RE:M = remediation medium) suggests vendor patch is available within expected timeframe. |
| Exploit ScenarioDerived | An attacker crafts an HTTP request to a web application that exposes encoding conversion functionality (e.g., a file upload service with charset detection, a REST API with content negotiation, or a legacy PHP application with user-controlled encoding parameters). The attacker includes a specially crafted encoding name containing an embedded NUL byte-for example, submitting 'UTF-8\x00AAAA...' as an encoding parameter. When the application passes this to mb_convert_encoding() or mb_detect_encoding(), the vulnerable strncasecmp() logic misinterprets the comparison, triggering an out-of-bounds read of global memory. If successful, the attacker can either cause a crash (denial of service) or, in more sophisticated exploitation, extract sensitive data from adjacent memory regions that may contain API keys, session tokens, or cryptographic material. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 10, 2026
Out-of-bounds read in PHP's mbstring extension allows remote attackers to trigger information disclosure or denial of service via specially crafted encoding names containing NUL bytes passed to mb_convert_encoding() and related functions. Affected versions: PHP 8.4.0-8.4.20 and 8.5.0-8.5.5. The vulnerability stems from unsafe string length comparison logic that misinterprets strncasecmp() return values when NUL bytes are present, potentially exposing global memory contents or crashing the application. No public exploit code identified at time of analysis.
RemediationAI
Upgrade immediately to PHP 8.4.21 or later, or to PHP 8.5.6 or later. Users on PHP 8.3 or earlier are unaffected and do not require patching. For environments unable to upgrade immediately, implement input validation to reject encoding parameter values containing NUL bytes (\x00 / chr(0) in PHP). This can be enforced at the application level before calling mbstring functions: validate user-supplied encoding names against a whitelist of valid encoding names (e.g., 'UTF-8', 'ISO-8859-1', 'Shift_JIS') or use preg_match('/^[a-zA-Z0-9_-]+$/', $encoding) to reject suspicious characters. Additionally, restrict access to PHP scripts that expose encoding parameters to trusted sources only if feasible, and consider disabling unused mbstring functionality. Note that disabling the mbstring extension entirely has high impact (breaks character encoding features in multi-language applications) but eliminates the attack surface; assess necessity based on application requirements. Security advisory available at https://github.com/php/php-src/security/advisories/GHSA-74r9-qxhc-fx53.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The mbstring extension in PHP provides character encoding conversion and detection functions. The vulnerability exists in how these functions validate encoding names before processing. The root cause (CWE-125: out-of-bounds read) arises from a logic error in string comparison: the code uses strncasecmp() to compare encoding names but incorrectly assumes that a return value of 0 guarantees the strings have equal length. When an encoding name contains an embedded NUL byte (\x00), strncasecmp() truncates comparison at the NUL boundary, returning 0 even though the actual strings differ in length. This causes the function to read beyond the intended buffer boundary, accessing adjacent global memory. The affected functions include mb_convert_encoding() (for charset conversion), mb_detect_encoding() (for charset detection), mb_convert_variables() (batch conversion), and mb_detect_order() (detection priority). Additionally, the mbstring.detect_order and mbstring.http_output INI settings, which internally call these functions, are also affected. CPE designation a:php_group:php covers all PHP installations using the vulnerable mbstring extension.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Medium–Critical)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L/RE:M/U:Amber
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor: php
Lifecycle Timeline
3DescriptionCVE.org
In PHP versions 8.4.* before 8.4.21 and 8.5.* before 8.5.6, when an encoding name containing an embedded NUL byte is passed to mb_convert_encoding() or related mbstring functions, the code incorrectly assumes that when strncasecmp() returns 0 it means the strings have the same length. This can lead to out-of-bounds read of global memory, potentially causing a crash or information disclosure or crash. Affected functions include mb_convert_encoding(), mb_detect_encoding(), mb_convert_variables(), and mb_detect_order(), as well as the mbstring.detect_order and mbstring.http_output INI settings.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-125 – Out-of-bounds Read
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Legacy 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Legacy 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Legacy 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Legacy 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE CaaS Platform 4.0 | Fixed |
| SUSE Enterprise Storage 6 | Fixed |
| SUSE Enterprise Storage 7 | Fixed |
| SUSE Enterprise Storage 7.1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP1 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP2 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP3 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP1 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP2 | Fixed |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP3 | Fixed |
| SUSE Linux Enterprise Server 15 | Fixed |
| SUSE Linux Enterprise Server 15 SP1 | Fixed |
| SUSE Linux Enterprise Server 15 SP1-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP2 | Fixed |
| SUSE Linux Enterprise Server 15 SP2-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP3 | Fixed |
| SUSE Linux Enterprise Server 15 SP3-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise Server 15-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Manager Proxy 4.0 | Fixed |
| SUSE Manager Proxy 4.1 | Fixed |
| SUSE Manager Proxy 4.2 | Fixed |
| SUSE Manager Retail Branch Server 4.0 | Fixed |
| SUSE Manager Retail Branch Server 4.1 | Fixed |
| SUSE Manager Retail Branch Server 4.2 | Fixed |
| SUSE Manager Server 4.0 | Fixed |
| SUSE Manager Server 4.1 | Fixed |
| SUSE Manager Server 4.2 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Leap 15.6 | Fixed |
EUVD-2026-28979
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB