CVE Catalog

CVE-2024-5458

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Very high risk
12.12%

96th percentile - higher than 96% of all known CVEs

Summary

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to downstream code accepting invalid URLs as valid and parsing them incorrectly.

Risk Assessment

Applications relying on FILTER_VALIDATE_URL may accept malicious URLs, potentially bypassing validation mechanisms and leading to further attacks such as SSRF or data injection. The risk affects PHP applications processing URLs.

Recommendation

Upgrade PHP to version 8.1.29, 8.2.20, 8.3.8 or later. Review code using FILTER_VALIDATE_URL and consider additional validation.

Other vulnerabilities in PHP

See all
Original NVD description (English source)

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs the function will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to the downstream code accepting invalid URLs as valid and parsing them incorrectly.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS