LangChain
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.0.0, < 1.2.5
- < 0.3.81
Fixed in 1.2.5, 0.3.81
Mitigation
Upgrade langchain to 1.2.5 or 0.3.81 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 3.3 days after publication; not in CISA KEV. First PoC: Ak-cybe/CVE-2025-68664-LangGrinch-PoC (created 27 Dec 2025, found by us: backfilled).
PoC repositories
Found on GitHub.3 PoCs · 1 pending · 1 informational · 1 suspicious or fake
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Ak-cybe/CVE-2025-68664-LangGrinch-PoC | 27 Dec 2025 +3.3 d | 3 | PoC |
| ssoranno-lacework/LangGrinch_Vuln_Example | 22 Apr 2026 +120 d | 0 | PoC via PoC Index |
| unhackable-demobeta/LangGrinch_Vuln_Example | 8 May 2026 +136 d | 0 | PoC via PoC Index |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Johnnyzhou666/langgrinch-cve-2025-68664-analysis | 10 May 2026 +137 d | 0 | Pending · mkdir /quarantine/Johnnyzhou666__langgrinch-cve-2025-68664-analysis-408de4d2cbb9: permission denied |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| comerc/CVE-2025-68664 | 10 Jan 2026 +18 d | 0 | Informational · write-up |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| t-sorger/cve-2025-68664-langgrinch | 6 Sep 2026 +256 d | 0 | Suspicious · score 100
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | LangChain Core 1.2.4 - SSTI/RCE | 29 Apr 2026 | 14 Nov 2026 |