patchminder
Proof of concept · Exploit-DB CVE-2025-68664

Unsafe deserializationin LangChain AI LangChain.

Published 23 Dec 2025 · Updated 24 Dec 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
Critical 9.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 44.1% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 0.3.81, 1.2.5
In plain words

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.

What to do now
  • Upgrade langchain to 0.3.81, 1.2.5 or later, whichever matches your release line.
  • Upgrade langchain-core (PyPI) to 0.3.81, 1.2.5 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
langchain
1.0.0 to before 1.2.5
1.2.5
CVE record
langchain
before 0.3.81
0.3.81
CVE record
langchain-core (PyPI)
1.0.0 to before 1.2.5
1.2.5
GitHub advisory
langchain-core (PyPI)
before 0.3.81
0.3.81
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 22 Dec 2025
    CVE ID reserved by GitHub_M.
  2. 23 Dec 2025
    Published in the CVE List.
  3. 24 Dec 2025
    CVE record last updated.
  4. 27 Dec 2025
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
4 repositories
Exploit-DBEDB-ID 52514web application exploit for multiple, published 29 Apr 2026
GitHubno warning signs foundAk-cybe/CVE-2025-68664-LangGrinch-PoC3 stars · created 27 Dec 2025A testing framework to identify and demonstrate deserialization vulnerabilities in LangChain Core (<0.3.81). Educational use only
GitHubno warning signs foundcomerc/CVE-2025-686640 stars · created 10 Jan 2026
GitHubno warning signs foundJohnnyzhou666/langgrinch-cve-2025-68664-analysis0 stars · created 10 May 2026Technical analysis of the LangChain serialization injection vulnerability CVE-2025-68664.
GitHubno warning signs foundt-sorger/cve-2025-68664-langgrinch0 stars · created 6 Sep 2026LangGrinch · CVE-2025-68664 demo

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other LangChain vulnerabilities

Same weakness: Deserialization of untrusted data

All CWE-502 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-68664: Unsafe deserialization in LangChain AI LangChain. https://patchminder.com/cve/cve-2025-68664/ (accessed 5 December 2026).