CVE-2021-29421 Improper Restriction of XML External Entity Reference in pikepdf
An attacker can exploit an XML External Entity vulnerability in pikepdf to read sensitive files or cause denial of service via crafted XMP metadata.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-29421?
CVE-2021-29421 is a high-severity vulnerability in Fedoraproject Fedora, published on 1 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
models/metadata.py in the pikepdf package 1.3.0 through 2.9.2 for Python allows XXE when parsing XMP metadata entries.
Weakness: CWE-611
Which versions are affected by CVE-2021-29421?
3 open source packages ship an affected version, including pikepdf. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
pikepdf PyPI | From 1.3.0 | 2.10.0 |
pikepdf PyPI | From 1.3.0 | 2.10.0 |
pikepdf PyPI | From 1.3.0 | 2.10.0 |
Linux distribution packages (1)
python-pikepdf openSUSE:Tumbleweed | All versions | 10.5.1-2.1 |
Products include Fedoraproject Fedora, Pikepdf Project Pikepdf.
How do I fix CVE-2021-29421?
Upgrade pikepdf to 2.10.0 or later.
Is CVE-2021-29421 being exploited?
There is no known exploitation of CVE-2021-29421 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as CVE-2021-46849, DEBIAN-CVE-2021-29421, GHSA-ccgm-3xw4-h5p8, MGASA-2021-0268, PYSEC-2021-34, UBUNTU-CVE-2021-29421 and 3 more.