SCA: security update for langchain (GHSA-rgp8-pm28-3759)

high Tenable Self-Hosted Container Security Plugin ID 418732

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a
restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this
vulnerability to read or write files anywhere on the filesystem, potentially leading to information
disclosure or remote code execution. The issue lies in the handling of file paths in the mset and mget
methods, where user-supplied input is not adequately sanitized, allowing directory traversal sequences to
reach unintended directories. (CVE-2024-3571)

See Also

https://github.com/advisories/GHSA-rgp8-pm28-3759

Plugin Details

Severity: High

ID: 418732

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.5

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

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

CVSS Score Source: CVE-2024-3571

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/16/2024

Vulnerability Publication Date: 4/16/2024

Reference Information

CVE: CVE-2024-3571

cwe: CWE-22