CVE-2025-1220
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-07-13

Last updated on: 2025-11-04

Assigner: PHP Group

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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-13
Last Modified
2025-11-04
Generated
2026-05-07
AI Q&A
2025-07-14
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 4 associated CPEs
Vendor Product Version / Range
php php From 8.1.0 (inc) to 8.1.33 (exc)
php php From 8.2.0 (inc) to 8.2.29 (exc)
php php From 8.3.0 (inc) to 8.3.23 (exc)
php php From 8.4.0 (inc) to 8.4.10 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
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.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in certain PHP versions where functions like fsockopen() do not properly validate that the hostname supplied does not contain null characters. Because of this, other functions such as parse_url() may interpret the hostname differently, potentially allowing security issues if user code relies on these functions for access checks before allowing access.


How can this vulnerability impact me? :

The vulnerability can lead to security problems by bypassing access checks implemented in user code. If the hostname contains null characters, functions may treat it differently, potentially allowing unauthorized access or other security issues.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart