CVE-2020-7071: FILTER_VALIDATE_URL accepts URLs with invalid userinfo
A security issue was found in the phpurlparseex() function in PHP, which leads to FILTERVALIDATEURL accepting URLs with invalid userinfo
Reference: https://bugs.php.net/bug.php?id=77423
Other sources
FILTERVALIDATEURL accepts URLs with invalid userinfo
— Microsoft
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 filtervar($url, FILTERVALIDATEURL), 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 8.0.1 - Upgrade
Upgrade
alpine/php7to a version that resolves this vulnerability.Fixed in 7.3.26-r0 - Upgrade
Upgrade
alpine/php7to a version that resolves this vulnerability.Fixed in 7.4.14-r0 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 7.3.27 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 7.4.15 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 8.0.2 - Upgrade
Upgrade
debian/php7.4to a version that resolves this vulnerability.Fixed in 7.4.14-1 - Upgrade
Upgrade
debian/php7.0to a version that resolves this vulnerability.Fixed in 7.0.33-0+deb9u11 - Upgrade
Upgrade
debian/php7.3to a version that resolves this vulnerability.Fixed in 7.3.27-1~deb10u1 - Upgrade
Upgrade
debian/php8.0to a version that resolves this vulnerability.Fixed in 8.0.1-1 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.3.26 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.4.14 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 8.0.0
Event History
Frequently Asked Questions
What is the vulnerability ID of this bug?
The vulnerability ID of this bug is CVE-2020-7071.
What is the title of this bug?
The title of this bug is 'Fixed bug (FILTER_VALIDATE_URL accepts URLs with invalid userinfo).'
What is the description of this bug?
The description of this bug is 'Fixed bug (FILTER_VALIDATE_URL accepts URLs with invalid userinfo).'
What software is affected by this bug?
PHP PHP version up to 7.3.26 is affected by this bug.
How can I fix this bug?
You can fix this bug by updating PHP to version 7.3.26 or higher.