CVE-2021-21705 MEDIUM

CVE-2021-21705: Incorrect URL validation in FILTER_VALIDATE_URL

Vendor Php Group
Product PHP
Weakness CWE-20 · Input validation
Published October 4, 2021
Last update September 17, 2024

CVSS base score

4.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 4, 2021 CVE published
September 17, 2024 Record updated