CVE-2025-1220
MEDIUM5.3EPSS 0.16%Null byte termination in hostnames
Published: 7/13/2025Modified: 4/28/2026
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 packages (8)
- Bitnami/libphpfrom 0, < 8.1.33, >= 8.2.0, < 8.2.29, >= 8.3.0, < 8.3.23, >= 8.4.0, < 8.4.10
- Bitnami/phpfrom 0, < 8.1.33, >= 8.2.0, < 8.2.29, >= 8.3.0, < 8.3.23, >= 8.4.0, < 8.4.10
- Bitnami/php-minfrom 0, < 8.1.33, >= 8.2.0, < 8.2.29, >= 8.3.0, < 8.3.23, >= 8.4.0, < 8.4.10
- Debian/php7.4from 0, < 7.4.33-1+deb11u9
- Debian/php7.4from 0, < 7.4.33-1+deb11u9
- Debian/php8.2from 0, < 8.2.29-1~deb12u1
- Debian/php8.2from 0, < 8.2.29-1~deb12u1
- Debian/php8.4from 0, < 8.4.10-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
References (5)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-1220
- WEBhttps://github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r
- WEBhttps://lists.debian.org/debian-lts-announce/2025/07/msg00017.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2025-1220
- WEBhttp://www.openwall.com/lists/oss-security/2025/07/11/4