---
id: CVE-2026-48155
aliases:
  - GHSA-cj93-chg6-vgv8
  - PYSEC-2026-3016
title: 'pypdf: Possible large memory usage for large offsets for layout mode text'
summary: 'pypdf: Possible large memory usage for large offsets for layout mode text'
severity: medium
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.12.0
patched:
  - pypdf 6.12.0
published: '2026-06-12'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:51:08.468487559Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-cj93-chg6-vgv8'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-cj93-chg6-vgv8'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48155'
  - url: 'https://github.com/py-pdf/pypdf/pull/3790'
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.12.0'
  - url: 'https://github.com/advisories/GHSA-cj93-chg6-vgv8'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00127
epssPercentile: 0.02716
cwe:
  - CWE-400
ingestedAt: '2026-07-07T15:41:59.225Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting text in layout mode with large character offsets.

### Patches

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

### Workarounds

If developers are unable to immediately upgrade, they should consider applying the changes from PR [#3790](https://github.com/py-pdf/pypdf/pull/3790).

## Affected packages

- `pypdf < 6.12.0`

## Remediation

Upgrade to a patched release:

- `pypdf 6.12.0`
