CVE-2024-2057
JSON

6.3medium

LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery

Severity
6.3medium CVSS:3.1 by VulDB
Exploit likelihood
0.68% (higher than 53% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulDB
Also known as
PYSEC-2024-278

Description

A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.0.27 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-255372.

Affected

Product or packageVersionsReported by
LangChain langchain_community0.0.26CVE List
langchain langchain0.0.26NVD
langchain-community (PyPI)up to 0.0.26PyPA Advisory Database

All scores

VulDB6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
VulDB6.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
VulDB6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.0.27 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-255372.

CVE List (de)

Es wurde eine kritische Schwachstelle in LangChain langchain_community 0.0.26 ausgemacht. Es geht dabei um die Funktion load_local in der Bibliothek libs/community/langchain_community/retrievers/tfidf.py der Komponente TFIDFRetriever. Durch das Manipulieren mit unbekannten Daten kann eine server-side request forgery-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk passieren. Der Exploit steht zur öffentlichen Verfügung. Ein Aktualisieren auf die Version 0.0.27 vermag dieses Problem zu lösen. Als bestmögliche Massnahme wird das Einspielen eines Upgrades empfohlen.

NVD (es)

Se encontró una vulnerabilidad en Harrison Chase LangChain 0.1.9. Ha sido clasificada como crítica. La función load_local en la librería libs/community/langchain_community/retrievers/tfidf.py es afectada por la vulnerabilidad. La manipulación conduce a Server-Side Request Forgery. Es posible lanzar el ataque de forma remota. El exploit ha sido divulgado al público y puede utilizarse. El identificador de esta vulnerabilidad es VDB-255372.

References

https://vuldb.com/?id.255372permissions-required, report, technical-description, vdb-entry
https://vuldb.com/?ctiid.255372permissions-required, report, signature
https://github.com/bayuncao/vul-cve-16broken-link, package
https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pklbroken-link, exploit, web
https://github.com/langchain-ai/langchain/pull/18695fix, issue-tracking, patch

Sources

SourceRecordLicence
CVE ListCVE-2024-2057 changed 2024-08-01CVE Terms of Use
NVDCVE-2024-2057 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-278 changed 2026-05-21CC-BY-4.0