CVE-2024-2057 in Langchain and 1 more product
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 la...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-2057 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-051649-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-03-01 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-918: Server-Side Request Forgery (SSRF)
Attacker causes the server to make HTTP requests to attacker-chosen destinations, potentially reaching internal services.
Related attack patterns (CAPEC)
CAPEC-664 Server Side Request Forgery via CWE-918
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical vulnerability (CVE-2024-2057) in LangChain langchain_community 0.0.26 allows for server-side request forgery (SSRF) through the function load_local in the TFIDFRetriever component, enabling remote attacks.
The vulnerability exists in the load_local function within the TFIDFRetriever component, allowing an attacker to manipulate the function to perform SSRF attacks remotely.
Questions
What is CVE-2024-2057?
A critical vulnerability (CVE-2024-2057) in LangChain langchain_community 0.0.26 allows for server-side request forgery (SSRF) through the function load_local in the TFIDFRetriever component, enabling remote attacks.
What is the CVSS score for CVE-2024-2057?
CVE-2024-2057 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.8%.
Is CVE-2024-2057 actively exploited?
No confirmed active exploitation of CVE-2024-2057 as of 2026-09-25.
How do I remediate CVE-2024-2057?
Priority: IMMEDIATE.
What systems are affected by CVE-2024-2057?
CVE-2024-2057 affects Langchain Langchain, Langchain Community.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Langchain","product":"Langchain","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.