CVE-2026-48155: pypdf: Possible large memory usage for large offsets for layout mode text

Published May 28, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting text in layout mode with large character offsets.

Patches

This has been fixed in pypdf==6.12.0.

Workarounds

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

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 large memory usage. This requires extracting text in layout mode with large character offsets. This vulnerability is fixed in 6.12.0.

MITRE

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

Event History

May 28, 2026
CVE Published
via MITRE·02:51 PM
Data Sourced
via MITRE·02:51 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
DescriptionWeaknessAffected 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-48155?

The severity of CVE-2026-48155 is medium with a CVSS score of 4.8.

2

How do I fix CVE-2026-48155?

To fix CVE-2026-48155, upgrade to pypdf version 6.12.0 or later.

3

What impact does CVE-2026-48155 have on systems using pypdf?

CVE-2026-48155 can lead to large memory usage when extracting text in layout mode with large character offsets.

4

Who is affected by CVE-2026-48155?

Any users of pypdf versions prior to 6.12.0 are affected by CVE-2026-48155.

5

Is there a patch for CVE-2026-48155?

Yes, a patch is available in pypdf version 6.12.0 to resolve CVE-2026-48155.

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