Filter bypass in filter_var (FILTER_VALIDATE_URL)
CVE-2024-5458Published 9 Jun 2024, 18:26 UTC
Real-world risk
2.9/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.3
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from php)
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.
Am I affected?
What to do
Update to a fixed version: 8.1.29, 8.2.20, 8.3.8.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- CISA SSVC: proof of concept
EPSS 12.1% chance of exploitation in 30 days (percentile 96), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T3: Public proof of concept0.950
- 10 × impact 0.3 × prerequisites 1 × threat 0.952.850
- Rounded to one decimal between 0.1 and 102.9
Exploitation and evidence timeline
- 9 Jun 2024 Published
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 2.9 (cvss fallback)
Weakness
CWE-345
References
- https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27wx-transferred
- http://www.openwall.com/lists/oss-security/2024/06/07/1x-transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/x-transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/x-transferred
- https://lists.debian.org/debian-lts-announce/2024/06/msg00009.htmlx-transferred
- https://security.netapp.com/advisory/ntap-20240726-0001/x-transferred
- https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html
- CVE-2024-5458 on CVE.org