{"id":"CVE-2021-21705","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.","aliases":["BIT-libphp-2021-21705","BIT-php-2021-21705","BIT-php-min-2021-21705"],"modified":"2026-04-16T04:37:04.747707672Z","published":"2021-10-04T04:15:08.210Z","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"],"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://www.oracle.com/security-alerts/cpujan2022.html"},{"type":"FIX","url":"https://bugs.php.net/bug.php?id=81122"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"52ace952a1b65ca80fc2617f11c2fa6dd03f51bd"},{"fixed":"0960f2cdcf27e843ab5102559d291de9997739ea"},{"introduced":"3c7824e16ec4c3cee417262445d2c2b66531c10f"},{"fixed":"bc008409dfa6a648671e4fde30b3a7acb374ec43"},{"introduced":"5dc92c2117cafc61daaaaa240fd46c3ac33872a4"},{"fixed":"73b5402048e23e8e2a9b13ea1a0a1adcc455e954"},{"introduced":"0"},{"last_affected":"70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"}],"database_specific":{"versions":[{"introduced":"7.3.0"},{"fixed":"7.3.29"},{"introduced":"7.4.0"},{"fixed":"7.4.21"},{"introduced":"8.0.0"},{"fixed":"8.0.8"},{"introduced":"0"},{"last_affected":"8.2"}]}}],"versions":["POST_64BIT_BRANCH_MERGE","POST_AST_MERGE","POST_PHP7_NSAPI_REMOVAL","POST_PHP7_REMOVALS","POST_PHPNG_MERGE","PRE_64BIT_BRANCH_MERGE","PRE_AST_MERGE","PRE_PHP7_EREG_MYSQL_REMOVALS","PRE_PHP7_NSAPI_REMOVAL","PRE_PHP7_REMOVALS","php-8.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21705.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}