{"schema_version":"1.8.0","id":"CVE-2021-21705","published":"2021-10-04T04:15:08.210Z","modified":"2026-08-07T11:31:16.277388322Z","aliases":["BIT-libphp-2021-21705","BIT-php-2021-21705","BIT-php-min-2021-21705"],"related":["ALSA-2022:1935","SUSE-SU-2021:2564-1","SUSE-SU-2021:2636-1","SUSE-SU-2021:2637-1","SUSE-SU-2022:4067-1","SUSE-SU-2022:4068-1","SUSE-SU-2022:4069-1","openSUSE-SU-2021:1130-1","openSUSE-SU-2021:2575-1","openSUSE-SU-2021:2637-1"],"details":"In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can be accepted as valid. This can lead to the code incorrectly parsing the URL and potentially leading to other security implications - like contacting a wrong server or making a wrong access decision.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"52ace952a1b65ca80fc2617f11c2fa6dd03f51bd"},{"fixed":"0960f2cdcf27e843ab5102559d291de9997739ea"},{"introduced":"3c7824e16ec4c3cee417262445d2c2b66531c10f"},{"fixed":"bc008409dfa6a648671e4fde30b3a7acb374ec43"},{"introduced":"5dc92c2117cafc61daaaaa240fd46c3ac33872a4"},{"fixed":"73b5402048e23e8e2a9b13ea1a0a1adcc455e954"}],"database_specific":{"cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"7.3.0"},{"fixed":"7.3.29"},{"introduced":"7.4.0"},{"fixed":"7.4.21"},{"introduced":"8.0.0"},{"fixed":"8.0.8"}],"source":"CPE_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21705.json"}}],"references":[{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-20"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20211029-0006/"},{"type":"FIX","url":"https://bugs.php.net/bug.php?id=81122"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpujan2022.html"}],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:a:oracle:sd-wan_aware:8.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"8.2"},{"last_affected":"8.2"}],"source":"CPE_STRING","vendor_product":"oracle:sd-wan_aware"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}