Bug 2424790 (CVE-2025-68664) - CVE-2025-68664 langchain-core: LangChain: Arbitrary code execution via serialization injection
Summary: CVE-2025-68664 langchain-core: LangChain: Arbitrary code execution via serial...
Keywords:
Status: NEW
Alias: CVE-2025-68664
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-23 23:01 UTC by OSIDB Bzimport
Modified: 2026-01-21 10:09 UTC (History)
41 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-23 23:01:16 UTC
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 You need to log in before you can comment on or make changes to this bug.