CVE-2024-5458

Filter bypass in filter_var (FILTER_VALIDATE_URL)

Published Jun 9, 2024 CVSS 3.1 · 5.3 Medium EPSS 12.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3833-1 php7.3 security update
Debian DLA Debian DLA DLA-3920-1 php7.4 security update
Debian DSA Debian DSA DSA-5717-1 php8.2 security update
EUVD EUVD EUVD-2024-46674 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.
Ubuntu USN Ubuntu USN USN-6841-2 PHP vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.02755}

epss

{'score': 0.024}

Type Values Removed Values Added
Metrics epss

{'score': 0.02713}

epss

{'score': 0.02755}

Type Values Removed Values Added
Metrics epss

{'score': 0.01272}

epss

{'score': 0.02713}

Type Values Removed Values Added
Metrics epss

{'score': 0.00287}

epss

{'score': 0.01272}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Nov 3, 2025, 10:32 PM
Reserved
May 29, 2024, 12:23 AM
Status
Modified
Published
Jun 9, 2024, 7:15 PM
Modified
Jun 17, 2026, 8:15 AM
Severity
Moderate
Public date
Oct 21, 2022, 12:00 AM