LangChainPublished 1 Mar 2024NVD status: Analyzed

CVE-2024-2057

A vulnerability was found in LangChain langchain_community 0.0.26.

ComponentLangChain
Severitymedium (CVSS 6.3)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Published (NVD)2024-03-01
Last modified2026-06-17
Affected versions
< 0.0.27
read from the advisory text: no structured source gives these versions yet
Fixed in0.0.27
WeaknessCWE-918
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis reads = 0.0.26. The ranges above are read from the advisory text: neither a GitHub-reviewed advisory nor the CVE record confirms them yet.

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

What to do

  • Upgrade LangChain to 0.0.27 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources