CVE-2025-68664
CRITICALLangChain <0.3.81 and 1.2.5 - Code Injection
Title source: llmDescription
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.
Exploits (2)
nomisec
WORKING POC
1 stars
by Ak-cybe · poc
https://github.com/Ak-cybe/CVE-2025-68664-LangGrinch-PoC
References (7)
Scores
CVSS v3
9.3
EPSS
0.0004
EPSS Percentile
11.4%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Classification
CWE
CWE-502
Status
published
Affected Products (2)
langchain/langchain_core
< 0.3.81
pypi/langchain-core
< 1.2.5PyPI
Timeline
Published
Dec 23, 2025
Tracked Since
Feb 18, 2026