LangChain < 0.1.35 XXE

medium Nessus Plugin ID 213565

Synopsis

The remote host is affected by a vulnerability.

Description

The version of LangChain installed on the remote host is prior to 0.1.35. It is, therefore, affected by a XML External Entity (XXE) vulnerability in the langchain-ai/langchain repository allows for a Billion Laughs Attack, a type of XML External Entity (XXE) exploitation. By nesting multiple layers of entities within an XML document, an attacker can cause the XML parser to consume excessive CPU and memory resources, leading to a denial of service (DoS).

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

See Also

https://huntr.com/bounties/4353571f-c70d-4bfd-ac08-3a89cecb45b6

http://www.nessus.org/u?c80abf9d

Plugin Details

Severity: Medium

ID: 213565

File Name: langchain_CVE-2024-1455.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.6

CVSS v2

Risk Factor: Medium

Base Score: 5.4

Vector: CVSS2#AV:N/AC:H/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2024-1455

CVSS v3

Risk Factor: Medium

Base Score: 5.9

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

Vulnerability Information

CPE: cpe:/a:langchain:langchain

Required KB Items: installed_sw/LangChain

Patch Publication Date: 3/26/2024

Vulnerability Publication Date: 3/26/2024

Reference Information

CVE: CVE-2024-1455

CWE: CWE-776