cbcvebase.
CVE-2021-21707
published 2021-11-29

CVE-2021-21707: In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the…

PriorityP340medium5.3CVSS 3.1
AVNACLPRNUINSUCLINAN
EPSS
25.95%
97.7th percentile
In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function to interpret this as the end of the filename, thus interpreting the filename differently from what the user intended, which may lead it to reading a different file than intended.

Affected

11 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debianphp7.4< php7.4 7.4.28-1+deb11u1 (bullseye)php7.4 7.4.28-1+deb11u1 (bullseye)
msrccbl2_php_on_cbl_mariner_2.0
phpphp>= 7.3.0 < 7.3.337.3.33
phpphp>= 7.4.0 < 7.4.267.4.26
phpphp>= 8.0.0 < 8.0.138.0.13
php_groupphp>= 7.3.x < 7.3.337.3.33
php_groupphp>= 7.4.x < 7.4.267.4.26
php_groupphp>= 8.0.X < 8.0.138.0.13
tenabletenable.sc< 5.21.05.21.0

CVSS provenance

nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv6.5MEDIUM
vendor_ubuntu6.5MEDIUM
vendor_debian5.3MEDIUM
vendor_msrc5.3MEDIUM
vendor_oracle5.3MEDIUM
vendor_redhat5.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.