{
  "id": "CVE-2025-68664",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-68664",
  "published_at": "2025-12-23T22:47:44.084Z",
  "title": "LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs",
  "vendor": "langchain-ai",
  "product": "langchain",
  "cvss": {
    "score": 9.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-12-27T06:49:55Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 3.3,
    "repo": "Ak-cybe/CVE-2025-68664-LangGrinch-PoC",
    "source": "github"
  },
  "poc_repo_count": 3,
  "exploit_count": 1,
  "suspicious_repo_count": 1,
  "edge_device": null,
  "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.",
  "cwe": "CWE-502",
  "cpes": [
    "cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.3,
    "nvd": 8.2
  },
  "repos": [
    {
      "repo": "Ak-cybe/CVE-2025-68664-LangGrinch-PoC",
      "url": "https://github.com/Ak-cybe/CVE-2025-68664-LangGrinch-PoC",
      "created_at": "2025-12-27T06:49:55Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-08-01T03:36:52Z"
    },
    {
      "repo": "comerc/CVE-2025-68664",
      "url": "https://github.com/comerc/CVE-2025-68664",
      "created_at": "2026-01-10T21:54:32Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2011-09-04T11:28:45Z"
    },
    {
      "repo": "ssoranno-lacework/LangGrinch_Vuln_Example",
      "url": "https://github.com/ssoranno-lacework/LangGrinch_Vuln_Example",
      "created_at": "2026-04-22T14:47:28Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-11-07T14:36:04Z"
    },
    {
      "repo": "unhackable-demobeta/LangGrinch_Vuln_Example",
      "url": "https://github.com/unhackable-demobeta/LangGrinch_Vuln_Example",
      "created_at": "2026-05-08T17:49:16Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-03-30T22:30:20Z"
    },
    {
      "repo": "Johnnyzhou666/langgrinch-cve-2025-68664-analysis",
      "url": "https://github.com/Johnnyzhou666/langgrinch-cve-2025-68664-analysis",
      "created_at": "2026-05-10T06:42:37Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2023-07-26T19:40:41Z"
    },
    {
      "repo": "t-sorger/cve-2025-68664-langgrinch",
      "url": "https://github.com/t-sorger/cve-2025-68664-langgrinch",
      "created_at": "2026-09-06T10:26:08Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 100,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in Dockerfile",
        "pipes a download into a shell / encoded PowerShell in scripts/attack.sh"
      ],
      "status": "analyzed",
      "owner_created_at": "2020-03-04T10:23:17Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "langchain-ai",
        "product": "langchain",
        "ranges": [
          "\u003e= 1.0.0, \u003c 1.2.5",
          "\u003c 0.3.81"
        ],
        "fixed_in": [
          "1.2.5",
          "0.3.81"
        ]
      }
    ],
    "upgrade": [
      "Upgrade langchain to 1.2.5 or 0.3.81 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/langchain-ai/langchain/pull/34455"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/langchain-ai/langchain/pull/34458"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/52514",
      "source": "exploitdb",
      "title": "LangChain Core 1.2.4 - SSTI/RCE",
      "published_at": "2026-04-29T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
