pypdf2
Affected
- introduced
0, fixed1.27.9(ecosystem)
Fixed versions
1.27.9
Fix
- Fixed version
1.27.9pip install --upgrade pypdf2==1.27.9
Advisory
Also known as: CVE-2023-36810, PYSEC-2026-1837
PyPDF2 quadratic runtime with malformed PDF missing xref marker
Impact
An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime.
This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage.
Patches
https://github.com/py-pdf/pypdf/pull/808
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
References
Medium Basis: The source's own band: MODERATE
0, fixed 1.27.9 (ecosystem)1.27.9
1.27.9pip install --upgrade pypdf2==1.27.9Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0