{"id":"CVE-2021-21705","published":"2021-10-04T04:00:15Z","modified":"2024-09-17T04:09:29Z","title":"Incorrect URL validation in FILTER_VALIDATE_URL","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02091,"percentile":0.81556,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://bugs.php.net/bug.php?id=81122","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20211029-0006/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/202209-20","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":16.31},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 7.3.x, < 7.3.29",">= 7.4.x, < 7.4.21",">= 8.0.X, < 8.0.8"]}],"euvd":{"id":"EUVD-2021-8877","exploited":false,"provenance":"source"}}