Advisory

GHSA-jrm6-h9cq-8gqw

Also known as: CVE-2023-36810, PYSEC-2026-1837

Summary

PyPDF2 quadratic runtime with malformed PDF missing xref marker

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-06-30 22:17 UTC
Modified
2026-07-07 17:57 UTC

Affected packages and fixes

pypdf2

PyPI · All systems

Affected

  • introduced 0, fixed 1.27.9 (ecosystem)

Fixed versions

1.27.9

Fix

  • Fixed version 1.27.9
    pip install --upgrade pypdf2==1.27.9

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences