cbcvebase.
CVE-2021-21705
published 2021-10-04

CVE-2021-21705: 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…

PriorityP432medium5.3CVSS 3.1
AVNACLPRNUINSUCNILAN
EPSS
1.94%
77.7th percentile
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.

Affected

10 ranges
VendorProductVersion rangeFixed in
debianphp7.4< php7.4 7.4.21-1+deb11u1 (bullseye)php7.4 7.4.21-1+deb11u1 (bullseye)
msrccbl2_php_on_cbl_mariner_2.0
oraclesd-wan_aware
phpphp>= 7.3.0 < 7.3.297.3.29
phpphp>= 7.4.0 < 7.4.217.4.21
phpphp>= 8.0.0 < 8.0.88.0.8
php5php5>= 0 < 5.5.9+dfsg-1ubuntu4.29+esm145.5.9+dfsg-1ubuntu4.29+esm14
php_groupphp>= 7.3.x < 7.3.297.3.29
php_groupphp>= 7.4.x < 7.4.217.4.21
php_groupphp>= 8.0.X < 8.0.88.0.8

CVSS provenance

nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
osv5.3MEDIUM
vendor_oracle5.3MEDIUM
vendor_ubuntu4.8MEDIUM
vendor_debian4.3MEDIUM
vendor_msrc4.3MEDIUM
vendor_redhat4.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.