---
id: CVE-2026-113795
aliases:
  - GHSA-7mh2-4gg2-979f
title: 'pypdf: Possible large memory usage for streams with multiple filters'
summary: 'pypdf: Possible large memory usage for streams with multiple filters'
severity: medium
cvss: 6
cwe:
  - CWE-400
  - CWE-770
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.20.0
patched:
  - pypdf 6.20.0
published: '2026-10-21'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T16:48:32Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-7mh2-4gg2-979f'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-7mh2-4gg2-979f'
  - url: 'https://github.com/py-pdf/pypdf/pull/4173'
  - url: >-
      https://github.com/py-pdf/pypdf/commit/80a84d4be6022d910874ccb0d2365400f3f0e185
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.20.0'
  - url: 'https://github.com/advisories/GHSA-7mh2-4gg2-979f'
tags:
  - ghsa
  - pip
  - cve.org
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'
cvssSource: cna
ingestedAt: '2026-10-21T16:05:17.683Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory consumption. This requires accessing any stream with a large amount of filters or multiple filters which pass around large amounts of data.

### Patches

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

### Workarounds

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

## Affected packages

- `pypdf < 6.20.0`

## Remediation

Upgrade to a patched release:

- `pypdf 6.20.0`
