Skip to content
OpenAdvisories
High · 7.5 CVE-2021-29421 EUVD-2021-0166GHSA-ccgm-3xw4-h5p8PYSEC-2021-34

Improper Restriction of XML External Entity Reference in pikepdf

Published Apr 1, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pikepdf 1.17.3+dfsg-5 —
Debian 13 pikepdf 1.17.3+dfsg-5 —
Debian 12 pikepdf 1.17.3+dfsg-5 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pikepdf No fix yet —
Ubuntu 26.04 LTS pikepdf No fix yet —
Ubuntu 25.10 pikepdf No fix yet —
Ubuntu 24.04 LTS pikepdf No fix yet —
Ubuntu 22.04 LTS pikepdf No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pikepdf No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pikepdf 10.5.1-2.1 openSUSE-SU-2026:11355-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-pikepdf 2.9.1-r2 —
Alpine v3.23 py3-pikepdf 2.9.1-r2 —
Alpine v3.22 py3-pikepdf 2.9.1-r2 —
Alpine v3.21 py3-pikepdf 2.9.1-r2 —
Alpine v3.20 py3-pikepdf 2.9.1-r2 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-pikepdf 2.9.1-r2 —
Alpine v3.18 py3-pikepdf 2.9.1-r2 —
Alpine v3.17 py3-pikepdf 2.9.1-r2 —
Alpine v3.16 py3-pikepdf 2.9.1-r2 —
Alpine v3.15 py3-pikepdf 2.9.1-r2 —
Alpine v3.14 py3-pikepdf 2.9.1-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pikepdf >= 1.3.0, < 2.10.0 2.10.0 GHSA-ccgm-3xw4-h5p8

Advisories 1

References