CVE-2023-36464
published medium CVSS 3.1 · 6.2Infinite Loop when a comment isn't followed by a character in pypdf
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| py-pdf | — | pypdf pypdf: < 3.90 · PyPDF2: >= 2.2.0 | Affected | Not stated | GitHub_M |
Description
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"")`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.2 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| py-pdf | pypdf | pypdf: < 3.90 (affected)PyPDF2: >= 2.2.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-835 CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
References
3Provider assertions
3GitHub_M · cna
Infinite Loop when a comment isn't followed by a character in pypdf
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d44fdb4475c9909ef550fd4c87e1b10e233f3d91142ef242eccda201b045e3e9
- Ingested
- 23 Sep 2026, 08:09:50 UTC
- Source record
- Official CVE record