Description
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 long runtimes. This requires accessing a stream which uses the /FlateDecode filter with a PNG predictor. This vulnerability is fixed in 6.12.2.
Published: 2026-06-22
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Prior to version 6.12.2, the pypdf library inefficiently decodes streams that use the /FlateDecode filter with a PNG predictor, causing long runtimes when processing a malicious PDF. The vulnerability is a CWE‑407 efficiency issue and a CWE‑770 resource exhaustion weakness, and can lead to denial of service by exhausting CPU or memory resources, potentially affecting application availability.

Affected Systems

The Python PDF library pypdf is affected. Versions earlier than 6.12.2 are vulnerable. Updating to 6.12.2 or later resolves the issue.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity. The EPSS score is 0.00125, indicating an extremely low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves an attacker supplying a crafted PDF to an application that imports or parses PDFs with pypdf; the exploit requires no privileged access and does not gain code execution, but can cause high CPU usage spikes and is a resource exhaustion vulnerability (CWE‑770), potentially leading to service outages.

Generated by OpenCVE AI on June 25, 2026 at 13:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.12.2 or later.
  • Restrict access to the PDF parsing functionality to trusted inputs and validate PDF files before processing.
  • Implement monitoring for CPU usage spikes during PDF handling and set thresholds to trigger alerts or throttling.

Generated by OpenCVE AI on June 25, 2026 at 13:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5hgr-hg42-57jg pypdf: Inefficient decoding of FlateDecode PNG predictor streams
History

Thu, 25 Jun 2026 12:45:00 +0000

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

None

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'}

threat_severity

Moderate


Tue, 23 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 23 Jun 2026 01:00:00 +0000

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

Mon, 22 Jun 2026 21:00:00 +0000

Type Values Removed Values Added
Description 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 long runtimes. This requires accessing a stream which uses the /FlateDecode filter with a PNG predictor. This vulnerability is fixed in 6.12.2.
Title pypdf: Inefficient decoding of FlateDecode PNG predictor streams
Weaknesses CWE-407
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-23T15:54:39.908Z

Reserved: 2026-05-30T02:43:33.107Z

Link: CVE-2026-49460

cve-icon Vulnrichment

Updated: 2026-06-23T14:07:43.881Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-06-22T20:28:16Z

Links: CVE-2026-49460 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T14:00:05Z

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-770

    Allocation of Resources Without Limits or Throttling