Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
pypdf versions before 6.21.2 are vulnerable. A user who opens a crafted PDF with large or incorrect upper limits in the xref table can cause the library to run for a long time. Upgrade to pypdf 6.21.2. The source gives no workaround beyond applying an unreleased code change, so upgrading is the recommended fix.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.1 | High | 4.0 | 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 | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0041, the 35th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 23 Oct 2026, 20:17 UTC Confirmed by NVD
- 31 Oct 2026, 14:08 UTC First seen by agentprime
- 31 Oct 2026, 14:08 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-gmh7-3g9r-mjh5
- OSV: GHSA-gmh7-3g9r-mjh5
- github.com/py-pdf/pypdf/security/advisories/GHSA-gmh7-3g9r-mjh5
- github.com/py-pdf/pypdf/pull/4239
- github.com/py-pdf/pypdf/commit/a3061e34b169d34478d520f5f049c53cfb1482b2
- github.com/py-pdf/pypdf
- github.com/py-pdf/pypdf/releases/tag/6.21.2