---
id: CVE-2025-62707
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
  an infinite loop. This requires parsing the content stream of a page which has
  an inl…
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-834
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-62707'
references:
  - url: >-
      https://github.com/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/pull/3501'
    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-vr63-x8vc-m265'
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-62707'
  - url: 'https://github.com/py-pdf/pypdf'
tags:
  - nvd
  - osv
  - pip
epss: 0.00444
epssPercentile: 0.3845
aliases:
  - GHSA-vr63-x8vc-m265
  - PYSEC-2026-1833
ecosystem: pip
ingestedAt: '2026-07-08T18:25:53.371Z'
---

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

## Affected

- `pypdf < 6.1.3`

## Remediation

Upgrade past the affected range:

- `pypdf 6.1.3`

## Package advisory (CVE-2025-62707)

Affected packages:

- `pypdf < 6.1.3`

Patched in:

- `pypdf 6.1.3`

Source: https://osv.dev/vulnerability/GHSA-vr63-x8vc-m265
