CVE-2021-21705

Incorrect URL validation in FILTER_VALIDATE_URL

Published Oct 4, 2021 CVSS 3.1 · 4.3 Medium EPSS 2.1% KEV · Not listed
Description
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 filter_var() function with FILTER_VALIDATE_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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2708-1 php7.0 security update
Debian DSA Debian DSA DSA-4935-1 php7.3 security update
EUVD EUVD EUVD-2021-8877 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 filter_var() function with FILTER_VALIDATE_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.
Ubuntu USN Ubuntu USN USN-5006-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-5006-2 PHP vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 17, 2024, 4:09 AM
Reserved
Jan 4, 2021, 12:00 AM
Status
Modified
Published
Oct 4, 2021, 4:15 AM
Modified
Jun 17, 2026, 3:36 AM
Severity
Moderate
Public date
Jul 1, 2021, 12:00 AM