CVE-2023-36464
Infinite Loop when a comment isn't followed by a character in pypdf
Severity Score
5.5
*CVSS v3.1
Exploit Likelihood
*EPSS
Affected Versions
*CPE
Public Exploits
1
*Multiple Sources
Exploited in Wild
-
*KEV
Decision
Track*
*SSVC
Descriptions
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"
")` in `pypdf/generic/_data_structures.py` to `while peek not in (b"\r", b"
", b"")`.
*Credits:
N/A
CVSS Scores
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Authentication
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:Track*
Exploitation
Automatable
Tech. Impact
* Organization's Worst-case Scenario
Timeline
- 2023-06-21 CVE Reserved
- 2023-06-27 CVE Published
- 2024-12-03 CVE Updated
- 2024-12-03 First Exploit
- 2025-05-07 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
CAPEC
References (3)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8 | 2024-12-03 |
URL | Date | SRC |
---|---|---|
https://github.com/py-pdf/pypdf/pull/1828 | 2023-07-06 | |
https://github.com/py-pdf/pypdf/pull/969 | 2023-07-06 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Pypdf Project Search vendor "Pypdf Project" | Pypdf Search vendor "Pypdf Project" for product "Pypdf" | < 3.9.0 Search vendor "Pypdf Project" for product "Pypdf" and version " < 3.9.0" | - |
Affected
| ||||||
Pypdf2 Project Search vendor "Pypdf2 Project" | Pypdf2 Search vendor "Pypdf2 Project" for product "Pypdf2" | >= 2.2.0 Search vendor "Pypdf2 Project" for product "Pypdf2" and version " >= 2.2.0" | - |
Affected
|