CVE-2024-5458

Source
https://cve.org/CVERecord?id=CVE-2024-5458
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-5458.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-5458
Aliases
Downstream
Related
Published
2024-06-09T18:26:28.804Z
Modified
2026-06-18T03:57:10.975772444Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Filter bypass in filter_var (FILTER_VALIDATE_URL)
Details

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Ā (FILTERVALIDATE_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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5458.json",
    "cna_assigner": "php"
}
References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "7.3.27"
        },
        {
            "last_affected": "7.3.33"
        },
        {
            "introduced": "7.4.15"
        },
        {
            "last_affected": "7.4.33"
        },
        {
            "introduced": "8.0.2"
        },
        {
            "last_affected": "8.0.30"
        },
        {
            "introduced": "8.1.0"
        },
        {
            "fixed": "8.1.29"
        },
        {
            "introduced": "8.2.0"
        },
        {
            "fixed": "8.2.20"
        },
        {
            "introduced": "8.3.0"
        },
        {
            "fixed": "8.3.8"
        }
    ],
    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-5458.json"