{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-5458","id":"CVE-2024-5458","title":"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 URL","descriptionLong":"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-09T18:26:28.804Z","updated":"2026-10-28T02:30:32.837701431Z","reserved":"2024-05-29T00:23:37.703Z","status":"Modified","rejected":false,"assigner":"php","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"php"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"php"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"php.net"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["PHP Group PHP"],"affectedProducts":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"lessThan":"8.1.29","status":"affected","version":"8.1.*","versionType":"semver"},{"lessThan":"8.2.20","status":"affected","version":"8.2.*","versionType":"semver"},{"lessThan":"8.3.8","status":"affected","version":"8.3.*","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-345"],"aliases":["BIT-libphp-2024-5458","BIT-php-2024-5458","BIT-php-min-2024-5458","GHSA-w8qr-v226-r27w"],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w","tags":["x_transferred","Exploit","Vendor Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html","tags":["x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20240726-0001/","tags":["x_transferred","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5458.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5458","tags":["advisory"]},{"url":"https://github.com/php/php-src","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.12117,"epssPercentile":0.96231,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-5458","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5458","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-5458","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-5458","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}