Skip to content

Manipulated XMP metadata streams can exhaust RAM

Moderate
stefan6419846 published GHSA-wjqc-6w8f-h24c May 22, 2026

Package

pip pypdf (pip)

Affected versions

< 6.12.1

Patched versions

>= 6.12.1

Description

Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing large XMP metadata, possibly with lots of unnecessary elements.

Patches

This has been fixed in pypdf==6.12.1.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #3796.

Severity

Moderate

CVE ID

CVE-2026-48735

Weaknesses

Allocation of Resources Without Limits or Throttling

The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. Learn more on MITRE.

Credits