{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-27794","id":"CVE-2026-27794","title":"LangGraph: BaseCache Deserialization of Untrusted Data may lead to Remote Code Execution","description":"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)`. Wh","descriptionLong":"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.","published":"2026-02-25T16:53:47.176Z","updated":"2026-10-28T02:30:24.753463994Z","reserved":"2026-02-24T02:31:33.265Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["langchain-ai langgraph-checkpoint"],"affectedProducts":[{"vendor":"langchain-ai","product":"langgraph-checkpoint","defaultStatus":null,"versions":[{"version":"< 4.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langgraph-checkpoint","purl":"pkg:pypi/langgraph-checkpoint","ranges":["<4.0.0"],"fixed":["4.0.0"],"advisory":"GHSA-mhr3-j7m5-c7c9"}],"cwes":["CWE-502"],"aliases":["GHSA-mhr3-j7m5-c7c9","PYSEC-2026-2574"],"references":[{"url":"https://github.com/langchain-ai/langgraph/security/advisories/GHSA-mhr3-j7m5-c7c9","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/langchain-ai/langgraph/pull/6677","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/langchain-ai/langgraph/commit/f91d79d0c86932ded6e3b9f195d5a0bbd5aef99c","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/langchain-ai/langgraph/releases/tag/checkpoint%3D%3D4.0.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27794.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27794","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langgraph","tags":["package"]},{"url":"https://pypi.org/project/langgraph-checkpoint","tags":["package"]},{"url":"https://github.com/advisories/GHSA-mhr3-j7m5-c7c9","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00836,"epssPercentile":0.58495,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-27794","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27794","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-27794","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mhr3-j7m5-c7c9","ok":true,"note":"GHSA-mhr3-j7m5-c7c9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-27794","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}