Amenazas en vivo

Todas las CVE / Langchain

CVE-2024-2965Langchain

Media 4.7

Prioridad
28
CVSS 3.1
4.7
EPSS
0.3%
probabilidad de explotación en 30 días · percentil 11
Requiere autenticación
Sí
Publicada
6 jun 2024
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-674
SSVC (CISA)
Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Qué pasa

A Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-ai/langchain` repository, affecting all versions. The `parse_sitemap` method, responsible for parsing sitemaps and extracting URLs, lacks a mechanism to prevent infinite recursion when a sitemap URL refers to the current sitemap itself. This oversight allows for the possibility of an infinite loop, leading to a crash by exceeding the maximum recursion depth in Python. This vulnerability can be exploited to occupy server socket/port resources and crash the Python process, impacting the availability of services relying on this functionality.

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 Langchain.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
PyPI langchain < 0.2.5 0.2.5 pip install "langchain>=0.2.5"
PyPI langchain < 0.2.5 0.2.5 pip install "langchain>=0.2.5"
PyPI langchain-community < 0.2.5 0.2.5 pip install "langchain-community>=0.2.5"
PyPI langchain-community < 0.2.5 0.2.5 pip install "langchain-community>=0.2.5"

Según OSV / GitHub Advisories (GHSA-3hjh-jh2h-vrg6, PYSEC-2024-118, PYSEC-2026-2561). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
langchainlangchain< 0.2.5

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.