Vendors › PHP

CVE-2025-1220

Low (no CVSS assigned) EPSS 0.6% PHP · core

Null byte termination in hostnames

fsockopen() doesn't regard hostname as well, hostname is terminated at the null byte. This can cause Server Side Request Forgery in general case.

Published2025-07-03
Updated2026-05-19
AffectedPHP versions < 8.1.33; PHP versions < 8.2.29; PHP versions < 8.3.23; PHP versions < 8.4.10
FixUpgrade to 8.1.33, 8.2.29, 8.3.23, 8.4.10 (first fixed release per supported branch).
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r

CVEs (1)

CVECWETypeImpactLinks
CVE-2025-1220CWE-918Server-Side Request Forgery (SSRF)Information LeakNVD · 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.