CVE Vulnerabilities

CVE-2021-29421

Improper Restriction of XML External Entity Reference

Published: Apr 01, 2021 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM

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

Weakness

The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

Affected Software

Name Vendor Start Version End Version
Pikepdf Pikepdf_project 1.3.0 (including) 2.9.2 (including)
Pikepdf Ubuntu focal *
Pikepdf Ubuntu groovy *
Pikepdf Ubuntu hirsute *
Pikepdf Ubuntu impish *
Pikepdf Ubuntu kinetic *
Pikepdf Ubuntu lunar *
Pikepdf Ubuntu mantic *
Pikepdf Ubuntu oracular *
Pikepdf Ubuntu trusty *

Potential Mitigations

References