Vendors › PHP

GHSA-ch8v-r6jh-4vvr

Low (3.7) PHP · filter

ext/filter: encode 0xFF in FILTER_SANITIZE_ENCODED

php_filter_encode_url() builds a 256-entry lookup table that decides which bytes FILTER_SANITIZE_ENCODED percent-encodes, but initialises only the first 255 entries. Entry 255 is read uninitialised, so whether the byte 0xFF is encoded or passed through depends on whatever happened to be on the stack.

Published2026-09-24
Updated2026-09-24
AffectedPHP versions < 8.2.34; PHP versions < 8.3.35; PHP versions < 8.4.25; PHP versions < 8.5.10
FixUpgrade to 8.2.34, 8.3.35, 8.4.25, 8.5.10 (first fixed release per supported branch).
CVEMesh analysisThe vulnerability is a bug in the PHP filter extension that can cause the byte 0xFF to be encoded or passed through incorrectly, depending on what's on the stack. Exploitation conditions are not stated in the advisory. The most important action is to upgrade to PHP version 8.2.34, 8.3.35, 8.4.25, or 8.5.10.
AI-generated — see the vendor advisory for the authoritative text.
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-ch8v-r6jh-4vvr

CVEs (1)

CVECWETypeImpactLinks
GHSA-ch8v-r6jh-4vvr———NVD · CVE.org · EUVD

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

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.