CVE-2024-2057
CVE-2024-2057 is a medium-severity vulnerability in Langchain with a CVSS 3.x base score of 6.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-918.
Key facts
- Severity: Medium (CVSS 3.x base score 6.3)
- CVSS v2: 6.5
- EPSS exploit prediction: 1% (43rd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-27022
- Weakness: CWE-918
- Affected product: Langchain
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-2057?
- 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.
- How severe is CVE-2024-2057?
- CVE-2024-2057 has a CVSS 3.x base score of 6.3, rated medium severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability low.
- Is CVE-2024-2057 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (43rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-2057?
- CVE-2024-2057 affects Langchain. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-2057?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-2057 have an EU (EUVD) identifier?
- Yes. CVE-2024-2057 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-27022.
- When was CVE-2024-2057 published?
- CVE-2024-2057 was published on 2024-03-01 and last updated on 2026-06-17.
References
- https://github.com/bayuncao/vul-cve-16
- https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl
- https://github.com/langchain-ai/langchain/pull/18695
- https://vuldb.com/?ctiid.255372
- https://vuldb.com/?id.255372
Affected products (1)
- cpe:2.3:a:langchain:langchain:0.0.26:*:*:*:community:*:*:*
More vulnerabilities in Langchain
- CVE-2025-2828 — Critical (CVSS 10.0): A Server-Side Request Forgery (SSRF) vulnerability exists in the RequestsToolkit component of the langchain-community…
- CVE-2024-8309 — Critical (CVSS 9.8): A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection…
- CVE-2024-7042 — Critical (CVSS 9.8): A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this…
- CVE-2023-39631 — Critical (CVSS 9.8): An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate…
- CVE-2023-36281 — Critical (CVSS 9.8): An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This…
- CVE-2023-39659 — Critical (CVSS 9.8): An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a…
All CVEs affecting Langchain →
Other CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities
- CVE-2026-47938 — Critical (CVSS 10.0): Adobe Campaign Classic (ACC) versions 7.4.3 build 9394 and earlier are affected by a Server-Side Request Forgery (SSRF)…
- CVE-2026-35431 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Microsoft Entra ID Entitlement Management allows an unauthorized attacker to…
- CVE-2026-32186 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Microsoft Bing allows an unauthorized attacker to elevate privileges over a…
- CVE-2026-33107 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Azure Databricks allows an unauthorized attacker to elevate privileges over a…
- CVE-2026-32871 — Critical (CVSS 10.0): FastMCP is a Pythonic way to build MCP servers and clients. Prior to version 3.2.0, the OpenAPIProvider in FastMCP…
- CVE-2026-32169 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Azure Cloud Shell allows an unauthorized attacker to elevate privileges over a…
Browse all CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities →