9.3

CVE-2025-68664: langchain-ai langchain Deserialization of Untrusted Data

CVSS: 9.3v3.1CriticalAnalyzed
AliasesGHSA-c67j-w6g6-q2cmPYSEC-2026-373CGA-3m3m-44m3-hw2q
Published 23-12-2025Last modified 24-12-2025

Vulnerability summary

CVE-2025-68664 is a critical (CVSS 9.3) Deserialization of Untrusted Data vulnerability in langchain-ai langchain. EPSS estimates a 42.93% chance of exploitation in the next 30 days, higher than 98.7% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.3/10
010
Critical · v3.1 (CVE.org)
EPSS score
42.93%
0%100%
High · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, exploit-database

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 23-12-2025
    PublishedVulnerability first disclosed.
  2. 24-12-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

42.93%

Chance of exploitation in the next 30 days

Percentile

99%

Versus all other CVEs

30-day change

0.00 pp

From 42.93% on 19-09-2026

19-09-202619-10-2026
EPSS score
42.93%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Langchain

    Maturity: poc

  • exploit-databasemultipleUnverified

    LangChain Core 1.2.4 - SSTI/RCE

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Chainguard5 products
  • 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
Langchain1 product
Langchain-ai1 product
PyPI1 product
  • langchain-core< 0.3.81 | ≥ 1.0.0, < 1.2.5

4 vendors · 8 products

References

12 links
Show all 12 references