# CVE-2026-113791: pypdf: Possible large memory usage when parsing content streams

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-10-21T15:37:50.527Z
- Modified: 2026-11-05T21:33:03.837Z
- Also known as: GHSA-cgf9-327m-v77c
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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

(As written by CVE List.)

## Affected

- py-pdf pypdf: < 6.21.0; before 6.21.0
- pypdf (PyPI): before 6.21.0

## Every score

- GitHub_M: CVSS:4.0 6.0 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`

## References

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-cgf9-327m-v77c> (patch, vendor-advisory, web)
- <https://github.com/py-pdf/pypdf/pull/4218> (issue-tracking, patch, web)
- <https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12> (patch, web)
- <https://github.com/py-pdf/pypdf/releases/tag/6.21.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113791> (advisory)
- <https://github.com/py-pdf/pypdf> (package)

## Sources

- CVE List: [CVE-2026-113791](https://www.cve.org/CVERecord?id=CVE-2026-113791), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-cgf9-327m-v77c](https://github.com/advisories/GHSA-cgf9-327m-v77c), CC-BY-4.0, modified 2026-10-22
- NVD: [CVE-2026-113791](https://nvd.nist.gov/vuln/detail/CVE-2026-113791), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-113791 · Whole record: https://cve.day/CVE-2026-113791.json · Rebuilt by cve.day 2026-11-25T22:59:46.616Z
