---
id: CVE-2026-41314
aliases:
  - GHSA-x284-j5p8-9c5p
  - PYSEC-2026-3026
title: 'pypdf: Manipulated FlateDecode image dimensions can exhaust RAM'
summary: 'pypdf: Manipulated FlateDecode image dimensions can exhaust RAM'
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.10.2
patched:
  - pypdf 6.10.2
published: '2026-04-16'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:51:03.926113177Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-x284-j5p8-9c5p'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-x284-j5p8-9c5p'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-41314'
  - url: 'https://github.com/py-pdf/pypdf/pull/3734'
  - url: >-
      https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.10.2'
tags:
  - osv
  - pip
epss: 0.00226
epssPercentile: 0.1363
ingestedAt: '2026-07-13T18:58:04.824Z'
---

## Overview

### Impact
An attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing an image using `/FlateDecode` with large size values.

### Patches
This has been fixed in [pypdf==6.10.2](https://github.com/py-pdf/pypdf/releases/tag/6.10.2).

### Workarounds
If you cannot upgrade yet, consider applying the changes from PR [#3734](https://github.com/py-pdf/pypdf/pull/3734).

## Affected packages

- `pypdf < 6.10.2`

## Remediation

Upgrade to a patched release:

- `pypdf 6.10.2`
