5.3
MEDIUM CVSS 3.1
CVE-2024-5458
Filter bypass in filter_var (FILTER_VALIDATE_URL)
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.

INFO

Published Date :

June 9, 2024, 7:15 p.m.

Last Modified :

March 14, 2025, 3:15 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-5458 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fedoraproject fedora
1 Php php
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
This addresses a PHP URL validation logic error by updating PHP packages.
  • Upgrade PHP to version 8.1.29, 8.2.20, or 8.3.8.
  • Update the affected PHP packages on your system.
Public PoC/Exploit Available at Github

CVE-2024-5458 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-5458 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

POC : Filter bypass in filter_var (FILTER_VALIDATE_URL)

HTML PHP

Updated: 11 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Sept. 17, 2024, 12:22 a.m. This repo has been linked 1 different CVEs too.

None

PHP

Updated: 1 year, 1 month ago
0 stars 1 fork 1 watcher
Born at : July 7, 2024, 1:57 p.m. This repo has been linked 4 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-5458 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-5458 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Mar. 14, 2025

    Action Type Old Value New Value
    Added CWE CWE-345
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2024/06/07/1
    Added Reference https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w
    Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/
    Added Reference https://security.netapp.com/advisory/ntap-20240726-0001/
  • CVE Modified by [email protected]

    Jul. 28, 2024

    Action Type Old Value New Value
    Added Reference PHP Group https://security.netapp.com/advisory/ntap-20240726-0001/ [No types assigned]
  • CVE Modified by [email protected]

    Jun. 18, 2024

    Action Type Old Value New Value
    Added Reference PHP Group https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html [No types assigned]
  • CVE Modified by [email protected]

    Jun. 13, 2024

    Action Type Old Value New Value
    Added Reference PHP Group https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ [No types assigned]
  • Initial Analysis by [email protected]

    Jun. 12, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
    Changed Reference Type http://www.openwall.com/lists/oss-security/2024/06/07/1 No Types Assigned http://www.openwall.com/lists/oss-security/2024/06/07/1 Mailing List, Third Party Advisory
    Changed Reference Type https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w No Types Assigned https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w Exploit, Vendor Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ Third Party Advisory
    Added CWE NIST CWE-345
    Added CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 7.3.27 up to (including) 7.3.33 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 7.4.15 up to (including) 7.4.33 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.0.2 up to (including) 8.0.30 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.1.0 up to (excluding) 8.1.29 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.2.0 up to (excluding) 8.2.20 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 8.3.0 up to (excluding) 8.3.8
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jun. 12, 2024

    Action Type Old Value New Value
    Added Reference PHP Group https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ [No types assigned]
  • CVE Modified by [email protected]

    Jun. 10, 2024

    Action Type Old Value New Value
    Added Reference PHP Group http://www.openwall.com/lists/oss-security/2024/06/07/1 [No types assigned]
  • CVE Received by [email protected]

    Jun. 09, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference PHP Group https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w [No types assigned]
    Added CVSS V3.1 PHP Group AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact