CVE-2026-27025: pypdf has possible long runtimes/large memory usage for large /ToUnicode streams

Published Feb 18, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires parsing the /ToUnicode entry of a font with unusually large values, for example during text extraction.

Patches

This has been fixed in pypdf==6.7.1.

Workarounds

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

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.7.1, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires parsing the /ToUnicode entry of a font with unusually large values, for example during text extraction. This vulnerability is fixed in 6.7.1.

NVD

Affected Software

4 affected componentsFixes available
pip/pypdf<6.7.1
6.7.1
Pypdf Project Pypdf<6.7.1
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 pip/pypdf to a version that resolves this vulnerability.

    Fixed in 6.7.1
  2. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.7.1
  3. Compensating control

    If you cannot upgrade yet, apply the changes from PR [#3646] (py-pdf/pypdf/pull/3646) to mitigate long runtimes/large memory consumption triggered by large /ToUnicode font values.

Event History

Feb 18, 2026
Advisory Published
via GitHub·10:41 PM
Data Sourced
via GitHub·10:41 PM
DescriptionWeaknessAffected Software
Feb 20, 2026
CVE Published
via MITRE·09:11 PM
Data Sourced
via MITRE·09:11 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-27025?

CVE-2026-27025 is considered a moderate severity vulnerability due to the potential for long runtimes and large memory usage.

2

How do I fix CVE-2026-27025?

To fix CVE-2026-27025, upgrade pypdf to version 6.7.1 or later.

3

What does CVE-2026-27025 affect?

CVE-2026-27025 affects the pypdf library, specifically related to handling large /ToUnicode streams in PDFs.

4

Can CVE-2026-27025 lead to denial of service?

Yes, CVE-2026-27025 can result in denial of service due to the excessive memory consumption and long processing times.

5

Who can exploit CVE-2026-27025?

An attacker who crafts a specially formatted PDF can exploit CVE-2026-27025.

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