CVE-2020-7071CWE-20

FILTER_VALIDATE_URL accepts URLs with invalid userinfo

Medium · published February 15, 2021

CVSS v3.1
5.3
EPSS
3%
Percentile
86.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.02902 · 86.9th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2021-02-15T04:10Z
EPSS history
Timeline
  • 15 FEB 04:10Z
    FILTER_VALIDATE_URL accepts URLs with invalid userinfo
    cvelistv5