cve.bz

CVE-2026-27628 py-pdf pypdf: Infinite Loop

1.2 lowEPSS 0.4%Fix available

Low (1.2) in py-pdf pypdf. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in pypdf 6.7.2.

On this page
pypdf is a free and open-source pure-python PDF library. Prior to 6.7.2, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading the file. This has been fixed in pypdf 6.7.2. As a workaround, one may apply the patch manually.

Severity

CVSS 4.0

1.2 low
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U

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.4% (unchanged from 0.4% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-02-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-27628 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-27628?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-27628?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-27628 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.7.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2rw7-x74f-jg35PyPIpypdf<6.7.26.7.2
PYSEC-2026-3005PyPIpypdf<6.7.26.7.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pypdf, pypdf2no fix listedDEBIAN-CVE-2026-27628
Debian13pypdfno fix listedDEBIAN-CVE-2026-27628
Debian14pypdf6.9.0-1DEBIAN-CVE-2026-27628
Ubuntu20.04:LTS, 22.04:LTS, Pro:16.04:LTS and 1 morepypdf2no fix listedUBUNTU-CVE-2026-27628
Ubuntu24.04:LTSpypdf, pypdf2no fix listedUBUNTU-CVE-2026-27628
Ubuntu25.10, 26.04:LTS, 26.10pypdfno fix listedUBUNTU-CVE-2026-27628
openSUSETumbleweedpython-PyPDF22.11.1-5.1openSUSE-SU-2026:10284-1

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

To exploit this flaw, an attacker must be able to supply a crafted PDF file to be processed by an application using the pypdf library. This issue can cause the application to enter an infinite loop and consume a high amount of CPU resources, eventually resulting in a denial of service with no other security impact. Due to these reasons, this vulnerability has been rated with a moderate impact.

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 OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1775144403Fixed 2026-04-23RHSA-2026:10184
Red Hat Quay 3.10quay/quay-rhel8:1773971077Fixed 2026-03-24RHSA-2026:5665
Red Hat Quay 3.12quay/quay-rhel8:1773771962Fixed 2026-03-18RHSA-2026:4942
Red Hat Quay 3.15quay/quay-rhel8:1775169219Fixed 2026-04-03RHSA-2026:6568
Red Hat Quay 3.16quay/quay-rhel9:1775069491Fixed 2026-04-02RHSA-2026:6497
Red Hat Quay 3.16quay/quay-rhel9:1775169226Fixed 2026-04-03RHSA-2026:6567
Red Hat Quay 3.9quay/quay-rhel8:1773936323Fixed 2026-03-19RHSA-2026:5168
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Will not fix

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-27628.

References

Check your stackJSON