Description
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.
Published: 2026-05-28
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw allows a malicious PDF that contains large character offsets to be processed by the pypdf library when extracting text in layout mode, causing the program to allocate a large amount of memory. This uncontrolled resource consumption can degrade performance or crash the application, effectively denying service to legitimate users. The weakness is categorized as uncontrolled resource consumption (CWE-400) and excess resource usage due to unchecked data size (CWE-770).

Affected Systems

Any deployment of pypdf 6.11.x or earlier is affected. The issue was fixed in release 6.12.0, available from the py-pdf project, and subsequent versions are not vulnerable.

Risk and Exploitability

With an overall CVSS score of 4.8 the vulnerability is rated as moderate. The EPSS score of < 1% indicates a low probability of exploitation in practice. The flaw is not listed in CISA’s KEV catalog. The exploit requires an application to process a crafted PDF containing large character offsets while using layout mode. If the target application processes untrusted PDFs with layout mode enabled, an attacker can trigger the memory exhaustion attack by delivering the malicious PDF.

Generated by OpenCVE AI on June 5, 2026 at 05:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the pypdf library to version 6.12.0 or later
  • If updating is not feasible, disable layout mode when extracting text from untrusted PDFs
  • Implement memory usage limits or monitor resource consumption and terminate the application if thresholds are exceeded

Generated by OpenCVE AI on June 5, 2026 at 05:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-cj93-chg6-vgv8 pypdf: Possible large memory usage for large offsets for layout mode text
History

Fri, 05 Jun 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 29 May 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Pypdf Project
Pypdf Project pypdf
CPEs cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*
Vendors & Products Pypdf Project
Pypdf Project pypdf
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}


Thu, 28 May 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Py-pdf
Py-pdf pypdf
Vendors & Products Py-pdf
Py-pdf pypdf

Thu, 28 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 28 May 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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.
Title pypdf: Possible large memory usage for large offsets for layout mode text
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-28T15:57:54.367Z

Reserved: 2026-05-20T23:12:43.031Z

Link: CVE-2026-48155

cve-icon Vulnrichment

Updated: 2026-05-28T15:57:50.832Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-28T16:16:28.890

Modified: 2026-05-29T19:38:41.470

Link: CVE-2026-48155

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-28T14:51:49Z

Links: CVE-2026-48155 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-05T06:00:06Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling