CVE-2025-68664: LangChain - Insecure Deserialization
- Cve: CVE-2025-68664
- Name: LangChain - Insecure Deserialization
- 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: Attackers can inject malicious serialized objects leading to potential code execution or logic manipulation during deserialization.
- Remediation: Update to versions 0.3.81 or 1.2.5 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- Epss score: 0.44131
- Epss percentile: 0.98785
- Assignee: [email protected]
- Published at: 2025-12-23T23:15:44Z
- Age in days: 336
- Modified at: 2026-10-19T22:10:00Z
- Patch available: yes
- Public exploits total: 5
- References total: 7
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-68664
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-502 | Deserialization of Untrusted Data |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm | nvd | 2025-12-23 |
| https://github.com/t-sorger/cve-2025-68664-langgrinch | poc-in-github | 2026-09-06 |
| https://github.com/Johnnyzhou666/langgrinch-cve-2025-68664-analysis | poc-in-github | 2026-05-10 |
| https://github.com/comerc/CVE-2025-68664 | poc-in-github | 2026-01-10 |
| https://github.com/Ak-cybe/CVE-2025-68664-LangGrinch-PoC | poc-in-github | 2025-12-27 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| langchain:langchain_core | >= 1.0.0, < 1.2.5; < 0.3.81 | no | nvd | /v1/products/langchain/langchain_core |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| langchain-ai/langchain | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/langchain-ai/langchain |
Index
- Repositories: 500
- Repositories high signal: 263
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 5
- Public exploit first date: 2025-12-23
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts