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.
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
| Link | Tags |
|---|---|
| https://github.com/bayuncao/vul-cve-16 | Broken Link |
| https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl | Broken Link |
| https://github.com/langchain-ai/langchain/pull/18695 | Patch |
| https://vuldb.com/?ctiid.255372 | Permissions Required |
| https://vuldb.com/?id.255372 | Permissions Required |
| https://github.com/bayuncao/vul-cve-16 | Broken Link |
| https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl | Broken Link |
| https://github.com/langchain-ai/langchain/pull/18695 | Patch |
| https://vuldb.com/?ctiid.255372 | Permissions Required |
| https://vuldb.com/?id.255372 | Permissions Required |
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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
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.