Advisory

PYSEC-2026-1837

Also known as: CVE-2023-36810, GHSA-jrm6-h9cq-8gqw

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: CVSS v3 score 6.2, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:46 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: PyPA Advisory Database · CC BY 4.0

Sources & licences