CVE-2024-5458

5.3 MEDIUM
Published: June 09, 2024 Modified: November 03, 2025

Description

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://www.openwall.com/lists/oss-security/2024/06/07/1
Source: security@php.net
Mailing List Third Party Advisory
https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w
Source: security@php.net
Exploit Vendor Advisory
http://www.openwall.com/lists/oss-security/2024/06/07/1
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Vendor Advisory
https://security.netapp.com/advisory/ntap-20240726-0001/
Source: af854a3a-2127-422b-91ae-364da2661108

13 reference(s) from NVD

Quick Stats

CVSS v3 Score
5.3 / 10.0
EPSS (Exploit Probability)
4.3%
89th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

fedoraproject php