CVE-2023-36464 Details
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"")`.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 3, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/py-pdf/pypdf/pull/1828 | CVE | Patch |
| https://github.com/py-pdf/pypdf/pull/969 | CVE | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8 | CVE | ExploitPatch |
| https://github.com/py-pdf/pypdf/pull/1828 | [email protected] | Patch |
| https://github.com/py-pdf/pypdf/pull/969 | [email protected] | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8 | [email protected] | ExploitPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pypdf project pypdf | < 3.9.0 |
CPE
Remediation
| |
| pypdf2 project pypdf2 | >= 2.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jul 6, 2023 | Initial Analysis | [email protected] |