{"id":"CVE-2024-5458","state":"PUBLISHED","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 URLs as valid and parsing them incorrectly.","publishedAt":"2024-06-09T18:26:28.804Z","updatedAt":"2025-11-03T22:32:24.445Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"php"},"assigner":"php","products":["PHP Group PHP"],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"version":"8.1.*","status":"affected","lessThan":"8.1.29","versionType":"semver"},{"version":"8.2.*","status":"affected","lessThan":"8.2.20","versionType":"semver"},{"version":"8.3.*","status":"affected","lessThan":"8.3.8","versionType":"semver"}],"modules":["filter"],"programFiles":["ext/filter/logical_filters.c"],"repo":"https://github.com/php/php-src"}],"references":["https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w","http://www.openwall.com/lists/oss-security/2024/06/07/1","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html","https://security.netapp.com/advisory/ntap-20240726-0001/","https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html"],"weaknesses":["CWE-345"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/5xxx/CVE-2024-5458.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-5458","state":"PUBLISHED","datePublished":"2024-06-09T18:26:28.804Z","dateUpdated":"2025-11-03T22:32:24.445Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2024-05-29T00:23:37.703Z"},"containers":{"cna":{"title":"Filter bypass in filter_var (FILTER_VALIDATE_URL)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"version":"8.1.*","status":"affected","lessThan":"8.1.29","versionType":"semver"},{"version":"8.2.*","status":"affected","lessThan":"8.2.20","versionType":"semver"},{"version":"8.3.*","status":"affected","lessThan":"8.3.8","versionType":"semver"}],"modules":["filter"],"programFiles":["ext/filter/logical_filters.c"],"repo":"https://github.com/php/php-src"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w"},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html"},{"url":"https://security.netapp.com/advisory/ntap-20240726-0001/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"providerMetadata":{"shortName":"php","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateUpdated":"2024-07-28T14:05:58.895Z"},"credits":[{"lang":"en","type":"reporter","value":"c01l"}],"datePublic":"2024-06-09T18:00:00.000Z","source":{"advisory":"GHSA-w8qr-v226-r27w","discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"php","product":"php","defaultStatus":"affected","versions":[{"version":"7.3.27","status":"affected","lessThanOrEqual":"7.3.33","versionType":"semver"},{"version":"7.4.15","status":"affected","lessThanOrEqual":"7.4.33","versionType":"semver"},{"version":"8.0.2","status":"affected","lessThanOrEqual":"8.0.30","versionType":"semver"},{"version":"8.1.0","status":"affected","lessThan":"8.1.29","versionType":"semver"},{"version":"8.2.0","status":"affected","lessThan":"8.2.20","versionType":"semver"},{"version":"8.3.0","status":"affected","lessThan":"8.3.8","versionType":"semver"}],"cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"]},{"vendor":"fedoraproject","product":"fedora","defaultStatus":"unknown","versions":[{"version":"40","status":"affected"}],"cpes":["cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-10T19:55:47.057816Z","id":"CVE-2024-5458","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-345","type":"CWE","lang":"en","description":"CWE-345 Insufficient Verification of Data Authenticity"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-14T14:13:20.514Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00009.html","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240726-0001/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:32:24.445Z"}}]}}}