CVE-2026-57204: pypdf: Missing stream length values ignore defined limits

Published Jun 30, 2026
·
Updated

pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAXDECLAREDSTREAMLENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.3.

Affected Software

4 affected components
pypi/pypdf<6.13.3
Pypdf Project Pypdf<6.13.3
IBM Cognos Analytics<=12.1.0 - 12.1.3 FP1
IBM Cognos Analytics<=12.0.4 - 12.0.4 FP2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.13.3
  2. Compensating control

    If you parse PDFs with content streams that do not include a /Length value, apply a compensating control to limit resource usage (e.g., restrict/limit PDF parsing workload or isolate the parsing process) until all instances are upgraded to pypdf 6.13.3.

Event History

Jun 30, 2026
CVE Published
via MITRE·09:59 PM
Data Sourced
via MITRE·09:59 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 11, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-57204?

CVE-2026-57204 has a medium severity rating of 6.9 according to the CVSS v3.0.

2

How do I fix CVE-2026-57204?

To mitigate CVE-2026-57204, update the pypdf library to version 6.13.3 or later.

3

What type of vulnerability is CVE-2026-57204?

CVE-2026-57204 is a Denial of Service (DoS) vulnerability in the pypdf library.

4

What impact does CVE-2026-57204 have?

CVE-2026-57204 can lead to excessive memory usage when processing a maliciously crafted PDF.

5

Who is affected by CVE-2026-57204?

Users of the pypdf library prior to version 6.13.3 are affected by CVE-2026-57204.

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