CVE-2023-36464 in Pypdf Project Pypdf and 1 more product
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 re...
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Pypdf Project | Pypdf | < 3.9.0 |
| Pypdf2 Project | Pypdf2 | ≥ 2.2.0 |
| Py-Pdf | Pypdf | < 3.9.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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"")`.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-36464 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-057858-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| Published | 2023-06-27 |
| Last modified | 2026-11-02 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-835: CWE-835
Analysis AI-written, not human-reviewed
A medium severity vulnerability affects Pypdf Project systems (CVE-2023-36464). No public exploit code is currently available. Review vendor advisories and apply patches during the next maintenance window.
Vulnerability details: 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 CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
Questions
What is CVE-2023-36464?
A medium severity vulnerability affects Pypdf Project systems (CVE-2023-36464). No public exploit code is currently available. Review vendor advisories and apply patches during the next maintenance window.
What is the CVSS score for CVE-2023-36464?
CVE-2023-36464 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. EPSS: 0.3%.
Is CVE-2023-36464 actively exploited?
No confirmed active exploitation of CVE-2023-36464 as of 2026-11-03.
How do I remediate CVE-2023-36464?
Priority: LOW.
What systems are affected by CVE-2023-36464?
CVE-2023-36464 affects Pypdf Project Pypdf; Pypdf2 Project Pypdf2.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Pypdf Project","product":"Pypdf","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-02.