← Vulnerability feed

Vulnerability record · CVE-2024-2057 · published 1 March 2024

CVE-2024-2057: Langchain server-side request forgery (ssrf) vulnerability

Langchain · Langchain

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.

9.8 CVSS 3.1 Critical EPSS 0.58% · top 54.4% CWE-918 · Server-side request forgery (SSRF)
9.8CVSS 3.1 base score, v2 6.5
0.58%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
10References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-2057 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-2828Langchain server-side request forgery (ssrf) vulnerabilityA Server-Side Request Forgery (SSRF) vulnerability exists in the RequestsToolkit component of the langchain-community package (specifically, langchai…EPSS 21%9.8CVE-2024-8309Langchain sql injection vulnerabilityA vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulne…EPSS 14%9.8CVE-2024-7042Langchain sql injection vulnerabilityA vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injecti…EPSS 0.31%9.8CVE-2023-39631Langchain code injection vulnerabilityAn issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.EPSS 1.6%9.8CVE-2023-36281Langchain code injection vulnerabilityAn issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to __subclasses__ …EPSS 3.4%9.8CVE-2023-38896Langchain injection vulnerabilityAn issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colore…EPSS 1.8%9.8CVE-2023-39659Langchain injection vulnerabilityAn issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLT…EPSS 1.5%9.8CVE-2023-38860Langchain code injection vulnerabilityAn issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.EPSS 1.4%

Source: NIST National Vulnerability Database (record CVE-2024-2057), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.