Medium severity · published Jul 13, 2025
CVE-2025-1220
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…
5.3
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 55% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PH
PHP · PHP
8.1.0 before 8.1.33; 8.2.0 before 8.2.29; 8.3.0 before 8.3.23; 8.4.0 before 8.4.10 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-1220
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-1220
Exploit
https://github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r
www.openwall.com
http://www.openwall.com/lists/oss-security/2025/07/11/4
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html
More from PHP
9.8
CVE-2026-109618
RCE via OOM corruption
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2016-10033
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute…
9.8
CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
