CVE-2025-62707 json
pypdf affected by possible infinite loop when reading DCT inline images without EOF marker
published last yr. modified 7d ago also EUVD-2025-35625 , GHSA-vr63-x8vc-m265 , PYSEC-2026-1833
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires parsing the content stream of a page which has an inline image using the DCTDecode filter. This has been fixed in pypdf version 6.1.3.
Patch / fix
- pypi pypdf 6.1.3
- py-pdf pypdf 6.1.3
- pypdf2_project pypdf2 6.1.3
- pypdf_project pypdf 6.1.3
- pypdf Debian 14 6.9.0-1
debian advisories DEBIAN-CVE-2025-62707
- python-pypdf openSUSE Tumbleweed 6.1.3-1.1
opensuse advisories openSUSE-SU-2025:15664-1
- github.com/py-pdf/pypdf@f2864d6 commit
- github.com/py-pdf/pypdf#3501 pull request
- github.com/py-pdf/pypdf/releases/tag/6.1.3 release
Is CVE-2025-62707 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-62707 updated cvss 5.3
pypdf: pypdf affected by possible infinite loop when reading DCT inline images without EOF marker
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-llama-stack-core-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25fixed: vendor fix RHSA-2025:23131
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/ee-minimal-rhel8, ansible-automation-platform-24/ee-minimal-rhel9, +22 more Red Hat Ansible Automation Platform 2.5 ansible-automation-platform, ansible-automation-platform-25not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.6 | 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/E:U |
| CNA | 4.0 | 6.6 | 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/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pypdf | <6.1.3 |
6.1.3 |
Affected products
- py-pdf pypdf
Classification
- Weakness
-
- CWE-834 Excessive Iteration
References
-
github.com
/py-pdf/pypdf/pull/3501
web, patch
-
github.com
/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8
web, patch
-
github.com
/py-pdf/pypdf/security/advisories/GHSA-vr63-x8vc-m265
web, third-party-advisory
-
github.com
/py-pdf/pypdf/releases/tag/6.1.3
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2025-62707
advisory
-
github.com
/py-pdf/pypdf
package
-
pypi.org
/project/pypdf
package
-
github.com
/advisories/GHSA-vr63-x8vc-m265
advisory
Sources
- CVE List CVE-2025-62707
- GitHub Advisory GHSA-vr63-x8vc-m265
- NVD CVE-2025-62707
- OSV PYSEC-2026-1833
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.