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-04-16T04:37:04.747707672Z
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"
        }
    ]
}

Affected versions

Other
POST_64BIT_BRANCH_MERGE
POST_AST_MERGE
POST_PHP7_NSAPI_REMOVAL
POST_PHP7_REMOVALS
POST_PHPNG_MERGE
PRE_64BIT_BRANCH_MERGE
PRE_AST_MERGE
PRE_PHP7_EREG_MYSQL_REMOVALS
PRE_PHP7_NSAPI_REMOVAL
PRE_PHP7_REMOVALS
php-8.*
php-8.2.0

Database specific

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