{"id":"CVE-2026-27794","published":"2026-02-25T16:53:47Z","modified":"2026-02-25T21:00:24Z","title":"LangGraph: BaseCache Deserialization of Untrusted Data may lead to Remote Code Execution","vendor":"langchain-ai","product":"langgraph-checkpoint","tier":"tail","description":{"text":"LangGraph Checkpoint defines the base interface for LangGraph checkpointers. Prior to version 4.0.0, a Remote Code Execution vulnerability exists in LangGraph's caching layer when applications enable cache backends that inherit from `BaseCache` and opt nodes into caching via `CachePolicy`. Prior to `langgraph-checkpoint` 4.0.0, `BaseCache` defaults to `JsonPlusSerializer(pickle_fallback=True)`. When msgpack serialization fails, cached values can be deserialized via `pickle.loads(...)`. Caching is not enabled by default. Applications are affected only when the application explicitly enables a cache backend (for example by passing `cache=...` to `StateGraph.compile(...)` or otherwise configuring a `BaseCache` implementation), one or more nodes opt into caching via `CachePolicy`, and the attacker can write to the cache backend (for example a network-accessible Redis instance with weak/no auth, shared cache infrastructure reachable by other tenants/services, or a writable SQLite cache file). An attacker must be able to write attacker-controlled bytes into the cache backend such that the LangGraph process later reads and deserializes them. This typically requires write access to a networked cache (for example a network-accessible Redis instance with weak/no auth or shared cache infrastructure reachable by other tenants/services) or write access to local cache storage (for example a writable SQLite cache file via permissive file permissions or a shared writable volume). Because exploitation requires write access to the cache storage layer, this is a post-compromise / post-access escalation vector. LangGraph Checkpoint 4.0.0 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01262,"percentile":0.69644,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/langchain-ai/langgraph/security/advisories/GHSA-mhr3-j7m5-c7c9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langchain-ai/langgraph/pull/6677","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langgraph/commit/f91d79d0c86932ded6e3b9f195d5a0bbd5aef99c","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langgraph/releases/tag/checkpoint%3D%3D4.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":13.93},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langgraph-checkpoint","versions":["< 4.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-25T21:00:12.555344Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langgraph-checkpoint","vulnerableRanges":["<4.0.0"],"patched":["4.0.0"],"from":["GHSA-mhr3-j7m5-c7c9","PYSEC-2026-2574"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-8696","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-64439","published":"2025-11-07","fixed":"3.0.0","kev":false},{"cve":"CVE-2026-27794","published":"2026-02-25","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-48775","published":"2026-06-16","fixed":"4.1.1","kev":false,"link":{"from":"CVE-2026-27794","to":"CVE-2026-48775","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langgraph-checkpoint","fromFixed":"4.0.0","toFixed":"4.1.1","daysApart":111}]}}],"package":"PyPI:langgraph-checkpoint"}}