CVE-2025-68664 Details
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.
A serialization injection vulnerability has been identified in LangChain, a framework for building applications powered by large language models. This vulnerability exists in versions prior to 0.3.81 and 1.2.5, within the dumps() and dumpd() functions. The issue arises because these functions do not properly escape dictionaries containing 'lc' keys when serializing free-form dictionaries. The 'lc' key is used internally by LangChain to identify serialized objects. As a result, user-controlled data with this key structure can be misinterpreted as a legitimate LangChain object during deserialization, leading to potential injection attacks by causing the deserializer to instantiate arbitrary classes. This vulnerability has been addressed in versions 0.3.81 and 1.2.5.
Users can upgrade to LangChain versions 0.3.81 or 1.2.5, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langchain langchain core | < 0.3.81 >= 1.0.0, < 1.2.5 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jan 13, 2026 | Reanalysis | [email protected] |
| Jan 13, 2026 | Initial Analysis | [email protected] |
| Dec 24, 2025 | CVE Modified | CISA-ADP |
| Dec 23, 2025 | New CVE Received | [email protected] |