3.7low
Null byte termination in hostnames
- Severity
- 3.7low CVSS:3.1 by php
- Exploit likelihood
- 0.75% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- php
- Also known as
- BIT-LIBPHP-2025-1220BIT-PHP-2025-1220BIT-PHP-MIN-2025-1220GHSA-3cr5-j632-f35r
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
| Product or package | Versions | Reported by |
|---|---|---|
| PHP Group PHP | from 8.1.* before 8.1.33, from 8.2.* before 8.2.29, from 8.3.* before 8.3.23, from 8.4.* before 8.4.10 | CVE List |
| php php | from 8.1.0 before 8.1.33, from 8.2.0 before 8.2.29, from 8.3.0 before 8.3.23, from 8.4.0 before 8.4.10 | NVD |
| libphp (Bitnami) | before 8.1.33, from 8.2.0 before 8.2.29, from 8.3.0 before 8.3.23, from 8.4.0 before 8.4.10 | Bitnami Vulnerability Database |
| php (Bitnami) | before 8.1.33, from 8.2.0 before 8.2.29, from 8.3.0 before 8.3.23, from 8.4.0 before 8.4.10 | Bitnami Vulnerability Database |
| php-min (Bitnami) | before 8.1.33, from 8.2.0 before 8.2.29, from 8.3.0 before 8.3.23, from 8.4.0 before 8.4.10 | Bitnami Vulnerability Database |
All scores
| php | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En las versiones de PHP 8.1.* anteriores a la 8.1.33, 8.2.* anteriores a la 8.2.29, 8.3.* anteriores a la 8.3.23 y 8.4.* anteriores a la 8.4.10, algunas funciones como fsockopen() carecen de validación para verificar que el nombre de host proporcionado no contenga caracteres nulos. Esto puede provocar que otras funciones como parse_url() traten el nombre de host de forma diferente, lo que genera problemas de seguridad si el código de usuario implementa comprobaciones de acceso antes de acceder mediante dichas funciones.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-1220 changed 2025-11-04 | CVE Terms of Use |
| NVD | CVE-2025-1220 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPHP-2025-1220 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-2025-1220 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-MIN-2025-1220 changed 2026-09-08 | Apache-2.0 |