pypdf: Possible infinite loop when hitting EOF in standard xref table during trailer search
Impact
The pypdf library is vulnerable to a possible infinite loop when opening an incomplete PDF file without a trailer, affecting versions prior to 6.21.4. An attacker can craft a malicious PDF to exploit this weakness. The impact is an infinite loop.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.This requires opening an incomplete file without a trailer.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 6.21.4Ecosystem versions | 6.21.4 |
Version evidence: OSV · GHSA-5849-834g-hvw5
View original version evidence (126 explicit versions)
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
py-pdf · GitHub_M
pypdf
1 range
py-pdf · GitHub_M
pypdf
Compare with this publisher’s ranges. This does not inspect your installation.
affected
< 6.21.4
Other versions: unknown
Original source description
Impact
An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires opening an incomplete file without a trailer.
Patches
This has been fixed in pypdf==6.21.4.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #4289.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-119203View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changes- CVE · CVE-2026-119203
Observed 2026-10-30T18:55:52.809Z · upstream updated 2026-10-30T17:11:01.881Z
Prioritization updated
before
[]
after
[ { "source": "CISA-ADP", "type": "SSVC", "role": "CISA Coordinator", "timestamp": "2026-10-30T17:10:48.181038Z", "decisions": [ { "name": "Exploitation", "value": "none" }, { "name": "Automatable", "value": "no" }, { "name": "Technical Impact", "value": "partial" } ] } ]
Large field values are marked as truncated previews. Original source snapshots remain retained.
Showing up to 50 most recent observed changes.