// For flags

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

-
*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
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2023-06-21 CVE Reserved
  • 2023-06-27 CVE Published
  • 2024-07-29 EPSS Updated
  • 2024-08-02 CVE Updated
  • 2024-08-02 First Exploit
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
CAPEC
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