CVE-2024-2057
CWE-918Published: March 1, 2024· Updated: Jun 17, 2026
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.
Risk Analysis
This vulnerability in LangChain allows for server-side request forgery (SSRF) via the TFIDFRetriever component. With a critical CVSS score of 9.8, this flaw is highly urgent as it allows remote attackers to manipulate requests.
No public exploit is currently known and it is not in CISA's KEV catalog. The vulnerability is remotely exploitable with low attack complexity.
Upgrade the affected component to version 0.0.27 to address the issue.
Technical Analysis
CVE-2024-2057 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (10)
Quick Facts
Related CVEs (CWE-918)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2024-2057 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts