---
cve: "CVE-2023-36464"
severity: "MEDIUM"
cvss: 6.2
epss: "0.4%"
vendor: "py-pdf"
kev: false
exploited: false
published: "2023-06-27 22:15:11"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-22T01:18:17+02:00"
---

# CVE-2023-36464

> 6.2 MEDIUM · 🧪 PoC

## Beschreibung

pypdf is an open source, pure-python PDF library. In affected versions an attacker may craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. That is, for example, the case if the user extracted text from such a PDF. This issue was introduced in pull request #969 and resolved in pull request #1828. Users are advised to upgrade. Users unable to upgrade may modify the line `while peek not in (b"\r", b"\n")` in `pypdf/generic/_data_structures.py` to `while peek not in (b"\r", b"\n", b"")`.

## CVSS-Vektor

```
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Keine | good |
| I Integrität | Keine | good |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- 0096c99031955b15bd30834e5566076d9528f59d (Commit)

## Referenzen

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8>
- <https://github.com/py-pdf/pypdf/pull/1828>
- <https://github.com/py-pdf/pypdf/pull/969>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2023-36464) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
