Vulnerability Details : CVE-2023-36464
Potential exploit
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"")`.
Products affected by CVE-2023-36464
- cpe:2.3:a:pypdf2_project:pypdf2:*:*:*:*:*:*:*:*
- cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-36464
0.03%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 7 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-36464
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
1.8
|
3.6
|
NIST | |
6.2
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
2.5
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2023-36464
-
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-36464
-
https://github.com/py-pdf/pypdf/pull/1828
BUG: Prevent infinite loop when no character follows after a comment by exiledkingcc · Pull Request #1828 · py-pdf/pypdf · GitHubPatch
-
https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8
Possible Infinite Loop when a comment isn't followed by a character · Advisory · py-pdf/pypdf · GitHubExploit;Patch
-
https://github.com/py-pdf/pypdf/pull/969
improved ExtractText(3) by pubpub-zz · Pull Request #969 · py-pdf/pypdf · GitHubIssue Tracking;Patch
Jump to