Advisory Details

March 3rd, 2026

LangChain LangGraph BaseCache Deserialization of Untrusted Data Remote Code Execution Vulnerability

ZDI-26-135
ZDI-CAN-28385

CVE ID CVE-2026-27794
CVSS SCORE 8.1, AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS LangChain
AFFECTED PRODUCTS LangGraph
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of LangChain LangGraph. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the BaseCache class. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the service account.

ADDITIONAL DETAILS LangChain has issued an update to correct this vulnerability. More details can be found at:
https://github.com/langchain-ai/langgraph/security/advisories/GHSA-mhr3-j7m5-c7c9
DISCLOSURE TIMELINE
  • 2025-12-09 - Vulnerability reported to vendor
  • 2026-03-03 - Coordinated public release of advisory
  • 2026-03-03 - Advisory Updated
CREDIT Peter Girnus (@gothburz), Demeng Chen, and Brandon Niemczyk of Trend Zero Day Initiative
BACK TO ADVISORIES