Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pikepdf
  4. ›
  5. CVE-2021-29421

CVE-2021-29421: Improper Restriction of XML External Entity Reference in pikepdf

April 20, 2021 (updated October 9, 2024)

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

References

  • github.com/advisories/GHSA-ccgm-3xw4-h5p8
  • github.com/pikepdf/pikepdf
  • github.com/pikepdf/pikepdf/commit/3f38f73218e5e782fe411ccbb3b44a793c0b343a
  • github.com/pypa/advisory-database/tree/main/vulns/pikepdf/PYSEC-2021-34.yaml
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36P4HTLBJPO524WMQWW57N3QRF4RFSJG
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3QFLBBYGEDNXJ7FS6PIWTVI4T4BUPGEQ
  • nvd.nist.gov/vuln/detail/CVE-2021-29421

Code Behaviors & Features

Detect and mitigate CVE-2021-29421 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.3.0 before 2.10.0

Fixed versions

  • 2.10.0

Solution

Upgrade to version 2.10.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

pypi/pikepdf/CVE-2021-29421.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:09 +0000.