CVE-2020-7071

FILTER_VALIDATE_URL accepts URLs with invalid userinfo

Published Feb 15, 2021 CVSS 3.1 · 5.3 Medium EPSS 2.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2708-1 php7.0 security update
Debian DLA Debian DLA DLA-3833-1 php7.3 security update
Debian DLA Debian DLA DLA-3920-1 php7.4 security update
Debian DSA Debian DSA DSA-4856-1 php7.3 security update
EUVD EUVD EUVD-2020-28205 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.
Ubuntu USN Ubuntu USN USN-5006-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-5006-2 PHP vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 16, 2024, 5:28 PM
Reserved
Jan 15, 2020, 12:00 AM
Status
Modified
Published
Feb 15, 2021, 4:15 AM
Modified
Jun 17, 2026, 3:24 AM
Severity
Moderate
Public date
Jan 3, 2021, 12:00 AM