CVE-2020-7071 MEDIUM

CVE-2020-7071: FILTER_VALIDATE_URL accepts URLs with invalid userinfo

Vendor Php Group
Product PHP
Weakness CWE-20 · Input validation
Published February 15, 2021
Last update September 16, 2024

CVSS base score

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

CVSS vector

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

What the vulnerability does

01Description

In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL.

Key dates

02Disclosure timeline

February 15, 2021 CVE published
September 16, 2024 Record updated