CVE-2025-62708
Python vulnerability analysis and mitigation

Overview

CVE-2025-62708 affects pypdf, a free and open-source pure-python PDF library. The vulnerability was discovered and disclosed on October 22, 2025, affecting versions prior to 6.1.3. The issue allows attackers to craft malicious PDF files that can lead to excessive memory consumption when parsing content streams using the LZWDecode filter (GitHub Advisory, NVD).

Technical details

The vulnerability is classified as CWE-409 (Improper Handling of Highly Compressed Data/Data Amplification). It received a CVSS v4.0 score of 6.6 (Medium) with the vector string 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. The issue specifically occurs during the parsing of content streams that use the LZWDecode filter, where maliciously crafted PDF files can cause the library to consume excessive amounts of RAM (Red Hat).

Impact

When exploited, this vulnerability can lead to large memory usage on systems processing PDF files with the affected library. This could potentially result in denial of service conditions due to resource exhaustion (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in pypdf version 6.1.3. Users are advised to upgrade to this version or later. For those unable to upgrade immediately, the changes from PR #3502 can be applied as a workaround (GitHub Advisory, GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61385CRITICAL9.6
  • PythonPython
  • pg8000
NoYesOct 27, 2025
CVE-2025-62727HIGH7.5
  • PythonPython
  • starlette
NoYesOct 28, 2025
CVE-2025-8709HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesOct 26, 2025
CVE-2025-62708MEDIUM6.6
  • PythonPython
  • nemo
NoYesOct 22, 2025
CVE-2025-40843MEDIUM5.9
  • PythonPython
  • codechecker
NoYesOct 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management