SecurityContext

CVE-2025-68664: LangChain - Insecure Deserialization

  • Cve: CVE-2025-68664
  • Name: LangChain - Insecure Deserialization
  • 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.
  • Impact: Attackers can inject malicious serialized objects leading to potential code execution or logic manipulation during deserialization.
  • Remediation: Update to versions 0.3.81 or 1.2.5 or later.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Epss score: 0.44131
  • Epss percentile: 0.98785
  • Assignee: [email protected]
  • Published at: 2025-12-23T23:15:44Z
  • Age in days: 336
  • Modified at: 2026-10-19T22:10:00Z
  • Patch available: yes
  • Public exploits total: 5
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-68664
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data

Public exploits

UrlSourceAdded date
https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cmnvd2025-12-23
https://github.com/t-sorger/cve-2025-68664-langgrinchpoc-in-github2026-09-06
https://github.com/Johnnyzhou666/langgrinch-cve-2025-68664-analysispoc-in-github2026-05-10
https://github.com/comerc/CVE-2025-68664poc-in-github2026-01-10
https://github.com/Ak-cybe/CVE-2025-68664-LangGrinch-PoCpoc-in-github2025-12-27

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8Patch
https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6Patch
https://github.com/langchain-ai/langchain/pull/34455Issue Tracking, Patch
https://github.com/langchain-ai/langchain/pull/34458Issue Tracking, Patch
https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cmExploit, Vendor Advisory
https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81Release Notes
https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
langchain:langchain_core>= 1.0.0, < 1.2.5; < 0.3.81nonvd/v1/products/langchain/langchain_core

Projects

RepositoryLink kindsIndexedUrl
langchain-ai/langchaincommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/langchain-ai/langchain

Index

  • Repositories: 500
  • Repositories high signal: 263
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 5
  • Public exploit first date: 2025-12-23
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts