CVE-2026-27888: pypdf: Manipulated FlateDecode XFA streams can exhaust RAM

Published Feb 26, 2026
·
Updated

Impact An attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing the xfa property of a reader or writer and the corresponding stream being compressed using /FlateDecode.

Patches This has been fixed in pypdf==6.7.3.

Workarounds If projects cannot upgrade yet, consider applying the changes from PR #3658.

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.7.3, an attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing the xfa property of a reader or writer and the corresponding stream being compressed using /FlateDecode. This has been fixed in pypdf 6.7.3. As a workaround, apply the patch manually.

NVD

Affected Software

3 affected componentsFixes available
pypi/pypdf<6.7.3
pip/pypdf<6.7.3
6.7.3
Pypdf Project Pypdf<6.7.3

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.7.3
  2. Compensating control

    Avoid accessing the 'xfa' property on pypdf Reader or Writer when processing untrusted PDFs (the issue is triggered when the XFA stream is compressed with /FlateDecode). Reject, sandbox, or otherwise isolate PDFs that contain FlateDecode-compressed XFA streams until the patch or fixed version is applied.

Event History

Feb 26, 2026
CVE Published
via MITRE·12:42 AM
Data Sourced
via MITRE·12:42 AM
DescriptionWeakness
Data Sourced
via NVD·01:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·07:55 PM
Data Sourced
via GitHub·07:55 PM
DescriptionWeaknessAffected Software
Jun 28, 58142
Event
via FIRST·02:19 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-27888?

CVE-2026-27888 is a significant vulnerability that can lead to exhaustion of RAM when malicious XFA streams are manipulated.

2

How do I fix CVE-2026-27888?

To fix CVE-2026-27888, upgrade the pypdf package to version 6.7.3 or later.

3

What software is affected by CVE-2026-27888?

CVE-2026-27888 affects all versions of the pypdf package prior to version 6.7.3.

4

What type of attack does CVE-2026-27888 enable?

CVE-2026-27888 enables an attacker to craft PDF files that can exhaust memory resources on the affected system.

5

How does CVE-2026-27888 exploit memory resources?

CVE-2026-27888 exploits memory resources by manipulating the xfa property of a reader or writer with FlateDecode compressed streams.

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