{"id":"CVE-2024-5458","published":"2024-06-09T18:26:28Z","modified":"2025-11-03T22:32:24Z","title":"Filter bypass in filter_var (FILTER_VALIDATE_URL)","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.12117,"percentile":0.96248,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240726-0001/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html","tags":[]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":19.25},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 8.1.*, < 8.1.29",">= 8.2.*, < 8.2.20",">= 8.3.*, < 8.3.8"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-10T19:55:47.057816Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is in PHP's filter_var function when used with FILTER_VALIDATE_URL, affecting PHP 8.1 before 8.1.29, 8.2 before 8.2.20, and 8.3 before 8.3.8, where a code logic error causes URLs with invalid username and password components to be accepted as valid. An attacker who can supply a URL to an application that relies on this validation can get malformed credentials-bearing URLs accepted, which downstream code may then parse incorrectly; the attack requires no privileges or user interaction and can be carried out over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:47:00Z"},"euvd":{"id":"EUVD-2024-46674","exploited":false,"provenance":"source"}}