CVE-2020-7071

FILTER_VALIDATE_URL accepts URLs with invalid userinfo

MEDIUM
5.3
CVSS Score
Published: February 15, 2021 at 04:10 AM UTC
Updated: June 17, 2026 at 03:24 AM UTC
3 products affected across 3 vendorsDebian LinuxPHPClustered Data ONTAP

Using PHP by PHP Group?

Get instant alerts when new vulnerabilities affect PHP - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
7.3.0 ≤ v < 7.3.267.3.x ≤ v < 7.3.267.4.0 ≤ v < 7.4.147.4.x ≤ v < 7.4.148.0.0 ≤ v < 8.0.18.0.X ≤ v < 8.0.17.3.x7.4.x8.0.X
Affected range stops below 7.3.26, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.4.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.0.1, so it looks safe — our inference, not a vendor statement

References (7)

x_refsource_MISCExploitIssue TrackingVendor Advisory
https://bugs.php.net/bug.php?id=77423
Mailing Listx_refsource_MLISTThird Party Advisory
https://lists.debian.org/debian-lts-announce/2021/07/msg00008.html
Vendor Advisoryx_refsource_GENTOOThird Party Advisory
https://security.gentoo.org/glsa/202105-23
Vendor Advisoryx_refsource_DEBIANThird Party Advisory
https://www.debian.org/security/2021/dsa-4856
x_refsource_MISCPatchThird Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html
x_refsource_CONFIRMThird Party Advisory
https://www.tenable.com/security/tns-2021-14

CVSS

5.3MEDIUMphp
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card