9.3

CVE-2025-68664: LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

Analyzed
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 44.13% chance of exploitation in the next 30 days, higher than 98.7% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (exploit-database, 29-04-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.3/10
010
Critical · v3.1 (CVE.org)
EPSS score
44.13%
0%100%
High · +1.20 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

44.13%

Chance of exploitation in the next 30 days

Percentile

99%

Versus all other CVEs

30-day change

Increase +1.20 pp

From 42.93% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • githubUnverified

    Langchain

    Maturity: poc

  • exploit-databasemultipleUnverified

    LangChain Core 1.2.4 - Server-Side Template Injection (SSTI) / Remote Code Execution (RCE)

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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≥ 1.0.0, < 1.2.5 | < 0.3.81

4 vendors · 8 products

References

13 links
Show all 13 references