CVE-2026-102997: pypdf: Possible long runtimes for partially malformed FlateDecode streams (Follow-up)

Published Sep 30, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires a partially malformed /FlateDecode stream, where the byte-by-byte decompression is used.

Patches

This has been fixed in pypdf==6.18.1.

Workarounds

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

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF containing a partially malformed /FlateDecode stream with padded data can force pypdf/filters.py to use inefficient byte-by-byte decompression while the earlier recovery counter fails to advance for bytes that successfully decode, causing long runtimes and application unavailability. This is a residual issue after the malformed FlateDecode recovery fix. This issue is fixed in version 6.18.1.

— MITRE

Affected Software

2 affected componentsFixes available
pypi/pypdf<6.18.1
pip/pypdf<6.18.1
6.18.1

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.18.1
  2. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.18.1

Event History

Sep 30, 2026
CVE Published
via MITRE·08:05 PM
Data Sourced
via MITRE·08:05 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Oct 1, 2026
Advisory Published
via GitHub·03:06 PM
Data Sourced
via GitHub·03:06 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using pypdf versions prior to 6.18.1 may be affected if they process attacker-controlled PDFs. The impact is application unavailability caused by long processing times.

2

What must an attacker provide to trigger the long runtime?

An attacker must cause the application to process a crafted PDF containing a partially malformed /FlateDecode stream with padded data. The condition triggers inefficient byte-by-byte decompression.

3

Is an upgrade available, and what can be done if it cannot be applied immediately?

The issue is fixed in pypdf 6.18.1. If an immediate upgrade is not possible, apply the changes from PR #4073.

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