cve.bz

CVE-2026-102997 py-pdf pypdf: Uncontrolled Resource Consumption

8.7 highEPSS 0.3%Fix available

High (8.7) in py-pdf pypdf. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in pypdf 6.18.1.

On this page
pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF containing a partially malformed /FlateDecode stream with padded data can force pypdf/filters.py to use inefficient byte-by-byte decompression while the earlier recovery counter fails to advance for bytes that successfully decode, causing long runtimes and application unavailability. This is a residual issue after the malformed FlateDecode recovery fix. This issue is fixed in version 6.18.1.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-102997 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-102997?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-102997?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-102997 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
py-pdf:pypdfbefore 6.18.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jw7q-gvrg-4vj3PyPIpypdf<6.18.16.18.1
PYSEC-2026-4156PyPIpypdf<6.18.16.18.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pypdf, pypdf2no fix listedDEBIAN-CVE-2026-102997
Debian13pypdfno fix listedDEBIAN-CVE-2026-102997
Debian14pypdf6.19.0-1DEBIAN-CVE-2026-102997
Ubuntu20.04:LTS, 22.04:LTS, Pro:16.04:LTS and 1 morepypdf2no fix listedUBUNTU-CVE-2026-102997
Ubuntu24.04:LTSpypdf, pypdf2no fix listedUBUNTU-CVE-2026-102997
Ubuntu26.04:LTS, 26.10pypdfno fix listedUBUNTU-CVE-2026-102997

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important impact flaw can consume excessive processing time when a Red Hat service decodes a malformed FlateDecode stream in a crafted PDF.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Quay 3.10quay/quay-rhel8:1793993674Fixed 2026-11-11RHSA-2026:99025
Red Hat Quay 3.12quay/quay-rhel8:1793993854Fixed 2026-11-11RHSA-2026:99027
Red Hat Quay 3.14quay/quay-rhel8:1793993848Fixed 2026-11-11RHSA-2026:99024
Red Hat Quay 3.15quay/quay-rhel8:1793993771Fixed 2026-11-11RHSA-2026:99023
Red Hat Quay 3.16quay/quay-rhel9:1793993799Fixed 2026-11-11RHSA-2026:99022
Red Hat Quay 3.17quay/quay-rhel9:1793993778Fixed 2026-11-11RHSA-2026:99026
Red Hat Quay 3.18quay/quay-rhel9:1793993890Fixed 2026-11-11RHSA-2026:99019
Red Hat Quay 3.9quay/quay-rhel8:1793993730Fixed 2026-11-11RHSA-2026:99021
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-backend-rhel9Affected
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cpu-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cuda-12.9-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Will not fix
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gaudi-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-core-rhel9Affected
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-102997.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON