CVE-2020-7071: FILTER_VALIDATE_URL accepts URLs with invalid userinfo

Published Jan 4, 2021
·
Updated

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

20 affected componentsFixes available
PHP PHP<8.0.1
8.0.1
PHP PHP>=7.3.0<7.3.26
PHP PHP>=7.4.0<7.4.14
PHP PHP>=8.0.0<8.0.1
Debian Debian Linux=9.0
Debian Debian Linux=10.0
NetApp Clustered Data ONTAP
Microsoft cbl2 php 7.4.14-3
alpine/php7<7.3.26-r0
7.3.26-r0
alpine/php7<7.4.14-r0
7.4.14-r0
alpine/php7<7.4.14-r0
7.4.14-r0
alpine/php7<7.4.14-r0
7.4.14-r0
redhat/php<7.3.27
7.3.27
redhat/php<7.4.15
7.4.15
redhat/php<8.0.2
8.0.2
debian/php7.4<7.4.14-1
7.4.14-1
debian/php7.0
7.0.33-0+deb9u11
debian/php7.3
7.3.27-1~deb10u1
debian/php7.4
7.4.14-1
debian/php8.0
8.0.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.0.1
  2. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.3.26-r0
  3. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.4.14-r0
  4. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.3.27
  5. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.4.15
  6. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 8.0.2
  7. Upgrade

    Upgrade debian/php7.4 to a version that resolves this vulnerability.

    Fixed in 7.4.14-1
  8. Upgrade

    Upgrade debian/php7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.33-0+deb9u11
  9. Upgrade

    Upgrade debian/php7.3 to a version that resolves this vulnerability.

    Fixed in 7.3.27-1~deb10u1
  10. Upgrade

    Upgrade debian/php8.0 to a version that resolves this vulnerability.

    Fixed in 8.0.1-1
  11. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.3.26
  12. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.4.14
  13. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.0.0

Event History

Jan 4, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Jan 7, 2021
Data Sourced
12:00 AM
DescriptionAffected Software
Updated
12:00 AM
Affected Software
Data Sourced
via Red Hat·05:41 PM
DescriptionSeverityAffected Software
Feb 15, 2021
CVE Published
via MITRE·04:10 AM
Data Sourced
via OSV·04:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 29, 2022
Data Sourced
08:05 PM
RemedySeverityWeakness
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Nov 24, 2026
Withdrawn
via OSV·04:29 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID of this bug?

The vulnerability ID of this bug is CVE-2020-7071.

2

What is the title of this bug?

The title of this bug is 'Fixed bug (FILTER_VALIDATE_URL accepts URLs with invalid userinfo).'

3

What is the description of this bug?

The description of this bug is 'Fixed bug (FILTER_VALIDATE_URL accepts URLs with invalid userinfo).'

4

What software is affected by this bug?

PHP PHP version up to 7.3.26 is affected by this bug.

5

How can I fix this bug?

You can fix this bug by updating PHP to version 7.3.26 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203