Vendors › PHP

CVE-2025-1734

Medium (no CVSS assigned) EPSS 0.7% PHP · core

Streams HTTP wrapper does not fail for headers with invalid name and no colon

The headers without colon are currently returned without in $http_response_header. It means that something like: printf "HTTP/1.0 200 Ok\r\nContent-Type: text/html\r\nWrong-Header\r\nGood-Header: test\r\n\r\nbody\r\n" |nc -l 0.0.0.0 8000 results in following $http_response_header array(4) { [0]=> string(15) "HTTP/1.0 200 Ok" [1]=> string(23) "Content-Type: text/html" [2]=> string(12) "Wrong-Header" [3]=> string(17) "Good-Header: test" } In addition headers that contain a space in header name (before the colon) will also not fail which is not allowed by RFC.

Published2025-03-13
Updated2025-03-13
AffectedPHP versions < 8.1.32; PHP versions < 8.2.28; PHP versions < 8.3.18; PHP versions < 8.4.5
FixUpgrade to 8.1.32, 8.2.28, 8.3.19, 8.4.5 (first fixed release per supported branch).
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-pcmh-g36c-qc44

CVEs (1)

CVECWETypeImpactLinks
CVE-2025-1734CWE-20Input ValidationOtherNVD · 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.