criticalAgent ThreatCode Execution

IBM Langflow PythonREPL Sandbox Escape (Improper Input Validation)

First seen Jul 31, 2026 · Updated Jul 31, 2026 · CVSS 9.9

langflowsandbox-escapepython-replcode-executionagent-frameworkrceASI05 · Unsafe Code ExecutionAML.T0011AML.T0053Surface: Tool LayerPropagation: Single Hop

IBM Langflow OSS versions 1.0.0 through 1.10.1 contain an improper input validation flaw in the PythonREPL sandbox tool, allowing an attacker to escape the intended execution boundary. Given the CVSS score of 9.9, this likely enables arbitrary code execution on the host running the Langflow agent, posing a critical risk to any deployment exposing this component. Organizations running affected versions should treat this as an urgent patching priority.

Technical Analysis

The PythonREPL tool in Langflow is designed to let agents execute Python code in a constrained sandbox as part of tool-use workflows. Improper input validation means user- or agent-supplied code/input reaching this component is not adequately sanitized or restricted, allowing crafted input to break out of the sandbox and execute with the privileges of the host process. The entry point is any interface that feeds data into the PythonREPL tool node, including agent-generated code from LLM outputs, chained tool calls, or exposed API/UI endpoints. Successful exploitation grants the attacker code execution on the underlying server, crossing the boundary from a supposedly isolated 'tool execution' context into the host environment, which can lead to full compromise of the Langflow instance, lateral movement, and exposure of any credentials or connected systems (databases, other agents, cloud resources) accessible from that host.

Affected Systems

IBM Langflow OSS

Detection Signatures

  • Monitor Langflow PythonREPL tool invocations for anomalous or unexpected code patterns (e.g., os/sys module access, subprocess calls, file system traversal attempts) beyond the tool's intended scope.
  • Log and alert on PythonREPL executions triggered by untrusted or externally-sourced agent input rather than developer-authored flows.
  • Watch for outbound network connections, unexpected child processes, or file writes originating from the Langflow server process.
  • Review agent/flow definitions for PythonREPL nodes exposed to unauthenticated or low-trust input sources.

Remediation Steps

  1. 1

    Patch Langflow

    Upgrade IBM Langflow OSS to a version beyond 1.10.1 that addresses this vulnerability as soon as a fix is released; track vendor advisories closely.

  2. 2

    Restrict PythonREPL exposure

    Disable or remove the PythonREPL tool from flows accessible to untrusted users until patched; limit its use to trusted, authenticated workflows only.

  3. 3

    Sandbox hardening

    Run Langflow in a container or VM with minimal privileges, no sensitive credentials, and restricted network egress to limit blast radius of any sandbox escape.

  4. 4

    Input validation layer

    Add an additional validation/allowlisting layer in front of the PythonREPL tool to filter code input before it reaches the vulnerable component.

  5. 5

    Monitoring

    Deploy runtime monitoring (EDR, syscall auditing) on hosts running Langflow to detect anomalous process behavior indicative of sandbox escape exploitation.

CVE / Advisory IDs

CVE-2026-13435

Industries Most Exposed

TechnologySoftware DevelopmentFinancial ServicesHealthcareGovernmentAny industry deploying Langflow-based AI agent applications

Sources

Respond to this threat

Pro subscribers get a full AI-generated incident-response playbook for this threat — detection, containment, eradication, and recovery steps — plus an unlimited AI Threat Advisor for questions about your environment.