CVE-2023-36464
pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character
6.2
MEDIUM
CVSS 3.1
EPSS 0.35%
描述
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"")`.
如何修補 CVE-2023-36464
要修補 CVE-2023-36464,請將受影響套件升級到下列已修補版本。
- —升級至 3.9.0 或更新版本
- —升級至 3.9.0 或更新版本
- —未列出修補版本
- —升級至 3.9.0 或更新版本
CVE-2023-36464 正在被利用嗎?
低 — EPSS 為 0.4%,目前沒有觀察到大規模利用活動。
受影響套件(4)
- >= 3.1.0, < 3.9.0
- >= 3.1.0, < 3.9.0
- >= 2.2.0, <= 3.0.1
- >= 2.2.0, < 3.9.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |