CVE-2021-21707


Special characters break path parsing in XML functions

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.



We have discovered 1,044,385 live websites that are affected by CVE-2021-21707.

Contact us to get more info




Affected Software

Product  PHP
Category Programming Languages
Vulnerable Versions
  • from 7.3 before 7.3.33
  • from 7.4 before 7.4.26
  • from 8 before 8.0.13
Total Vulnerable Versions507
Vulnerable Domains1,044,385 live websites (8.63% of PHP install base)


Common Weakness Enumeration


CWE-159 Improper Handling of Invalid Use of Special Elements


Distribution by Website Rank

The diagram provides a graphic representation of the correlation between the occurrence of CVE-2021-21707 and the relative popularity of websites


Details

  • Published - Nov 15, 2021
  • Updated - Dec 15, 2022

Credits

  • Reported by rawataman6525 at gmail dot com





Countries

United States369,155 websites



France259,809 websites
Russia40,552 websites
Germany31,120 websites
GB23,678 websites
Canada22,380 websites
Brazil21,029 websites
Spain19,496 websites
Argentina19,408 websites
Poland19,229 websites

TLDs

.com504,943 websites
.fr114,875 websites
.org58,350 websites
.ru32,907 websites
.net32,270 websites
.de19,256 websites
.com.br17,060 websites
.pl14,749 websites
.be14,310 websites
.it14,215 websites

Vulnerable Versions

Vulnerable versions are highlighted in red


Geographical Distribution

The distribution of websites across the globe that are exposed to CVE-2021-21707 through included software libraries and plugins.



References


Websites affected by CVE-2021-21707

Top websites that are affected by CVE-2021-21707. Please click on the "Contact us" button above to get more information.
DomainCountryRankContacts
*******.com United States*,***
***.*****.pl Poland*,***
*******.com Germany*,***
****.org GB*,***
***************.org United States*,***
***.ly United States*,***
**********.org United States*,***
***.**.gov United States*,***
***.**********.org United States*,***
******.com France*,***
See full domain list