# CVE-2024-5458: Filter bypass in filter_var (FILTER_VALIDATE_URL)

- Severity: Medium 5.3 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 12.1%, higher than 96% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-09T18:26:28.804Z
- Modified: 2026-09-08T08:48:18.239Z
- Also known as: BIT-LIBPHP-2024-5458, BIT-PHP-2024-5458, BIT-PHP-MIN-2024-5458, GHSA-w8qr-v226-r27w
- Weaknesses: CWE-345
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.1.* before 8.1.29; from 8.2.* before 8.2.20; from 8.3.* before 8.3.8
- php php: from 7.3.27 up to 7.3.33; from 7.4.15 up to 7.4.33; from 8.0.2 up to 8.0.30; from 8.1.0 before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8
- fedoraproject fedora: 40
- libphp (Bitnami): before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8
- php (Bitnami): before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8
- php-min (Bitnami): before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8

## Every score

- php: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w> (exploit, advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/06/07/1> (advisory, mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/> (advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/> (web)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html> (web)
- <https://security.netapp.com/advisory/ntap-20240726-0001/> (web)
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5458> (web)

## Sources

- CVE List: [CVE-2024-5458](https://www.cve.org/CVERecord?id=CVE-2024-5458), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-5458](https://nvd.nist.gov/vuln/detail/CVE-2024-5458), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2024-5458](https://osv.dev/vulnerability/BIT-LIBPHP-2024-5458), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2024-5458](https://osv.dev/vulnerability/BIT-PHP-2024-5458), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2024-5458](https://osv.dev/vulnerability/BIT-PHP-MIN-2024-5458), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-5458 · Whole record: https://cve.day/CVE-2024-5458.json · Rebuilt by cve.day 2026-11-25T22:58:41.604Z
