CVE-2024-5458: Filter bypass in filter_var (FILTER_VALIDATE_URL)

Published Jun 6, 2024
·
Updated

Filter bypass in filtervar (FILTERVALIDATEURL)

Other sources

Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filtervar FILTERVALIDATEURL). (CVE-2024-5458)

PHP

In PHP versions 8.1. before 8.1.29, 8.2. before 8.2.20, 8.3. before 8.3.8, due to a code logic error, filtering functions such as filtervar when validating URLs (FILTERVALIDATEURL) for certain types of URLs the function will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to the downstream code accepting invalid URLs as valid and parsing them incorrectly.

Launchpad

Affected Software

18 affected componentsFixes available
debian/php7.4<=7.4.33-1+deb11u5
debian/php8.2
8.2.20-1~deb12u18.2.23-1
PHP PHP<8.2.20
8.2.20
PHP PHP>=7.3.27<=7.3.33
PHP PHP>=7.4.15<=7.4.33
PHP PHP>=8.0.2<=8.0.30
PHP PHP>=8.1.0<8.1.29
PHP PHP>=8.2.0<8.2.20
PHP PHP>=8.3.0<8.3.8
Fedoraproject Fedora=40
redhat/php<8.1.29
8.1.29
redhat/php<8.2.20
8.2.20
redhat/php<8.3.8
8.3.8
Microsoft cbl2 php 8.1.28-1
Microsoft azl3 php 8.3.6-1
Microsoft cbl2 php 8.1.29-1
Microsoft azl3 php 8.3.8-1
Microsoft cbl2 php 8.1.28-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8.2.20-1~deb12u1Fixed in 8.2.23-1
  2. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.2.20
  3. Upgrade

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

    Fixed in 8.1.29
  4. Upgrade

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

    Fixed in 8.2.20
  5. Upgrade

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

    Fixed in 8.3.8
  6. Upgrade

    Upgrade php/php-src to a version that resolves this vulnerability.

    Fixed in 8.1.29Patch GHSA-w8qr-v226-r27w
  7. Upgrade

    Upgrade php/php-src to a version that resolves this vulnerability.

    Fixed in 8.2.20Patch GHSA-w8qr-v226-r27w
  8. Upgrade

    Upgrade php/php-src to a version that resolves this vulnerability.

    Fixed in 8.3.8Patch GHSA-w8qr-v226-r27w

Event History

Jun 6, 2024
CVE Published
via PHP·12:00 AM
Jun 9, 2024
CVE Published
via MITRE·06:26 PM
Data Sourced
via MITRE·06:26 PM
DescriptionSeverity
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Jun 30, 2024
Data Sourced
via Microsoft·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·02:00 PM
Affected Software
Updated
via Microsoft·02:00 PM
Affected Software
Updated
via Microsoft·02:00 PM
SeverityAffected Software
Updated
via Microsoft·02:00 PM
DescriptionSeverity
Sep 9, 2024
Data Sourced
via Launchpad·03:19 PM
Description
Sep 13, 2024
Data Sourced
via Ubuntu·03:19 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-5458?

CVE-2024-5458 has a high severity due to the potential for filter bypass vulnerabilities in PHP's URL validation.

2

Who is affected by CVE-2024-5458?

CVE-2024-5458 affects PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, and 8.3.* before 8.3.8.

3

How do I fix CVE-2024-5458?

To fix CVE-2024-5458, upgrade to PHP version 8.1.29, 8.2.20, or 8.3.8 or later.

4

What type of vulnerability is CVE-2024-5458?

CVE-2024-5458 is a filter bypass vulnerability related to URL validation functions in PHP.

5

Is there a workaround for CVE-2024-5458?

There is no official workaround for CVE-2024-5458; the recommended action is to update to a secure version.

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