pypdf: Possible infinite loop when hitting EOF in standard xref table
CVE-2026-113794Published 21 Oct 2026, 15:59 UTC
Real-world risk
1.1/ 10Low
Routine
If the vulnerable configuration applies to you: 2.4
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.0
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pypdfCommon | < 6.20.0 | 6.20.0 |
What to do
Update to a fixed version: 6.20.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 31), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.315
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.315 × threat 0.851.071
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 21 Oct 2026 Published
- 3 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-835
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-39mj-jf6j-2qj3vendor-advisory
- https://github.com/py-pdf/pypdf/issues/4169misc
- https://github.com/py-pdf/pypdf/pull/4170misc
- https://github.com/py-pdf/pypdf/commit/37e1cd681744bac38b159f7e1c614eee8d639c58misc
- https://github.com/py-pdf/pypdf/releases/tag/6.20.0misc
- CVE-2026-113794 on CVE.org