LangChain < 0.0.27 SSRF

medium Nessus Plugin ID 213564

Synopsis

The remote host is affected by a vulnerability.

Description

The version of LangChain installed on the remote host is prior to 0.0.27. It is, therefore, affected by a server-side request forgery (SSRF) vulnerability in the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to LangChain version 0.0.27 or later.

See Also

https://vuldb.com/?ctiid.255372

https://vuldb.com/?id.255372

https://github.com/langchain-ai/langchain/pull/18695

Plugin Details

Severity: Medium

ID: 213564

File Name: langchain_CVE-2024-2057.nasl

Version: 1.1

Type: local

Published: 1/8/2025

Updated: 1/8/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.4

CVSS v2

Risk Factor: Medium

Base Score: 6.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS Score Source: CVE-2024-2057

CVSS v3

Risk Factor: Medium

Base Score: 6.3

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Vulnerability Information

CPE: cpe:/a:langchain:langchain

Required KB Items: installed_sw/LangChain

Patch Publication Date: 3/1/2024

Vulnerability Publication Date: 3/1/2024

Reference Information

CVE: CVE-2024-2057

CWE: CWE-918