CVE-2025-68664langchain Insecure Deserialization
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
Published Dec 23, 2025 · Updated Nov 5, 2026 · Also known as CGA-3m3m-44m3-hw2q, CGA-7m7c-828q-fqww, CGA-88jc-h5xc-jhxv, CGA-c2w2-77gg-qrv9, CGA-cqxv-g9m4-fhf2, CGA-f7jm-xh6r-5m48, CGA-j369-rgc2-mhxc, CGA-jwj2-xqmp-6w7c, CGA-mx6x-32xr-j8h3, CGA-wcmm-fjmr-cpp2, ECHO-fb5a-79b4-ed97, GHSA-c67j-w6g6-q2cm, MINI-g399-jhx6-775w, PYSEC-2026-373, ROOT-APP-PYPI-CVE-2025-68664
Key Facts
Patch immediately- CVE-2025-68664 is a high-severity vulnerability (CVSS 8.2 v3.1) affecting Langchain Core, py3.10-langchain (chainguard), py3.11-langchain (chainguard) and 10 more products.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 44% probability of exploitation in the next 30 days.
- Fixed versions are available, including ansible-automation-platform 26/lightspeed-rhel9:1767625654, Langchain Core 0.3.81, Langchain Core 1.2.5.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Scores
CVSS v3.1
8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
EPSS (30-day exploit likelihood)
44%
Higher than 98.7% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
45/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2025-68664
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-68664
- advisoryRHSA-2026:0406
- advisoryRHSA-2026:0408
- advisoryRHSA-2026:0409
- advisoryRHSA-2026:1610
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.
Affected Products
23 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| Langchain CoreLangchain | >= 1.0.0 | 0.3.81 |
| py3.10-langchainchainguard | See advisory | 1.2.6-r0 |
| py3.11-langchainchainguard | See advisory | 1.2.6-r0 |
| py3.12-langchainchainguard | See advisory | 1.2.6-r0 |
| py3.13-langchainchainguard | See advisory | 1.2.6-r0 |
Patched Releases
ansible-automation-platform
26/lightspeed-rhel9:1767625654
Langchain Core
0.3.81, 1.2.5, 0.1.23+sp999, 0.3.72+aikido.2, 0.3.72+aikido.3, 0.3.72+aikido.4, 0.3.78+aikido.2, 1.0.2+aikido.4, 1.0.2+aikido.5, 1.2.0+aikido.2, 1.2.4+aikido.5
py3-langchain
1.2.6-r0
py3.10-langchain
1.2.6-r0
py3.11-langchain
1.2.6-r0
py3.12-langchain
1.2.6-r0
py3.13-langchain
1.2.6-r0
rootio-langchain-core
0.3.72+root.io.1, 0.3.72+root.io.2, 0.3.78+root.io.1, 1.0.2+root.io.1, 1.0.2+root.io.3, 1.0.2+root.io.4, 1.2.0+root.io.1, 1.2.4+root.io.1, 1.2.4+root.io.2, 1.2.4+root.io.3, 1.2.4+root.io.4, 1.2.4+root.io.5
seal-langchain-core
0.1.23+sp999
Timeline
Publicly disclosed
Dec 23, 2025
Last updated
Nov 5, 2026
Weakness Type
- CWE-502 Deserialization of Untrusted Data
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2025-68664
- advisoryRHSA-2026:0406
- advisoryRHSA-2026:0408
- advisoryRHSA-2026:0409
FAQ
Common Questions.
LangChain is a framework for building agents and LLM-powered applications.
Affected: Langchain Core versions >= 1.0.0; py3.10-langchain (chainguard); py3.11-langchain (chainguard), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including ansible-automation-platform 26/lightspeed-rhel9:1767625654, Langchain Core 0.3.81, Langchain Core 1.2.5.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2025-68664 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo