CVE-2026-48156: pypdf: Possible long runtimes for zero-only width values in cross-reference streams

Published May 28, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with /W [0 0 0] values and large /Size values.

Patches

This has been fixed in pypdf==6.12.0.

Workarounds

If developers are unable to upgrade their apps immediately, they should consider applying the changes from PR #3791.

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.12.0, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with /W [0 0 0] values and large /Size values. This vulnerability is fixed in 6.12.0.

NVD

Affected Software

3 affected componentsFixes available
pypi/pypdf<6.12.0
Pypdf Project Pypdf<6.12.0
pip/pypdf<6.12.0
6.12.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.12.0
  2. Compensating control

    If you cannot upgrade immediately, apply the changes from PR #3791 in the py-pdf/pypdf repository as a temporary workaround.

Event History

May 28, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 12, 2026
Advisory Published
via GitHub·06:29 PM
Data Sourced
via GitHub·06:29 PM
DescriptionSeverityWeaknessAffected Software
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-48156?

CVE-2026-48156 is rated medium severity with a CVSS score of 5.1.

2

How do I fix CVE-2026-48156?

The vulnerability CVE-2026-48156 can be fixed by updating to pypdf version 6.12.0 or later.

3

What is the impact of CVE-2026-48156?

CVE-2026-48156 can lead to long runtimes when processing specifically crafted PDF files with zero-only width values in cross-reference streams.

4

Which versions of pypdf are affected by CVE-2026-48156?

All versions of pypdf prior to 6.12.0 are affected by CVE-2026-48156.

5

Who is affected by CVE-2026-48156?

Users and developers utilizing pypdf versions before 6.12.0 are at risk of encountering issues due to CVE-2026-48156.

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