Amenazas en vivo

Todas las CVE / Pypdf2 Project

CVE-2022-24859Pypdf2 Project Pypdf2

Media 5.5

Prioridad
33
CVSS 3.1
5.5
EPSS
1.3%
probabilidad de explotación en 30 días · percentil 71
Requiere autenticación
Sí
Publicada
18 abr 2022
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-835
SSVC (CISA)
Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Qué pasa

PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Pypdf2.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
PyPI pypdf2 < 1.27.5 1.27.5 pip install "pypdf2>=1.27.5"
PyPI pypdf2 < 1.27.5 1.27.5 pip install "pypdf2>=1.27.5"

Según OSV / GitHub Advisories (GHSA-xcjx-m2pj-8g79, PYSEC-2022-194). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
pypdf2_projectpypdf2< 1.27.5
debiandebian_linux9.0

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.