CVE
CVE-2025-1220
CNA description
In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* before 8.4.10 some functions like fsockopen() lack validation that the hostname supplied does not contain null characters. This may lead to other functions like parse_url() treat the hostname in different way, thus opening way to security problems if the user code implements access checks before access using such functions.
Affected versions
- ≥ 8.4.0, < 8.4.10Fixed in 8.4.10
- ≥ 8.3.0, < 8.3.23Fixed in 8.3.23
- ≥ 8.2.0, < 8.2.29Fixed in 8.2.29
- ≥ 8.1.0, < 8.1.33Fixed in 8.1.33
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.