CVE-2020-7071

published 15 Feb 2021 · updated 1 Oct 2025

FILTER_VALIDATE_URL accepts URLs with invalid userinfo

5.3MediumCVSS 5.3EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in PHP 7.3.26, PHP 7.4.14 and PHP 8.0.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=7.3.x <7.3.26, >=7.4.x <7.4.14, >=8.0.X <8.0.17.3.26, 7.4.14, 8.0.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-7071 severity on Zeptric[![CVE-2020-7071](https://zeptric.io/badge/cve/CVE-2020-7071.svg)](https://zeptric.io/cve/CVE-2020-7071)