
CVE catalog
CVE-2023-36464
pypdf: CVE-2023-36464
- Severity
- Medium · CVSS 6.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.35% · Oct 25, 2026
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"")`.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pypdf | sid | 6.21.1-1 | fixed |
| Debian | pypdf | forky | 6.21.1-1 | fixed |
| Debian | pypdf | trixie | 5.4.0-1 | fixed |
| Debian | pypdf | bookworm | 3.4.1-1+deb12u1 | fixed |
| Debian | pypdf2 | bookworm | 2.12.1-3+deb12u1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pypdf | source | sid | 3.17.4-1 | not yet assigned | Not reported | [1040338] |
| Debian | pypdf | source | forky | 3.17.4-1 | not yet assigned | Not reported | [1040338] |
| Debian | pypdf | source | trixie | 3.17.4-1 | not yet assigned | Not reported | [1040338] |
| Debian | pypdf | source | bookworm | 3.4.1-1+deb12u1 | not yet assigned | Not reported | [1040338] |
| Debian | pypdf2 | source | bookworm | 2.12.1-3+deb12u1 | not yet assigned | Not reported | [1040339] |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-36464]
- [https://security-tracker.debian.org/tracker/CVE-2023-36464]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-36464.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]