---
id: CVE-2025-62708
title: pypdf is a free and open-source pure-python PDF library
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
  large memory usage. This requires parsing the content stream of a page using
  the LZWD…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-409
vendor: pypdf_project
product: pypdf
affected:
  - pypdf < 6.1.3
patched:
  - pypdf 6.1.3
published: '2025-10-22'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T11:10:00.250'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-62708'
references:
  - url: >-
      https://github.com/py-pdf/pypdf/commit/e51d07807ffcdaf18077b9486dadb3dc05b368da
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/pull/3502'
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.1.3'
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j'
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-62708'
  - url: 'https://github.com/py-pdf/pypdf'
tags:
  - nvd
  - osv
  - pip
epss: 0.00444
epssPercentile: 0.3845
aliases:
  - GHSA-jfx9-29x2-rv3j
  - PYSEC-2026-1831
ecosystem: pip
ingestedAt: '2026-07-08T18:25:50.664Z'
---

## Overview

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 large memory usage. This requires parsing the content stream of a page using the LZWDecode filter. This has been fixed in pypdf version 6.1.3.

## Affected

- `pypdf < 6.1.3`

## Remediation

Upgrade past the affected range:

- `pypdf 6.1.3`

## Package advisory (CVE-2025-62708)

Affected packages:

- `pypdf < 6.1.3`

Patched in:

- `pypdf 6.1.3`

Source: https://osv.dev/vulnerability/GHSA-jfx9-29x2-rv3j
