What’s Vulnerable › Vulnerabilities
CVE-2024-2057: LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-01 · updated 2026-06-17
- Weakness: CWE-918
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 products
- langchain-ai/langchain: 0.0.26
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
- 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
Get alerted when CVE-2024-2057 or the next vulnerability affects your stack