Skip to main content
← All vulnerabilities
CVE-2024-5458

Filter bypass in filter_var (FILTER_VALIDATE_URL)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.1.29, 8.2.20, 8.3.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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 filter_var when validating URLs (FILTER_VALIDATE_URL) 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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • PHP Group PHP

    fixed in 8.1.29; fixed in 8.2.20; fixed in 8.3.8

References 6

GitHub · php/php-src

openwall.com

lists.fedoraproject.org

lists.debian.org

security.netapp.com