Possible Infinite Loop when PdfWriter(clone_from) is used with a PDF
Impact
An attacker who uses this vulnerability 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.
Patches
The issue was fixed with #2264
Workarounds
If you cannot update your version of pypdf, you should modify pypdf/generic/_data_structures.py just like #2264 did.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | pypdf | >= 3.7.0, < 3.17.0 | 3.17.0 |
Referencias
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-wjcc-cq79-p63f
- https://nvd.nist.gov/vuln/detail/CVE-2023-46250
- https://github.com/py-pdf/pypdf/pull/2264
- https://github.com/py-pdf/pypdf/commit/9b23ac3c9619492570011d551d521690de9a3e2d
- https://github.com/py-pdf/pypdf
- https://pypi.org/project/pypdf
- https://github.com/advisories/GHSA-wjcc-cq79-p63f
- Vector CVSS
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H- Debilidad (CWE)
CWE-835- Plataforma
- Python (PyPI)
- Paquete
pypdf- Publicada
- 31.10.2023
- Actualizado
- 11.10.2026 15:17
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2026-1834 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-wjcc-cq79-p63f - CC BY 4.0
Historial de vulnerabilidades: pypdf
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 51
- Primera → última
- 06.2023 10.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 10
- Media 38
- Baja 3
Divulgaciones por año
- 2023: 2
- 2024: 0
- 2025: 4
- 2026: 45
-
Possible Infinite Loop when PdfWriter(clone_from) is used with a PDF esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.