GHSA-f54x-cmq8-qg57: Pip/pypdf vulnerability

Published Oct 22, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing arrays and/or dictionaries with lots of elements.

Patches

This has been fixed in pypdf==6.21.0.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #4218.

Affected Software

1 affected componentFixes available
pip/pypdf<6.21.0
6.21.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/pypdf to a version that resolves this vulnerability.

    Fixed in 6.21.0
  2. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.21.0

Event History

Oct 22, 2026
Advisory Published
via GitHub·04:49 PM
Data Sourced
via GitHub·04:49 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

What input must an attacker control to trigger the issue?

The attacker must be able to supply a crafted PDF that your application parses with pypdf. The PDF contains arrays and/or dictionaries with very large numbers of elements.

2

What is the practical impact on an affected application?

Parsing the crafted PDF can cause large memory usage. Applications that process untrusted PDFs are the relevant exposure scenario.

3

Which version fixes the issue?

The issue is fixed in pypdf 6.21.0.

4

What can be done if upgrading is not immediately possible?

Consider applying the changes from PR #4218 as a workaround.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203