CVE-2025-1220

Null byte termination in hostnames

MEDIUM
5.3
CVSS Score
Published: July 13, 2025 at 10:18 PM UTC
Updated: June 17, 2026 at 08:38 AM UTC
1 product affected across 1 vendorPHP

Using PHP by PHP Group?

Get instant alerts when new vulnerabilities affect PHP - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.7%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
8.1.* ≤ v < 8.1.338.1.0 ≤ v < 8.1.338.2.* ≤ v < 8.2.298.2.0 ≤ v < 8.2.298.3.* ≤ v < 8.3.238.3.0 ≤ v < 8.3.238.4.* ≤ v < 8.4.108.4.0 ≤ v < 8.4.108.1.*8.2.*8.3.*8.4.*
Affected range stops below 8.1.33, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.2.29, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.3.23, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.4.10, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-918

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card