LangChain < 0.2.9 Vulnerability - CVE-2024-5998

medium Nessus Plugin ID 213561

Synopsis

The remote host is affected by a vulnerability.

Description

The version of LangChain installed on the remote host is prior to 0.2.9. It is, therefore, affected by a deserialization vulnerability in the FAISS.deserialize_from_bytes function. This can lead to the execution of arbitrary commands via the os.system function.

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.2.9 or later.

See Also

https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe

http://www.nessus.org/u?48f5c6ed

Plugin Details

Severity: Medium

ID: 213561

File Name: langchain_CVE-2024-5998.nasl

Version: 1.1

Type: local

Published: 1/8/2025

Updated: 1/8/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.7

CVSS v2

Risk Factor: Medium

Base Score: 5.7

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

CVSS Score Source: CVE-2024-5998

CVSS v3

Risk Factor: Medium

Base Score: 5.2

Vector: CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L

Vulnerability Information

CPE: cpe:/a:langchain:langchain

Required KB Items: installed_sw/LangChain

Patch Publication Date: 9/17/2024

Vulnerability Publication Date: 9/17/2024

Reference Information

CVE: CVE-2024-5998

CWE: CWE-502