cve.bz

CVE-2021-29421

7.5 highEPSS 1.7%Fix available

High (7.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in pikepdf 2.10.0.

On this page
models/metadata.py in the pikepdf package 1.3.0 through 2.9.2 for Python allows XXE when parsing XMP metadata entries.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-29421 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29421?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29421?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29421 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pikepdf_project:pikepdffrom 1.3.0 through 2.9.2
fedoraproject:fedora32
fedoraproject:fedora33

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-ccgm-3xw4-h5p8PyPIpikepdf>=1.3.0 <2.10.02.10.0
PYSEC-2021-34PyPIpikepdf>=1.3.0 <2.10.02.10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pikepdf1.17.3+dfsg-5DEBIAN-CVE-2021-29421
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morepikepdfno fix listedUBUNTU-CVE-2021-29421
openSUSETumbleweedpython-pikepdf10.5.1-2.1openSUSE-SU-2026:11355-1
Alpinev3.14, v3.15, v3.16 and 8 morepy3-pikepdf2.9.1-r2ALPINE-CVE-2021-29421

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw does not affect any Red Hat shipped commercial products, as pikepdf is not currently shipped.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29421.

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON