CVE-2021-29421
pikepdf: XML external entity issue when parsing XMP metadata entries
Overview
Description
models/metadata.py in the pikepdf package 1.3.0 through 2.9.2 for Python allows XXE when parsing XMP metadata entries.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-611
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | pikepdf | >=1.3.0, <2.10.0 | 2.10.0 |
Open a package to see all its vulnerabilities.
Operating systems · 13 fixes
alpine 4 releases · 1 package
fixed 4
py3-pikepdf
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-pikepdf | 2.9.1-r2 |
| 3.23 | py3-pikepdf | 2.9.1-r2 |
| 3.24 | py3-pikepdf | 2.9.1-r2 |
| edge | py3-pikepdf | 2.9.1-r2 |
debian 5 releases · 1 package
affected 1
fixed 4
pikepdf
| Release | Package | Fixed in |
|---|---|---|
| 10 | pikepdf | affected |
| 11 | pikepdf | 1.17.3+dfsg-5 |
| 12 | pikepdf | 1.17.3+dfsg-5 |
| 13 | pikepdf | 1.17.3+dfsg-5 |
| 14 | pikepdf | 1.17.3+dfsg-5 |
echo 1 release · 1 package
fixed 1
pikepdf
| Release | Package | Fixed in |
|---|---|---|
| pikepdf | 1.17.3+dfsg-5 |
openSUSE 1 release · 3 packages
fixed 3
python313-pikepdf
python36-pikepdf
python310-pikepdf
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python313-pikepdf +1 | 10.5.1-2.1 | openSUSE-SU-2026:11355-1 |
| Tumbleweed | python36-pikepdf +2 | 2.12.1-1.3 | openSUSE-SU-2024:11250-1 |
| Tumbleweed | python310-pikepdf +2 | 8.15.0-1.1 | openSUSE-SU-2024:13864-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-29421
- github.com https://github.com/advisories/GHSA-ccgm-3xw4-h5p8
- github.com https://github.com/pikepdf/pikepdf
- github.com https://github.com/pikepdf/pikepdf/blob/master/docs/release_notes.rst
- github.com https://github.com/pikepdf/pikepdf/blob/v2.10.0/docs/release_notes.rst#v2100
- github.com https://github.com/pikepdf/pikepdf/commit/3f38f73218e5e782fe411ccbb3b44a793c0b343a
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pikepdf/PYSEC-2021-34.yaml
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36P4HTLBJPO524WMQWW57N3QRF4RFSJG/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QFLBBYGEDNXJ7FS6PIWTVI4T4BUPGEQ/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36P4HTLBJPO524WMQWW57N3QRF4RFSJG
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.