CVE-2025-68664, also known as LangGrinch, is a serialization-injection vulnerability in LangChain Core. In affected releases, the dumps() and dumpd() functions do not escape free-form, user-controlled dictionaries containing the internally reserved lc key. When that serialized data is subsequently processed by load() or loads(), LangChain can interpret the attacker-controlled structure as a legitimate LangChain object instead of ordinary data. This can permit extraction of environment-variable secrets and unsafe instantiation of trusted Serializable classes. In configurations involving dangerous object initialization, the flaw can potentially result in arbitrary code execution.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (3 hidden).
This repository provides a comprehensive proof-of-concept (PoC) and payload arsenal for exploiting CVE-2025-68664, a critical deserialization vulnerability in the LangChain Core Python package. The vulnerability allows attackers to inject specially crafted JSON objects (with an 'lc' marker) into deserialization routines, leading to environment secret extraction, SSRF, remote code execution, and file system access. The repository includes: - README.md: Detailed writeup, vulnerability analysis, and usage instructions. - PAYLOADS.md: Over 55 categorized payloads for secret extraction, SSRF, RCE, file access, and evasion. - langgrinch_fuzzer.py: A Python tool to generate, customize, and export payloads, as well as automate testing against targets. - requirements.txt: Python dependencies for running the fuzzer and optional testing. The main exploit capabilities are: 1. Extraction of sensitive environment variables (API keys, DB credentials, etc.). 2. Triggering SSRF to attacker-controlled HTTP endpoints by abusing deserialization gadgets in LangChain. 3. Achieving remote code execution or file read via advanced payloads. The exploit is operational and provides both ready-to-use and customizable payloads. The attack vectors are both network (SSRF, exfiltration) and local (environment variable and file access). The repository is well-documented and intended for authorized security testing only.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
100 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A high-severity serialization-injection vulnerability in LangChain/langchain-core dumps() and dumpd() functions. User-controlled dictionaries containing the internally reserved 'lc' key structure can be deserialized as LangChain objects rather than treated as plain data. Patched in versions 0.3.81 and 1.2.5.
A network-exploitable low-complexity vulnerability affecting LangChain Core, classified as CWE-502. The provided CVSS v3.0 vector indicates high confidentiality impact and low integrity impact, with no availability impact.
Critical LangChain serialization-injection vulnerability that can enable theft of sensitive secrets.
A LangChain arbitrary code execution vulnerability via serialization injection.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.