CVE-2024-5458 | Filter bypass in filter_var (FILTER_VALIDATE_URL)

Exp

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.

Published: 2024-06-09 Last update: 2025-11-03 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-5458 is rated High Exploit Risk (66.2/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 3.58%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-5458

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-5458

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-01 4.30% 3.58% -0.73%
2 2026-03-04 2.87% 4.30% +1.43%
3 2026-03-01 2.87%

Full EPSS history (45 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-5458

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]

Weakness enumeration for CVE-2024-5458

OS Trackers for CVE-2024-5458

vendor priority summary link
debian not yet assigned CVE-2024-5458 not yet assigned priority: Debian including 2 source packages (php7.4, php8.2), 2 status rows across 2 suites (bookworm, bullseye): resolved 2. https://security-tracker.debian.org/tracker/CVE-2024-5458
gentoo high CVE-2024-5458: 1 GLSA(s) (202408-32), 1 atom(s) (dev-lang/php); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2024-5458
redhat medium https://access.redhat.com/security/cve/CVE-2024-5458
suse medium CVE-2024-5458 severity moderate: SUSE including 492 source package names (8-23.4:apache2-mod_php8-8.0.30-150400.4.43.1, 8-23.4:php8-8.0.30-150400.4.43.1, …), 1754 product×package rows across 34 product lines (Container bci/php, Container bci/php-apache, … (34 product lines)): Fixed 1659, Known Not Affected 95. https://www.suse.com/security/cve/CVE-2024-5458/
ubuntu medium CVE-2024-5458 medium priority: Ubuntu including 7 source packages (php5, php7.0, …), 59 status rows across 11 suites (bionic, focal, jammy, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 44, released 10, needs-triage 5. https://ubuntu.com/security/CVE-2024-5458

Affected software / configurations for CVE-2024-5458

Vendor Product Version Raw CPE
php php >= 7.3.27, <= 7.3.33 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 7.4.15, <= 7.4.33 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.0.2, <= 8.0.30 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.1.0, < 8.1.29 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.2.0, < 8.2.20 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.3.0, < 8.3.8 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
fedoraproject fedora 40 cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*

References for CVE-2024-5458

cvelogic Threat Intelligence