CVE catalog

CVE-2023-36464

pypdf: CVE-2023-36464

[CVE catalog]

Severity
Medium · CVSS 6.2CVSS: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.

DistributionPackageReleaseVersionStatus
Debianpypdfsid6.21.1-1fixed
Debianpypdfforky6.21.1-1fixed
Debianpypdftrixie5.4.0-1fixed
Debianpypdfbookworm3.4.1-1+deb12u1fixed
Debianpypdf2bookworm2.12.1-3+deb12u1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpypdfsourcesid3.17.4-1not yet assignedNot reported[1040338]
Debianpypdfsourceforky3.17.4-1not yet assignedNot reported[1040338]
Debianpypdfsourcetrixie3.17.4-1not yet assignedNot reported[1040338]
Debianpypdfsourcebookworm3.4.1-1+deb12u1not yet assignedNot reported[1040338]
Debianpypdf2sourcebookworm2.12.1-3+deb12u1not yet assignedNot reported[1040339]

[Debian bug #1040338][Debian bug #1040339]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References