CVE-2025-1220

Null byte termination in hostnames

Published Jul 13, 2025 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4254-1 php7.4 security update
Debian DSA Debian DSA DSA-5967-1 php8.2 security update
EUVD EUVD EUVD-2025-21274 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.
Ubuntu USN Ubuntu USN USN-7648-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-7648-2 PHP vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00028}

Type Values Removed Values Added
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.
Title Null byte termination in hostnames
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Nov 4, 2025, 9:09 PM
Reserved
Feb 11, 2025, 4:54 AM
Status
Modified
Published
Jul 13, 2025, 11:15 PM
Modified
Jun 17, 2026, 8:38 AM
Severity
Low
Public date
Jul 13, 2025, 10:18 PM