CVE-2021-21705CWE-20

Incorrect URL validation in FILTER_VALIDATE_URL

Medium · published October 4, 2021

CVSS v3.1
4.3
EPSS
2%
Percentile
81.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.02091 · 81.5th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2021-10-04T04:00Z
EPSS history
Timeline
  • 04 OCT 04:00Z
    Incorrect URL validation in FILTER_VALIDATE_URL
    cvelistv5