CVE-2025-68664langchain Insecure Deserialization
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
Published Dec 23, 2025 · Updated Sep 10, 2026 · Also known as GHSA-c67j-w6g6-q2cm, 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-langchain (chainguard), ansible-automation-platform (redhat) and 5 more products.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 43% 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 0.1.23+sp999.
- 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)
43%
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
12 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| Langchain CoreLangchain | >= 1.0.0 | 0.3.81 |
| py3-langchainchainguard | See advisory | 1.2.6-r0 |
| ansible-automation-platformredhat | See advisory | 26/lightspeed-rhel9:1767625654 |
| openshift-lightspeed/lightspeed-service-api-rhel9:1769058587redhat | See advisory | n/a |
| openshift-lightspeed/lightspeed-service-api-rhel9:sha256:23af5c023d054ad9f607f4a8df270c01607a7ace1acd328b5c3702e32dccb621redhat | See advisory | n/a |
Patched Releases
ansible-automation-platform
26/lightspeed-rhel9:1767625654
Langchain Core
0.3.81, 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, 1.2.5
py3-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
Sep 10, 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-langchain (chainguard); ansible-automation-platform (redhat), 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 0.1.23+sp999.
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