Insufficient Validation in PHP Functions Exposes Users to Security Risks
CVE-2025-1220
3.7LOW
What is CVE-2025-1220?
Certain versions of PHP have an input validation error where functions such as fsockopen() do not validate that the supplied hostname is free of null characters. This oversight can cause subsequent functions like parse_url() to process the hostname incorrectly, leading to potential security vulnerabilities, especially if access checks are implemented in user code based on the hostname. Developers using affected versions should ensure they validate input properly to mitigate these security risks.
Affected Version(s)
PHP 8.1.*
PHP 8.1.* < 8.1.33
PHP 8.2.* < 8.2.29