CVE-2025-1220 Details
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.
A vulnerability exists in PHP versions 8.1.* prior to 8.1.33, 8.2.* prior to 8.2.29, 8.3.* prior to 8.3.23, and 8.4.* prior to 8.4.10. Certain functions, including fsockopen(), do not properly validate that the hostname provided contains no null characters. This lack of validation can lead to security issues, such as Server Side Request Forgery (SSRF), by allowing functions like parse_url() to interpret the hostname incorrectly. Consequently, user-implemented access checks may be bypassed.
Users can upgrade to PHP versions 8.1.33, 8.2.29, 8.3.23, or 8.4.10 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r | CISA-ADP | ExploitVendor Advisory |
| https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html | CVE | |
| http://www.openwall.com/lists/oss-security/2025/07/11/4 | CVE | |
| https://github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| php php | >= 8.1.0, < 8.1.33 >= 8.2.0, < 8.2.29 >= 8.3.0, < 8.3.23 >= 8.4.0, < 8.4.10 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 4, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 22, 2025 | Initial Analysis | [email protected] |
| Jul 14, 2025 | CVE Modified | CISA-ADP |
| Jul 13, 2025 | New CVE Received | [email protected] |