CWE
20 918
Advisory Published
CVE Published
CVE Published
Updated

CVE-2021-21705: Incorrect URL validation in FILTER_VALIDATE_URL

First published: Mon Jun 28 2021(Updated: )

In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can be accepted as valid. This can lead to the code incorrectly parsing the URL and potentially leading to other security implications - like contacting a wrong server or making a wrong access decision.

Credit: security@php.net

Affected SoftwareAffected VersionHow to fix
PHP PHP>=7.3.0<7.3.29
PHP PHP>=7.4.0<7.4.21
PHP PHP>=8.0.0<8.0.8
NetApp Clustered Data ONTAP
Oracle SD-WAN Aware=8.2
PHP PHP<8.0.8
8.0.8

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID of this bug?

    The vulnerability ID of this bug is CVE-2021-21705.

  • What is the severity level of CVE-2021-21705?

    The severity level of CVE-2021-21705 is medium (5.3).

  • Which PHP versions are affected by CVE-2021-21705?

    PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21, and 8.0.x below 8.0.8 are affected by CVE-2021-21705.

  • How can CVE-2021-21705 be exploited?

    CVE-2021-21705 can be exploited by using an URL with an invalid password field that is accepted as valid, leading to incorrect parsing of the URL and potential code execution.

  • Where can I find more information about CVE-2021-21705?

    You can find more information about CVE-2021-21705 at the following references: [reference 1], [reference 2], [reference 3].

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203