Skip to main content
← All vulnerabilities
CVE-2026-119207EUVD-2026-113379

pypdf: Possible large memory usage for exceptions in strict mode

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.21.3
None on Exploit-DB, Metasploit or GitHub

Summary

The pypdf Python library, a tool for reading and manipulating PDF files, is affected. When strict mode processes a specially crafted malformed PDF, it can use excessive memory, which may slow down or crash the program that is using it.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can consume excessive memory when strict mode loads a crafted invalid PDF dictionary. Nested parsing failures add repeated exception text to newly raised errors, allowing a small malformed dictionary to amplify into very large error messages. This issue is fixed in version 6.21.3.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • py-pdf pypdf

    fixed in 6.21.3

References 4

GitHub · py-pdf/pypdf