CVE-2023-36464CWE-835

Infinite Loop when a comment isn't followed by a character in pypdf

Medium · published June 27, 2023

CVSS v3.1
6.2
EPSS
0%
Percentile
27.7
In the wild
Unconfirmed
What it is

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"")`.

The record
Technical detail
CVSS v3.1
6.2 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00352 · 27.7th percentile
Weakness
CWE-835 · Loop with Unreachable Exit Condition ('Infinite Loop')
Published
2023-06-27T21:24Z
EPSS history
Timeline
  • 27 JUN 21:24Z
    Infinite Loop when a comment isn't followed by a character in pypdf
    cvelistv5