CVE-2026-113789: pypdf: Possible long runtimes/large memory usage when retrieving form fields

Published Oct 21, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage and/or long runtimes. This requires retrieving the form fields of a document.

Patches

This has been fixed in pypdf==6.21.0.

Workarounds

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

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF that causes large memory usage or long runtimes when an application retrieves the document's form fields. This issue is fixed in version 6.21.0.

— Ubuntu

Affected Software

17 affected componentsFixes available
pypi/pypdf<6.21.0
pip/pypdf<6.21.0
6.21.0
ubuntu/pypdf2*
ubuntu/pypdf2*
ubuntu/pypdf2*
ubuntu/pypdf2*
ubuntu/pypdf*
ubuntu/pypdf2*
ubuntu/pypdf*
ubuntu/pypdf*
py-pdf Pypdf Python<6.21.0
debian/pypdf*
debian/pypdf*
debian/pypdf<6.21.0-1
6.21.0-1
debian/pypdf2*
debian/pypdf<=3.4.1-1+deb12u1, <=5.4.0-1
6.21.1-16.21.4-1
debian/pypdf2<=2.12.1-3+deb12u1

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 debian/pypdf to a version that resolves this vulnerability.

    Fixed in 6.21.0-1
  3. Upgrade

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

    Fixed in 6.21.1-1Fixed in 6.21.4-1
  4. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.21.0
  5. Compensating control

    If upgrading is not yet possible, apply the changes from PR #4219.

Event History

Oct 21, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·03:33 PM
Data Sourced
via MITRE·03:33 PM
DescriptionWeakness
Data Sourced
via OSV·03:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 22, 2026
Advisory Published
via GitHub·04:49 PM
Data Sourced
via GitHub·04:49 PM
DescriptionWeaknessAffected Software
Nov 4, 2026
Data Sourced
via OSV·03:30 AM
Affected Software

Frequently Asked Questions

1

What application behavior is required for exploitation?

The application must retrieve form fields from an attacker-crafted PDF. The reported impact is large memory consumption or long runtimes during that operation.

2

Which versions are affected and what version fixes the issue?

pypdf versions prior to 6.21.0 are affected. Upgrade to version 6.21.0 to obtain the fix.

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