PHP up to 8.1.32/8.2.28/8.3.22/8.4.9 Null Character fsockopen Hostname server-side request forgery
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.2 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as critical, has been found in PHP up to 8.1.32/8.2.28/8.3.22/8.4.9. Affected by this issue is the function fsockopen of the component Null Character Handler. Performing a manipulation of the argument Hostname results in server-side request forgery.
This vulnerability is reported as CVE-2025-1220. The attack is possible to be carried out remotely. No exploit exists.
It is advisable to upgrade the affected component.
Details
A vulnerability, which was classified as problematic, was found in PHP up to 8.1.32/8.2.28/8.3.22/8.4.9. This affects the function fsockopen of the component Null Character Handler. The manipulation of the argument hostname with an unknown input leads to a server-side request forgery vulnerability. CWE is classifying the issue as CWE-918. The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. This is going to have an impact on confidentiality. The summary by CVE is:
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.
The advisory is shared at github.com. This vulnerability is uniquely identified as CVE-2025-1220 since 02/11/2025. The exploitability is told to be difficult. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 12/22/2025).
The vulnerability scanner Nessus provides a plugin with the ID 242042 (Fedora 42 : php (2025-2c344545bf)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 8.1.33, 8.2.29, 8.3.23 or 8.4.10 eliminates this vulnerability.
The vulnerability is also documented in the databases at Tenable (242042), EUVD (EUVD-2025-21274) and CERT Bund (WID-SEC-2025-1460). If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Affected
- Debian Linux
- Amazon Linux 2
- Red Hat Enterprise Linux
- Fedora Linux
- Ubuntu Linux
- SUSE Linux
- Oracle Linux
- SUSE openSUSE
- RESF Rocky Linux
- Xerox FreeFlow Print Server
- Open Source PHP
- cPanel cPanel/WHM
Product
Type
Name
Version
- 8.1.0
- 8.1.1
- 8.1.2
- 8.1.3
- 8.1.4
- 8.1.5
- 8.1.6
- 8.1.7
- 8.1.8
- 8.1.9
- 8.1.10
- 8.1.11
- 8.1.12
- 8.1.13
- 8.1.14
- 8.1.15
- 8.1.16
- 8.1.17
- 8.1.18
- 8.1.19
- 8.1.20
- 8.1.21
- 8.1.22
- 8.1.23
- 8.1.24
- 8.1.25
- 8.1.26
- 8.1.27
- 8.1.28
- 8.1.29
- 8.1.30
- 8.1.31
- 8.1.32
- 8.2.0
- 8.2.1
- 8.2.2
- 8.2.3
- 8.2.4
- 8.2.5
- 8.2.6
- 8.2.7
- 8.2.8
- 8.2.9
- 8.2.10
- 8.2.11
- 8.2.12
- 8.2.13
- 8.2.14
- 8.2.15
- 8.2.16
- 8.2.17
- 8.2.18
- 8.2.19
- 8.2.20
- 8.2.21
- 8.2.22
- 8.2.23
- 8.2.24
- 8.2.25
- 8.2.26
- 8.2.27
- 8.2.28
- 8.3.0
- 8.3.1
- 8.3.2
- 8.3.3
- 8.3.4
- 8.3.5
- 8.3.6
- 8.3.7
- 8.3.8
- 8.3.9
- 8.3.10
- 8.3.11
- 8.3.12
- 8.3.13
- 8.3.14
- 8.3.15
- 8.3.16
- 8.3.17
- 8.3.18
- 8.3.19
- 8.3.20
- 8.3.21
- 8.3.22
- 8.4.0
- 8.4.1
- 8.4.2
- 8.4.3
- 8.4.4
- 8.4.5
- 8.4.6
- 8.4.7
- 8.4.8
- 8.4.9
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.2VulDB Meta Temp Score: 4.2
VulDB Base Score: 3.7
VulDB Temp Score: 3.6
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 5.3
NVD Vector: 🔒
CNA Base Score: 3.7
CNA Vector (php): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Server-side request forgeryCWE: CWE-918
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 242042
Nessus Name: Fedora 42 : php (2025-2c344545bf)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: PHP 8.1.33/8.2.29/8.3.23/8.4.10
Timeline
02/11/2025 CVE reserved07/14/2025 Advisory disclosed
07/14/2025 VulDB entry created
12/22/2025 VulDB entry last update
Sources
Product: php.orgAdvisory: GHSA-3cr5-j632-f35r
Status: Confirmed
CVE: CVE-2025-1220 (🔒)
GCVE (CVE): GCVE-0-2025-1220
GCVE (VulDB): GCVE-100-316317
EUVD: 🔒
CERT Bund: WID-SEC-2025-1460 - PHP: Mehrere Schwachstellen
Entry
Created: 07/14/2025 08:04Updated: 12/22/2025 22:26
Changes: 07/14/2025 08:04 (67), 07/14/2025 08:25 (2), 07/14/2025 08:46 (1), 07/22/2025 19:13 (12), 08/22/2025 14:37 (7), 12/20/2025 23:49 (1), 12/22/2025 22:26 (1)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.