CVE-2025-1220
JSON

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 packageVersionsReported by
PHP Group PHPfrom 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.10CVE List
php phpfrom 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.10NVD
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.10Bitnami 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.10Bitnami 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.10Bitnami Vulnerability Database

All scores

php3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-918

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

SourceRecordLicence
CVE ListCVE-2025-1220 changed 2025-11-04CVE Terms of Use
NVDCVE-2025-1220 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LIBPHP-2025-1220 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-2025-1220 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-MIN-2025-1220 changed 2026-09-08Apache-2.0