CVE-2026-7259: CWE-476 NULL Pointer Dereference in PHP Group PHP
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().
AI Analysis
Technical Summary
This vulnerability arises from a mismatch between encoding lists used by Oniguruma and mbfl libraries in certain PHP versions, leading to a NULL pointer dereference. When user input controls the encoding parameter passed to mb_regex_encoding(), it can cause a segmentation fault resulting in denial of service. The affected PHP versions are 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6. The CVSS 4.0 base score is 2.1, indicating low severity. There is no vendor advisory or patch information currently available to confirm remediation status.
Potential Impact
The vulnerability can cause a denial of service via segmentation fault when exploited, impacting availability of PHP applications running affected versions. There is no indication of privilege escalation, data confidentiality loss, or integrity compromise. Exploitation requires user-controlled input to influence encoding passed to mb_regex_encoding(). No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider restricting or validating user input that influences mb_regex_encoding() to prevent triggering the NULL pointer dereference. Monitor official PHP Group communications for updates on patches or workarounds.
CVE-2026-7259: CWE-476 NULL Pointer Dereference in PHP Group PHP
Description
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().
CVSS v4.0
Score 2.1low
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from a mismatch between encoding lists used by Oniguruma and mbfl libraries in certain PHP versions, leading to a NULL pointer dereference. When user input controls the encoding parameter passed to mb_regex_encoding(), it can cause a segmentation fault resulting in denial of service. The affected PHP versions are 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6. The CVSS 4.0 base score is 2.1, indicating low severity. There is no vendor advisory or patch information currently available to confirm remediation status.
Potential Impact
The vulnerability can cause a denial of service via segmentation fault when exploited, impacting availability of PHP applications running affected versions. There is no indication of privilege escalation, data confidentiality loss, or integrity compromise. Exploitation requires user-controlled input to influence encoding passed to mb_regex_encoding(). No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider restricting or validating user input that influences mb_regex_encoding() to prevent triggering the NULL pointer dereference. Monitor official PHP Group communications for updates on patches or workarounds.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2026-04-28T05:07:03.118Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a000b48cbff5d861022ac74
Added to database: 5/10/2026, 4:36:24 AM
Last enriched: 5/17/2026, 10:49:56 AM
Last updated: 6/18/2026, 5:16:51 AM
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.