Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2025-68664

Summary
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
Published At-23 Dec, 2025 | 22:47
Updated At-24 Dec, 2025 | 14:40
Rejected At-
Credits

LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
â–ĽCommon Vulnerabilities and Exposures (CVE)
cve.org
Assigner:GitHub_M
Assigner Org ID:a0819718-46f1-4df5-94e2-005712e83aaa
Published At:23 Dec, 2025 | 22:47
Updated At:24 Dec, 2025 | 14:40
Rejected At:
â–ĽCVE Numbering Authority (CNA)
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

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
Vendor
langchain-ai
Product
langchain
Versions
Affected
  • >= 1.0.0, < 1.2.5
  • < 0.3.81
Problem Types
TypeCWE IDDescription
CWECWE-502CWE-502: Deserialization of Untrusted Data
Type: CWE
CWE ID: CWE-502
Description: CWE-502: Deserialization of Untrusted Data
Metrics
VersionBase scoreBase severityVector
3.19.3CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Version: 3.1
Base score: 9.3
Base severity: CRITICAL
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm
x_refsource_CONFIRM
https://github.com/langchain-ai/langchain/pull/34455
x_refsource_MISC
https://github.com/langchain-ai/langchain/pull/34458
x_refsource_MISC
https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8
x_refsource_MISC
https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6
x_refsource_MISC
https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81
x_refsource_MISC
https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5
x_refsource_MISC
Hyperlink: https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm
Resource:
x_refsource_CONFIRM
Hyperlink: https://github.com/langchain-ai/langchain/pull/34455
Resource:
x_refsource_MISC
Hyperlink: https://github.com/langchain-ai/langchain/pull/34458
Resource:
x_refsource_MISC
Hyperlink: https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8
Resource:
x_refsource_MISC
Hyperlink: https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6
Resource:
x_refsource_MISC
Hyperlink: https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81
Resource:
x_refsource_MISC
Hyperlink: https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5
Resource:
x_refsource_MISC
â–ĽAuthorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm
exploit
Hyperlink: https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm
Resource:
exploit
Information is not available yet
â–ĽNational Vulnerability Database (NVD)
nvd.nist.gov
Source:security-advisories@github.com
Published At:23 Dec, 2025 | 23:15
Updated At:13 Jan, 2026 | 15:58

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.19.3CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Primary3.18.2HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Type: Secondary
Version: 3.1
Base score: 9.3
Base severity: CRITICAL
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Type: Primary
Version: 3.1
Base score: 8.2
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
CPE Matches

langchain
langchain
>>langchain_core>>Versions before 0.3.81(exclusive)
cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:*
langchain
langchain
>>langchain_core>>Versions from 1.0.0(inclusive) to 1.2.5(exclusive)
cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:*
Weaknesses
CWE IDTypeSource
CWE-502Secondarysecurity-advisories@github.com
CWE ID: CWE-502
Type: Secondary
Source: security-advisories@github.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8security-advisories@github.com
Patch
https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6security-advisories@github.com
Patch
https://github.com/langchain-ai/langchain/pull/34455security-advisories@github.com
Issue Tracking
Patch
https://github.com/langchain-ai/langchain/pull/34458security-advisories@github.com
Issue Tracking
Patch
https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81security-advisories@github.com
Release Notes
https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5security-advisories@github.com
Release Notes
https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cmsecurity-advisories@github.com
Exploit
Vendor Advisory
https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit
Vendor Advisory
Hyperlink: https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8
Source: security-advisories@github.com
Resource:
Patch
Hyperlink: https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6
Source: security-advisories@github.com
Resource:
Patch
Hyperlink: https://github.com/langchain-ai/langchain/pull/34455
Source: security-advisories@github.com
Resource:
Issue Tracking
Patch
Hyperlink: https://github.com/langchain-ai/langchain/pull/34458
Source: security-advisories@github.com
Resource:
Issue Tracking
Patch
Hyperlink: https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81
Source: security-advisories@github.com
Resource:
Release Notes
Hyperlink: https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5
Source: security-advisories@github.com
Resource:
Release Notes
Hyperlink: https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm
Source: security-advisories@github.com
Resource:
Exploit
Vendor Advisory
Hyperlink: https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Resource:
Exploit
Vendor Advisory

Change History

0
Information is not available yet

Similar CVEs

4Records found

CVE-2024-5998
Matching Score-6
Assigner-Protect AI (formerly huntr.dev)
ShareView Details
Matching Score-6
Assigner-Protect AI (formerly huntr.dev)
CVSS Score-5.2||MEDIUM
EPSS-0.09% / 25.57%
||
7 Day CHG~0.00%
Published-17 Sep, 2024 | 11:50
Updated-30 Jul, 2025 | 16:22
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Deserialization of Untrusted Data in langchain-ai/langchain

A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of untrusted data. This can lead to the execution of arbitrary commands via the os.system function. The issue affects the latest version of the product.

Action-Not Available
Vendor-langchainlangchain-ailangchain
Product-langchainlangchain-ai/langchainlangchain
CWE ID-CWE-502
Deserialization of Untrusted Data
CVE-2025-68665
Matching Score-6
Assigner-GitHub, Inc.
ShareView Details
Matching Score-6
Assigner-GitHub, Inc.
CVSS Score-8.6||HIGH
EPSS-0.04% / 13.81%
||
7 Day CHG-0.08%
Published-23 Dec, 2025 | 22:56
Updated-13 Jan, 2026 | 16:17
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
LangChain serialization injection vulnerability enables secret extraction

LangChain is a framework for building LLM-powered applications. Prior to @langchain/core versions 0.3.80 and 1.1.8, and prior to langchain versions 0.3.37 and 1.2.3, a serialization injection vulnerability exists in LangChain JS's toJSON() method (and subsequently when string-ifying objects using JSON.stringify(). The method did not escape objects with 'lc' keys when serializing free-form data in kwargs. 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 @langchain/core versions 0.3.80 and 1.1.8, and langchain versions 0.3.37 and 1.2.3

Action-Not Available
Vendor-langchainlangchain-ai
Product-langchain\/corelangchain.jslangchainjs
CWE ID-CWE-502
Deserialization of Untrusted Data
CVE-2025-64439
Matching Score-6
Assigner-GitHub, Inc.
ShareView Details
Matching Score-6
Assigner-GitHub, Inc.
CVSS Score-7.4||HIGH
EPSS-0.63% / 69.78%
||
7 Day CHG~0.00%
Published-07 Nov, 2025 | 20:15
Updated-12 Nov, 2025 | 16:20
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
LangGraph Checkpoint affected by RCE in "json" mode of JsonPlusSerializer

LangGraph SQLite Checkpoint is an implementation of LangGraph CheckpointSaver that uses SQLite DB (both sync and async, via aiosqlite). In versions 2.1.2 and below, the JsonPlusSerializer (used as the default serialization protocol for all checkpointing) contains a Remote Code Execution (RCE) vulnerability when deserializing payloads saved in the "json" serialization mode. By default, the serializer attempts to use "msgpack" for serialization. However, prior to version 3.0 of the checkpointer library, if illegal Unicode surrogate values caused serialization to fail, it would fall back to using the "json" mode. This issue is fixed in version 3.0.0.

Action-Not Available
Vendor-langchain-ai
Product-langgraph
CWE ID-CWE-502
Deserialization of Untrusted Data
CVE-2024-49147
Matching Score-4
Assigner-Microsoft Corporation
ShareView Details
Matching Score-4
Assigner-Microsoft Corporation
CVSS Score-9.3||CRITICAL
EPSS-0.49% / 65.23%
||
7 Day CHG~0.00%
Published-12 Dec, 2024 | 19:07
Updated-13 May, 2025 | 15:25
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Microsoft Update Catalog Elevation of Privilege Vulnerability

Deserialization of untrusted data in Microsoft Update Catalog allows an unauthorized attacker to elevate privileges on the website’s webserver.

Action-Not Available
Vendor-Microsoft Corporation
Product-Microsoft Update Catalog
CWE ID-CWE-502
Deserialization of Untrusted Data
Details not found