CVE-2021-21705

Source
https://cve.org/CVERecord?id=CVE-2021-21705
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21705.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-21705
Aliases
Downstream
Related
Published
2021-10-04T04:15:08.210Z
Modified
2026-03-15T22:39:26.805100Z
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
[none]
Details

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 filtervar() function with FILTERVALIDATE_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.

References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
{
    "versions": [
        {
            "introduced": "7.3.0"
        },
        {
            "fixed": "7.3.29"
        },
        {
            "introduced": "7.4.0"
        },
        {
            "fixed": "7.4.21"
        },
        {
            "introduced": "8.0.0"
        },
        {
            "fixed": "8.0.8"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "8.2"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21705.json"