CVE-2024-2057 json
LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery
published 2024-03-01 2 y ago modified 2026-06-17 4 mo ago also PYSEC-2024-278 , EUVD-2024-27022
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- github.com/langchain-ai/langchain#18695 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.58% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CNA | 3.0 | 6.3 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CNA | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain-community | <=0.0.26 |
no fix listed |
Affected products
- LangChain langchain_community
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
References
-
github.com
/langchain-ai/langchain/pull/18695
issue-tracking, patch
-
github.com
/bayuncao/vul-cve-16/tree/main/PoC.pkl
broken-link, exploit, web
-
vuldb.com
/?id.255372
vdb-entry, technical-description, permissions-required, report
-
vuldb.com
/?ctiid.255372
signature, permissions-required, report
-
github.com
/bayuncao/vul-cve-16
broken-link, package
Sources
- CVE List CVE-2024-2057
- NVD CVE-2024-2057
- OSV PYSEC-2024-278
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.