CVE-2025-1220: Null byte termination in hostnames
Fixed (Null byte termination in hostnames). (CVE-2025-1220)
Other sources
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 parseurl() treat the hostname in different way, thus opening way to security problems if the user code implements access checks before access using such functions.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-1220?
The severity of CVE-2025-1220 is considered critical due to its potential impact on application security.
How do I fix CVE-2025-1220?
To fix CVE-2025-1220, update PHP to version 8.3.23 or later.
What specific issue does CVE-2025-1220 address?
CVE-2025-1220 addresses the issue of null byte termination in hostnames which could lead to security vulnerabilities.
Which versions of PHP are affected by CVE-2025-1220?
CVE-2025-1220 affects all PHP versions up to but not including 8.3.23.
Is CVE-2025-1220 being actively exploited in the wild?
As of now, there is no public information indicating that CVE-2025-1220 is being actively exploited.