Live threats

All CVEs / Php

CVE-2021-21707Php

Medium 5.3 No auth neededHigh EPSS

Priority
49
CVSS 3.1
5.3
EPSS
25.3%
probability of exploitation in 30 days · percentile 98
Auth required
No
Published
Nov 29, 2021
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-159
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≥ 7.3.0 < 7.3.33
phpphp≥ 7.4.0 < 7.4.26
phpphp≥ 8.0.0 < 8.0.13
netappclustered_data_ontapall
debiandebian_linux10.0
debiandebian_linux11.0
tenabletenable.sc< 5.21.0

Official sources

References

Links published by the sources. Open them with care.