GitHub Advisoryadvisory · PyPI

GHSA-7gw9-cf7v-778f pypdf: Manipulated FlateDecode predictor parameters can exhaust RAM

MEDIUM Published 2026-04-16 Modified 2026-05-05 Official page ↗
Aliases
CVE-2026-41312
Ecosystem
PyPI
Packages
pypdf
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weaknesses
CWE-789
Reviewed
2026-04-16

Affected packages

• PyPI pypdf: < 6.10.2 → fixed in 6.10.2

Description

Impact An attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing a stream compressed using `/FlateDecode` with a `/Predictor` unequal 1 and large predictor parameters. Patches This has been fixed in pypdf==6.10.2. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3734.

Related

Alias · CVE (1)

  • CVE-2026-41312 pypdf is a free and open-source pure-python PDF library. vulnerability

Weakness · CWE (1)

  • CWE-789 Memory Allocation with Excessive Size Value weakness

References