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.

Published2026-05-07
Updated2026-05-07
AffectedPHP versions < 8.2.31; PHP versions < 8.3.31; PHP versions < 8.4.21; PHP versions < 8.5.6
FixUpgrade to 8.2.31, 8.3.31, 8.4.21, 8.5.6 (first fixed release per supported branch).
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-m8rr-4c36-8gq4

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-7258CWE-125OverflowCode ExecutionNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

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.