LangChain Python Library < 0.0.317 (CVE-2023-46229)

high Nessus Plugin ID 206976

Synopsis

A Python library installed on the remote host is affected by a vulnerability.

Description

LangChain is a framework for developing applications powered by large language models. LangChain before 0.0.317 allows SSRF via document_loaders/recursive_url_loader.py because crawling can proceed from an external server to an internal server.

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

See Also

https://github.com/advisories/GHSA-655w-fm8m-m478

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

Plugin Details

Severity: High

ID: 206976

File Name: langchain_python_lib_0_0_317.nasl

Version: 1.2

Type: local

Agent: unix

Family: Misc.

Published: 9/11/2024

Updated: 9/12/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

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

CVSS Score Source: CVE-2023-46229

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

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

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

Vulnerability Information

CPE: cpe:/a:langchain:langchain_experimental

Exploit Ease: No known exploits are available

Patch Publication Date: 10/19/2023

Vulnerability Publication Date: 10/19/2023

Reference Information

CVE: CVE-2023-46229