BreachSpiderVerified, not vibes

CVE-2025-68664 in Langchain Core

High 8.2 Public exploit reported

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 ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.2
EPSS2.6%
EPSS percentile86th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Langchain Langchain Core < 0.3.81 ≥ 1.0.0, < 1.2.5

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-68664
BreachSpider IDBS-2025-GLOBAL-270003-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Published2025-12-23
Last modified2026-10-19
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-502: Deserialization of Untrusted Data

Software deserializes untrusted data without validation, allowing crafted objects to execute arbitrary code.

Related attack patterns (CAPEC)

CAPEC-586 Object Injection via CWE-502

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions prior to versions 0.3.81 and 1.2.5, allowing for potential code execution if user-controlled data is improperly handled.

The vulnerability arises from the lack of proper escaping of dictionaries containing 'lc' keys during serialization. An attacker could exploit this by injecting malicious data into the serialization process, potentially leading to arbitrary code execution.

Questions

What is CVE-2025-68664?

A serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions prior to versions 0.3.81 and 1.2.5, allowing for potential code execution if user-controlled data is improperly handled.

What is the CVSS score for CVE-2025-68664?

CVE-2025-68664 has CVSS 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N. EPSS: 2.6%.

Is CVE-2025-68664 actively exploited?

Public exploit available for CVE-2025-68664. Exploitation risk elevated.

How do I remediate CVE-2025-68664?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2025-68664?

CVE-2025-68664 affects Langchain Langchain Core.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Langchain","product":"Langchain Core","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.