CVE-2026-41314: PYSEC-2026-3026 - pypdf: Manipulated FlateDecode image dimensions can exhaust RAM

CVE-2026-41314 · Severity: medium · CVSS 6.5 · Published 2026-04-22

pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.2 can craft a PDF which leads to the RAM being exhausted. This requires accessing an image using `/FlateDecode` with large size values. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.

Technologies: Py-Pdf Pypdf, pypdf (PyPI). Vendors: Py-Pdf, PyPI.

Quick answers

Is CVE-2026-41314 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-41314 being exploited in the wild.
How severe is CVE-2026-41314?
Medium severity, with a CVSS score of 6.5, published 22 April 2026.
Which products and versions are affected?
pypdf (PyPI) ECOSYSTEM:introduced=0,fixed=6.10.2.
Is there a fix for CVE-2026-41314?
Yes. pypdf (PyPI): upgrade to 6.10.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-41314?
Check whether you run Py-Pdf Pypdf or pypdf (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • pypdf (PyPI): upgrade to 6.10.2 or later
    pip install "pypdf>=6.10.2"

Affected products

  • Py-Pdf Pypdf
  • pypdf (PyPI) ECOSYSTEM:introduced=0,fixed=6.10.2

Identifiers

  • CVE-2026-41314
  • GHSA-x284-j5p8-9c5p
  • PYSEC-2026-3026

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.