LangChain-Core < 0.3.81 / 1.x < 1.2.5

high Nessus Plugin ID 344295

Synopsis

The remote host is affected by a vulnerability.

Description

LangChain is a framework for building agents and LLM-powered applications. Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions. The functions do not escape dictionaries with 'lc' keys when serializing free-form dictionaries. The 'lc' key is used internally by LangChain to mark serialized objects. When user-controlled data contains this key structure, it is treated as a legitimate LangChain object during deserialization rather than plain user data. This issue has been patched in versions 0.3.81 and 1.2.5.

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-Core version 0.3.81, 1.2.5, or later.

See Also

http://www.nessus.org/u?5f73d9ab

Plugin Details

Severity: High

ID: 344295

File Name: langchain-core_CVE-2025-68664.nasl

Version: 1.1

Type: Local

Published: 9/9/2026

Updated: 9/9/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.2

Percentile: 96.59

CVSS v2

Risk Factor: High

Base Score: 8.5

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

CVSS Score Source: CVE-2025-68664

CVSS v3

Risk Factor: High

Base Score: 8.2

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

Vulnerability Information

CPE: cpe:/a:langchain:langchain-core

Patch Publication Date: 12/23/2025

Vulnerability Publication Date: 12/23/2025

Reference Information

CVE: CVE-2025-68664

CWE: 502