CVE-2020-7071

FILTER_VALIDATE_URL accepts URLs with invalid userinfo

State
Published
Severity
5.3 Medium
Published
Feb 15, 2021
Updated
Sep 16, 2024
Reserved
Jan 15, 2020

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:Nphp

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
PHPPHP Group
  • 7.3.x to before 7.3.26Affected
  • 7.4.x to before 7.4.14Affected
  • 8.0.X to before 8.0.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.