CVE-2026-7258 in 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 a...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Php | Php | ≥ 8.2.0, < 8.2.21 ≥ 8.3.0, < 8.3.31 ≥ 8.4.0, < 8.4.21 ≥ 8.5.0, < 8.5.6 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-7258 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-154685-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2026-05-10 |
| Last modified | 2026-05-12 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-125: Out-of-Bounds Read
Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.
Related attack patterns (CAPEC)
CAPEC-540 Overread Buffers via CWE-125
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
{ "executive_summary": "A vulnerability 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 allows for a denial of service due to improper handling of signed char in functions like urldecode() when used with ctype functions such as isxdigit() on systems with default signed char and optimized table-lookup ctype functions.", "attack_vector_detail": "The attack vector involves sending specially crafted input to functions like urldecode() in PHP, which can lead to a negative array index access in ctype functions on systems with specific configurations, resulting in a denial of service.", "affected_components": ["PHP 8.2.* before 8.2.31", "PHP 8.3.* before 8.3.31", "PHP 8.4.* before 8.4.21", "PHP 8.5.* before 8.5.6"], "exploitation_likelihood": "MEDIUM", "remediation_priority": "HIGH",
Vulnerability details: 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 vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Questions
What is CVE-2026-7258?
{ "executive_summary": "A vulnerability 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 allows for a denial of service due to improper handling of signed char in functions like urldecode() when used with ctype functions such as isxdigit() on systems with default signed char and optimized table-lookup ctype functions.", "attack_vector_detail": "The attack vector involves sending specially crafted input to functions like urldecode() in PHP,
What is the CVSS score for CVE-2026-7258?
CVE-2026-7258 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.4%.
Is CVE-2026-7258 actively exploited?
No confirmed active exploitation of CVE-2026-7258 as of 2026-05-30.
How do I remediate CVE-2026-7258?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2026-7258?
CVE-2026-7258 affects Php Php.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Php","product":"Php","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-05-12.