CVE-2026-49461: pypdf: Possible large memory usage for form XObjects during text extraction

Published Jun 16, 2026
·
Updated

Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting the text of a page which contains a form XObject with self-references.

Patches This has been fixed in pypdf==6.12.2.

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

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.12.2, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting the text of a page which contains a form XObject with self-references. This vulnerability is fixed in 6.12.2.

MITRE

Affected Software

2 affected componentsFixes available
pip/pypdf<6.12.2
6.12.2
Pypdf Project Pypdf<6.12.2

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.2
  2. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.12.2
  3. Configuration

    If you cannot upgrade yet (prior to 6.12.2), apply the changes from PR [#3805](https://github.com/py-pdf/pypdf/pull/3805) to mitigate large memory usage during text extraction involving form XObjects with self-references.

    pypdf Apply PR #3805 workaround = From PR [#3805]

Event History

Jun 16, 2026
Advisory Published
via GitHub·01:47 PM
Data Sourced
via GitHub·01:47 PM
DescriptionWeaknessAffected Software
Jun 22, 2026
CVE Published
via MITRE·08:27 PM
Data Sourced
via MITRE·08:27 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
RemedyDescriptionSeverityWeaknessAffected 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-49461?

The severity of CVE-2026-49461 is rated as 26, indicating a significant risk to affected systems.

2

How do I fix CVE-2026-49461?

To fix CVE-2026-49461, update your pypdf library to version 6.12.2 or later.

3

What type of vulnerability is CVE-2026-49461?

CVE-2026-49461 is a memory usage vulnerability that can be exploited through crafted PDF files.

4

What systems are affected by CVE-2026-49461?

CVE-2026-49461 affects systems using the pypdf library for PDF handling.

5

What can an attacker do with CVE-2026-49461?

An attacker can exploit CVE-2026-49461 by crafting a PDF that leads to excessive memory usage during text extraction.

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