CVE-2024-3571
Path Traversal in langchain-ai/langchain
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this vulnerability to read or write files anywhere on the filesystem, potentially leading to information disclosure or remote code execution. The issue lies in the handling of file paths in the mset and mget methods, where user-supplied input is not adequately sanitized, allowing directory traversal sequences to reach unintended directories.
langchain-ai/langchain es vulnerable al path traversal debido a una limitación inadecuada de un nombre de ruta a un directorio restringido ("Path Traversal") en su funcionalidad LocalFileStore. Un atacante puede aprovechar esta vulnerabilidad para leer o escribir archivos en cualquier parte del sistema de archivos, lo que podría provocar la divulgación de información o la ejecución remota de código. El problema radica en el manejo de las rutas de los archivos en los métodos mset y mget, donde la entrada proporcionada por el usuario no se sanitiza adecuadamente, lo que permite que las secuencias de directory traversal lleguen a directorios no deseados.
CVSS Scores
SSVC
- Decision:Track*
Timeline
- 2024-04-10 CVE Reserved
- 2024-04-16 CVE Published
- 2024-04-21 EPSS Updated
- 2024-08-01 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CAPEC
References (2)
URL | Tag | Source |
---|---|---|
https://github.com/langchain-ai/langchain/commit/aad3d8bd47d7f5598156ff2bdcc8f736f24a7412 | ||
https://huntr.com/bounties/2df3acdc-ee4f-4257-bbf8-a7de3870a9d8 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Langchain-ai Search vendor "Langchain-ai" | Langchain Search vendor "Langchain-ai" for product "Langchain" | * | - |
Affected
|