VDB
KO
MEDIUM

GHSA-55h5-xmcq-c37v

pypdf: Possible long runtimes for repeated malformed cross-reference entries

Quick fix

GHSA-55h5-xmcq-c37v — pypdf: upgrade to the fixed version with the command below.

pip install --upgrade 'pypdf>=6.14.0'

Details

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with repeated malformed cross-reference streams.

### Patches

This has been fixed in [pypdf==6.14.0](https://github.com/py-pdf/pypdf/releases/tag/6.14.0).

### Workarounds

If you cannot upgrade yet, consider applying the changes from PR [#3887](https://github.com/py-pdf/pypdf/pull/3887).

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / pypdf
Introduced in: 0 Fixed in: 6.14.0
Fix pip install --upgrade 'pypdf>=6.14.0'

References