CVE-2025-68664 - CVE House
Back to Database
Status published Critical CVE-2025-68664

LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-68664

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

langchain-ai

View all reports →

Affected Software

langchain
Vulnerable Versions:
>= 1.0.0, < 1.2.5, < 0.3.81

Timeline

Official Publish: December 23rd, 2025
Last Modified: December 24th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N

Weaknesses (CWE)