# CVE-2024-2057: LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery

- Severity: Medium 6.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-01T11:31:04.385Z
- Modified: 2026-06-17T07:23:38.657Z
- Also known as: PYSEC-2024-278
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- LangChain langchain_community: 0.0.26
- langchain langchain: 0.0.26
- langchain-community (PyPI): up to 0.0.26

## Every score

- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl> (exploit, broken-link, web)
- <https://vuldb.com/?id.255372> (permissions-required, report, technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.255372> (permissions-required, report, signature)
- <https://github.com/bayuncao/vul-cve-16> (broken-link, package)
- <https://github.com/langchain-ai/langchain/pull/18695> (fix, issue-tracking, patch)

## Sources

- CVE List: [CVE-2024-2057](https://www.cve.org/CVERecord?id=CVE-2024-2057), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-2057](https://nvd.nist.gov/vuln/detail/CVE-2024-2057), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-278](https://osv.dev/vulnerability/PYSEC-2024-278), CC-BY-4.0, modified 2026-05-21

---

Page: https://cve.day/CVE-2024-2057 · Whole record: https://cve.day/CVE-2024-2057.json · Rebuilt by cve.day 2026-11-25T22:58:37.204Z
