CVE-2023-46250
pypdf possible Infinite Loop when PdfWriter(clone_from) is used with a PDF
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions 3.7.0 through 3.16.4 can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case when the pypdf-user manipulates an incoming malicious PDF e.g. by merging it with another PDF or by adding annotations. The issue was fixed in version 3.17.0. As a workaround, apply the patch manually by modifying `pypdf/generic/_data_structures.py`.
pypdf es una librería de PDF pura de Python gratuita y de código abierto. Un atacante que utilice una vulnerabilidad presente en las versiones 3.7.0 a 3.16.4 puede crear un PDF que genere un bucle infinito. Este bucle infinito bloquea el proceso actual y puede utilizar un solo núcleo de la CPU al 100%. No afecta el uso de la memoria. Ese es, por ejemplo, el caso cuando el usuario de pypdf manipula un PDF malicioso entrante, por ejemplo fusionándolo con otro PDF o agregando anotaciones. El problema se solucionó en la versión 3.17.0. Como workaround, aplique el parche manualmente modificando `pypdf/generic/_data_structures.py`.
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2023-10-19 CVE Reserved
- 2023-10-31 CVE Published
- 2023-11-09 EPSS Updated
- 2024-09-05 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
CAPEC
References (3)
URL | Tag | Source |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/py-pdf/pypdf/commit/9b23ac3c9619492570011d551d521690de9a3e2d | 2023-11-08 | |
https://github.com/py-pdf/pypdf/pull/2264 | 2023-11-08 |
URL | Date | SRC |
---|---|---|
https://github.com/py-pdf/pypdf/security/advisories/GHSA-wjcc-cq79-p63f | 2023-11-08 |
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.7.0 < 3.17.0 Search vendor "Pypdf Project" for product "Pypdf" and version " >= 3.7.0 < 3.17.0" | - |
Affected
|