# CVE-2026-113794: pypdf: Possible infinite loop when hitting EOF in standard xref table

- 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.35%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-10-21T15:59:26.054Z
- Modified: 2026-11-02T16:12:51.503Z
- Also known as: GHSA-39mj-jf6j-2qj3
- Weaknesses: CWE-835
- 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.20.0, an attacker can craft an incomplete PDF that ends inside a standard cross-reference table, causing pypdf to mishandle the unexpected end of file and enter an infinite loop. This issue is fixed in version 6.20.0.

(As written by CVE List.)

## Affected

- py-pdf pypdf: < 6.20.0; before 6.20.0
- pypdf (PyPI): before 6.20.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 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-39mj-jf6j-2qj3> (vendor-advisory, web)
- <https://github.com/py-pdf/pypdf/issues/4169> (issue-tracking, patch, web)
- <https://github.com/py-pdf/pypdf/pull/4170> (issue-tracking, patch, web)
- <https://github.com/py-pdf/pypdf/commit/37e1cd681744bac38b159f7e1c614eee8d639c58> (patch, web)
- <https://github.com/py-pdf/pypdf/releases/tag/6.20.0> (release-notes, web)
- <https://github.com/py-pdf/pypdf> (package)

## Sources

- CVE List: [CVE-2026-113794](https://www.cve.org/CVERecord?id=CVE-2026-113794), CVE Terms of Use, modified 2026-10-28
- GitHub Advisory Database: [GHSA-39mj-jf6j-2qj3](https://github.com/advisories/GHSA-39mj-jf6j-2qj3), CC-BY-4.0, modified 2026-10-21
- NVD: [CVE-2026-113794](https://nvd.nist.gov/vuln/detail/CVE-2026-113794), Public domain, modified 2026-11-02

---

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