CVE-2023-36464: pypdf is an open source, pure-python PDF library
CVE-2023-36464 is a medium-severity flaw (CVSS 6.2) affecting pypdf, pypdf2. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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/g
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.2 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 71%) |
| CISA exploited list | No |
| Weakness | CWE-835 |
| Published | 2023-06-27 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-36464?
pypdf: upgrade to 3.9.0; pypdf2: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2023-36464 being exploited?
CVE-2023-36464 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-36464 affect?
CVE-2023-36464 affects pypdf, pypdf2. Severity is medium (CVSS 6.2). 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
How urgent is CVE-2023-36464?
Priority 34/100. Public exploit reference
Software pages
Related CVEs
- CVE-2026-49461 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-54530 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-54531 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-54651 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-49460 LOW 3.3 UPGRADE pypdf is a free and open-source pure-python PDF library