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: n/a
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 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 not available, 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 and potential service outages.

Generated by OpenCVE AI on June 22, 2026 at 22:51 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 22, 2026 at 22:51 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

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-22T20:28:16.413Z

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

Link: CVE-2026-49460

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-23T00:45:16Z

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity