CVE-2026-7258: CWE-125 Out-of-bounds Read 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, some functions, including urldecode(), pass signed char to ctype functions (like isxdigit()). On the systems with default signed char and optimized table-lookup ctype functions - such as NetBSD - this can lead to accessing array with negative offset, which can trigger a denial of service.
AI Analysis
Technical Summary
This vulnerability arises from improper handling of signed char values passed to ctype functions in PHP versions before 8.2.31, 8.3.31, 8.4.21, and 8.5.6. On certain systems like NetBSD, where the default char is signed and ctype functions use optimized table lookups, this can cause an out-of-bounds read by indexing arrays with negative offsets. The affected functions include urldecode() among others. The impact is a potential denial of service due to this out-of-bounds memory access. The vulnerability is tracked as CWE-125. There is no vendor advisory specifying a patch or workaround at this time.
Potential Impact
The vulnerability can cause a denial of service on affected PHP versions running on systems with signed char defaults and optimized ctype implementations. There is no indication of code execution or data corruption beyond the denial of service. No known exploits have been reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should monitor PHP Group advisories for updates. No specific workaround is provided in the available data.
CVE-2026-7258: CWE-125 Out-of-bounds Read 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, some functions, including urldecode(), pass signed char to ctype functions (like isxdigit()). On the systems with default signed char and optimized table-lookup ctype functions - such as NetBSD - this can lead to accessing array with negative offset, which can trigger a denial of service.
CVSS v4.0
Score 6.3medium
Affected software
pkg:github/php/php-srcRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from improper handling of signed char values passed to ctype functions in PHP versions before 8.2.31, 8.3.31, 8.4.21, and 8.5.6. On certain systems like NetBSD, where the default char is signed and ctype functions use optimized table lookups, this can cause an out-of-bounds read by indexing arrays with negative offsets. The affected functions include urldecode() among others. The impact is a potential denial of service due to this out-of-bounds memory access. The vulnerability is tracked as CWE-125. There is no vendor advisory specifying a patch or workaround at this time.
Potential Impact
The vulnerability can cause a denial of service on affected PHP versions running on systems with signed char defaults and optimized ctype implementations. There is no indication of code execution or data corruption beyond the denial of service. No known exploits have been reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should monitor PHP Group advisories for updates. No specific workaround is provided in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2026-04-28T04:58:17.457Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a000b48cbff5d861022ac71
Added to database: 05/10/2026, 04:36:24 UTC
Last enriched: 05/17/2026, 10:49:51 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 239
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.