Vulnerability · Published Mar 1, 2024 · Assigned by VulDB
CVE-2024-2057LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery
Medium 6.3
In plain English
A medium-severity server-side request forgery in langchain_community from LangChain. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities).
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | langchain-community | no fix listed | PYSEC-2024-278 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| LangChain | langchain_community | 0.0.26 |
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- VDB-255372 | LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery vdb-entry, technical-description
- VDB-255372 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- https://github.com/bayuncao/vul-cve-16 broken-link
- https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl broken-link, exploit
- https://github.com/langchain-ai/langchain/pull/18695 issue-tracking, patch