Vendors › PHP
CVE-2026-7258
Medium (6.3) EPSS 0.4% PHP · core
Out-of-bounds read in urldecode()
Consider the following snippet within php_url_decode_ex() at ext/standard/url.c, called from PHPs urldecode() function: https://github.com/php/php-src/blob/dcf653339c245e25ea319248d0fc071a9405d688/ext/standard/url.c#L592-L593 According to the C11 specification, isxdigit()'s (and all other ctype.h functions') only argument is of type int, and any value passed to it must be representable by unsigned char, i.e. 0-255.
| Published | 2026-05-07 |
| Updated | 2026-05-07 |
| Affected | PHP versions < 8.2.31; PHP versions < 8.3.31; PHP versions < 8.4.21; PHP versions < 8.5.6 |
| Fix | Upgrade to 8.2.31, 8.3.31, 8.4.21, 8.5.6 (first fixed release per supported branch). |
| Vendor advisory | https://github.com/php/php-src/security/advisories/GHSA-m8rr-4c36-8gq4 |
CVEs (1)
| CVE | CWE | Type | Impact | Links |
|---|---|---|---|---|
| CVE-2026-7258 | CWE-125 | Overflow | Code Execution | NVD · CVE.org · EUVD |
CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.
Same CVE in other advisories
- RHSA-2026:34354 — Red Hat · High (7.7) · 2026-07-01
Red Hat Security Advisory: php:7.4 security update - RHSA-2026:33449 — Red Hat · High (7.7) · 2026-06-30
Red Hat Security Advisory: php security update - K000161852 — F5 · N/A (F5 products not affected) · 2026-06-23
PHP vulnerabilities CVE-2025-1735 and CVE-2026-7258 - RHSA-2026:23388 — Red Hat · High (7.7) · 2026-06-04
Red Hat Security Advisory: php security update - RHSA-2026:22649 — Red Hat · High (8.2) · 2026-06-02
Red Hat Security Advisory: php8.4 security update - RHSA-2026:22305 — Red Hat · High (7.7) · 2026-06-01
Red Hat Security Advisory: php:8.2 security update - RHSA-2026:22143 — Red Hat · High (7.7) · 2026-06-01
Red Hat Security Advisory: php:8.2 security update - RHSA-2026:22142 — Red Hat · High (7.7) · 2026-06-01
Red Hat Security Advisory: php:8.3 security update - RHSA-2026:14125 — Red Hat · Medium (5.9) · 2026-05-06
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
Open in the CVEMesh app Create a free account
Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.
CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.