CVE-2025-68664
A public proof of concept exists; no exploitation attested.
- Published2025-12-23
- Fixed in1.2.5 · 0.3.81
- WeaknessCWE-502
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-12-2323:15CVE publishedNVD
- 2026-04-29Exploit-DB entryExploit-DB
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.x | ≥ 1.0.0, < 1.2.5 | 1.2.5 | NVD · OSV |
| 0.3 | < 0.3.81 | 0.3.81 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- langchain-ai langchainAffected
- = >= 1.0.0, < 1.2.5no fix stated
- = < 0.3.81no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-12-23
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- langchain-coreRoot:PyPIall versions · fixed in 0.3.72+aikido.2
- langchain-coreRoot:PyPIall versions · fixed in 0.3.72+aikido.3
- langchain-coreRoot:PyPIall versions · fixed in 0.3.72+aikido.4
- langchain-coreRoot:PyPIall versions · fixed in 0.3.78+aikido.2
- langchain-coreRoot:PyPIall versions · fixed in 1.0.2+aikido.4
- langchain-coreRoot:PyPIall versions · fixed in 1.0.2+aikido.5
- langchain-coreRoot:PyPIall versions · fixed in 1.2.0+aikido.2
- langchain-coreRoot:PyPIall versions · fixed in 1.2.4+aikido.5
15 more package ranges on OSV.dev
Vendor advisories
langchain-core: LangChain: Arbitrary code execution via serialization injection
Red Hat Security Advisory: Red Hat OpenShift Lightspeed 1.0.9 security update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Container Release Update
Fix
- Update Langchain langchain core to 1.2.5 · 0.3.81
- Vendor fix Red Hat Product Security RHSA-2026:1610 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:0409 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5#Upgrading
- Vendor fix Red Hat Product Security RHSA-2026:0408 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.6#Upgrade
- Vendor fix Red Hat Product Security RHSA-2026:0406 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.4#Installation%20and%20upgrade
Advisories and patches
- github.comPatch
- github.comPatch
- github.comPatch
- github.comPatch
- github.comRelease Notes
- github.comRelease Notes
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-12-24
- PoC-in-GitHub4 repositories, unverifiedknown since 2026-11-01Ak-cybe/CVE-2025-68664-LangGrinch-PoCcomerc/CVE-2025-68664Johnnyzhou666/langgrinch-cve-2025-68664-analysist-sorger/cve-2025-68664-langgrinch
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-12-24
- CNACVSS 3.19.3known since 2026-10-23
- GitHub AdvisoriesCVSS 3.19.32026-10-27
- NVDCVSS 3.18.2read 2026-10-23
- CNAweakness (CWE)CWE-502known since 2026-10-23
- GitHub Advisoriesweakness (CWE)CWE-5022026-10-27
- FIRST EPSSEPSS score42.9 %read 2026-11-09
- PoC-in-GitHubproof of concept4known since 2026-11-01
- Exploit-DBdetectionread 2026-11-09
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2025-12-23
Identifiers
- CGA-3m3m-44m3-hw2qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7m7c-828q-fqwwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-88jc-h5xc-jhxvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c2w2-77gg-qrv9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-cqxv-g9m4-fhf2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f7jm-xh6r-5m48same flawChainguard · CC-BY-NC-ND-4.0
- CGA-j369-rgc2-mhxcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jwj2-xqmp-6w7csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mx6x-32xr-j8h3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-wcmm-fjmr-cpp2same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-204849same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-c67j-w6g6-q2cmsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-g399-jhx6-775wsame flawMinimOS · LicenseRef-unstated
- PYSEC-2026-373same flawPyPA Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- Published
- 2025-12-23
- Last Modified
- 2026-10-19
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-c67j-w6g6-q2cm
Frequently asked questions
What is CVE-2025-68664?
Is CVE-2025-68664 actively exploited?
What is the CVSS score for CVE-2025-68664?
Running langchain-core? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-c67j-w6g6-q2cm
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0