CVE-2024-2057LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery
- 6.3MediumCVSS base score
- 0.68%Exploitation in 30 daysEPSS · top 47% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit.
Show the exploits1
References tagged exploit1 reference
- https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl (opens in a new tab)broken-linkexploitx_transferred
Timeline
ID reserved
By VulDB
Published
- 5 months later
· 5 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| VulDBCNA (assigner) | 3.1 | Medium6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| VulDBCNA (assigner) | 3.0 | Medium6.3 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| VulDBCNA (assigner) | 2.0 | Medium6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.68% · top 47% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.3.
Affected products
LangChain · langchain_community
- affected 0.0.26
References
References5
- VDB-255372 | LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery (opens in a new tab)vdb-entrytechnical-descriptionx_transferred
- VDB-255372 | CTI Indicators (IOB, IOC, IOA) (opens in a new tab)signaturepermissions-requiredx_transferred
- https://github.com/bayuncao/vul-cve-16 (opens in a new tab)broken-linkx_transferred
- https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl (opens in a new tab)broken-linkexploitx_transferred
- https://github.com/langchain-ai/langchain/pull/18695 (opens in a new tab)issue-trackingpatchx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-27022 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-2057)Record last updated .