Every CVE Search/ Get API key

CVE-2025-62707

pypdf affected by possible infinite loop when reading DCT inline images without EOF marker

6.6 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

0.44%Up 0.4 points since Oct 23, 2025
90%50%10%1%

What each source reports

CVE List Score used 6.6

pypdf affected by possible infinite loop when reading DCT inline images without EOF marker

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.

Record
CVE-2025-62707
CVSS 4.0
6.6 MediumCVSS: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
Weakness
CWE-834
Updated
2026-11-02
EUVDEUVD-2025-35625 6.6

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.

Record
EUVD-2025-35625
CVSS 4.0
6.6 MediumCVSS: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
Updated
2026-11-02
GitHub AdvisoriesGHSA-vr63-x8vc-m265 6.6

pypdf possibly loops infinitely when reading DCT inline images without EOF marker

Impact

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.

Patches

This has been fixed in pypdf==6.1.3.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #3501.

Record
GHSA-vr63-x8vc-m265
CVSS 4.0
6.6 MediumCVSS: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
Weakness
CWE-834
Updated
2026-11-02
NVD 6.6

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.

Record
CVE-2025-62707
CVSS 4.0
6.6 MediumCVSS: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
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-834
Updated
2026-11-02
OSV 6.6

pypdf affected by possible infinite loop when reading DCT inline images without EOF marker

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.

Record
CVE-2025-62707
CVSS 4.0
6.6 MediumCVSS: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
Weakness
CWE-834
Updated
2026-11-04
OSVDEBIAN-CVE-2025-62707 7.5

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.

Record
DEBIAN-CVE-2025-62707
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
Show 5 moreShow less
OSVGHSA-vr63-x8vc-m265 6.6

pypdf possibly loops infinitely when reading DCT inline images without EOF marker

Impact

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.

Patches

This has been fixed in pypdf==6.1.3.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #3501.

Record
GHSA-vr63-x8vc-m265
CVSS 4.0
6.6 MediumCVSS: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
Weakness
CWE-834
Updated
2026-11-02
OSVPYSEC-2026-1833 6.6

pypdf possibly loops infinitely when reading DCT inline images without EOF marker

Impact

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.

Patches

This has been fixed in pypdf==6.1.3.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #3501.

Record
PYSEC-2026-1833
CVSS 4.0
6.6 MediumCVSS: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
Updated
2026-11-02
OSVUBUNTU-CVE-2025-62707 6.6

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.

Record
UBUNTU-CVE-2025-62707
CVSS 4.0
6.6 MediumCVSS: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
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2025-1765930342 No score

TuxCare security update for pypdf (1 CVE)

TuxCare rebuilt pypdf to address 1 CVE. Fixed in 5.9.0.post2+tuxcare.

Record
CLSA-2025-1765930342
Updated
2026-11-02
OSVopenSUSE-SU-2025:15664-1 No score

python311-pypdf-6.1.3-1.1 on GA media

These are all security issues fixed in the python311-pypdf-6.1.3-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2025:15664-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
pypdf
PyPI
before 6.1.3
6.1.3
pypdf
TuxCare:PyPI
5.9.0 up to 5.9.0.post2+tuxcare, plus listed versions
5.9.0.post1+tuxcare
5.9.0.post2+tuxcare
pypdf
Debian:13
All versions, plus listed versions
5.4.0-16.19.0-16.21.0-16.21.1-16.21.4-16.9.0-16.9.2-16.9.2-2
None known
pypdf
Debian:14
before 6.9.0-1, plus listed versions
5.4.0-1
6.9.0-1
pypdf
PyPI
before 6.1.3, plus listed versions
1.01.11.101.111.12
Show 45 moreShow less
1.131.21.31.41.51.61.71.81.93.1.03.10.03.11.03.11.13.12.03.12.13.12.23.13.03.14.03.15.03.15.13.15.23.15.33.15.43.15.53.16.03.16.13.16.23.16.33.16.43.17.03.17.13.17.23.17.33.17.43.2.03.2.13.3.03.4.03.4.13.5.03.5.13.5.23.6.03.7.03.7.1
6.1.3
pypdf
Ubuntu:24.04:LTS
All versions, plus listed versions
3.4.1-13.17.4-14.0.0-14.0.1-14.0.2-1
None known
pypdf
Ubuntu:25.10
All versions, plus listed versions
4.3.1-15.4.0-1
None known
pypdf
Ubuntu:26.10
All versions, plus listed versions
6.9.2-16.9.2-2
None known
pypdf
Ubuntu:26.04:LTS
All versions, plus listed versions
5.4.0-16.9.2-1
None known
python-pypdf
openSUSE:Tumbleweed
before 6.1.3-1.1
6.1.3-1.1

History

History
RecordedChangedSources
factsOSV
affectedOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-62707 is a medium vulnerability (CVSS 6.6) in Py-pdf Pypdf, published October 22, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.44%, the 38th percentile. Fixed in pypdf 6.1.3.

References

Show 7 moreShow less
This page doesn't list everything

Left out here: 28 versions. The JSON record has them.

MoveEnter Open