CVE-2021-21707
MEDIUM5.3EPSS 0.56%Special characters break path parsing in XML functions
發布日:2021/11/29修改日:2026/4/28
描述
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.
受影響套件(6)
- Bitnami/libphp>= 7.3.0, < 7.3.33, >= 7.4.0, < 7.4.26, >= 8.0.0, < 8.0.13
- Bitnami/php>= 7.3.0, < 7.3.33, >= 7.4.0, < 7.4.26, >= 8.0.0, < 8.0.13
- Bitnami/php-min>= 7.3.0, < 7.3.33, >= 7.4.0, < 7.4.26, >= 8.0.0, < 8.0.13
- Debian/php7.3from 0, < 7.3.31-1~deb10u2
- Debian/php7.4from 0, < 7.4.28-1+deb11u1
- Debian/php7.4from 0, < 7.4.28-1+deb11u1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
參考連結(7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-21707
- WEBhttps://bugs.php.net/bug.php?id=79971
- WEBhttps://lists.debian.org/debian-lts-announce/2022/12/msg00030.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2021-21707
- WEBhttps://security.netapp.com/advisory/ntap-20211223-0005/
- WEBhttps://www.debian.org/security/2022/dsa-5082
- WEBhttps://www.tenable.com/security/tns-2022-09