LangChain < 0.1.0 SSRF

high Nessus Plugin ID 213562

Synopsis

The remote host is affected by a vulnerability.

Description

The version of LangChain installed on the remote host is prior to 0.1.0. It is, therefore, affected by a SSRF vulnerability. An attacker in control of the contents of 'https://example.com' could place a malicious HTML file in there with links like 'https://example.completely.different/my_file.html' and the crawler would proceed to download that file as well even though `prevent_outside=True`.

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

See Also

http://www.nessus.org/u?211fc357

https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861

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

Plugin Details

Severity: High

ID: 213562

File Name: langchain_CVE-2024-0243.nasl

Version: 1.3

Type: local

Published: 1/8/2025

Updated: 2/26/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 6

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

CVSS Score Source: CVE-2024-0243

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.3

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:langchain:langchain

Required KB Items: installed_sw/LangChain

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/26/2024

Vulnerability Publication Date: 2/26/2024

Reference Information

CVE: CVE-2024-0243

CWE: 918