Cloudanix VulnDB

CVE-2026-0770

Critical · 9.8 CISA KEV

CVSS

9.8

EPSS

62.6%

Published

Jan 23, 2026

CISA due date

Jul 24, 2026

Cloudanix analysis

Act now SSVC: Attend

A vulnerable Langflow server can be taken over remotely by anyone who can reach it, potentially exposing data and connected systems.

Active In The Wild Wormable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Trivial
Impact
Full Compromise
Component
Application
Class
RCE
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

CVE-2026-0770 is an unauthenticated remote code execution vulnerability in Langflow caused by unsafe handling of the `exec_globals` parameter submitted to a validation endpoint. The flaw allows attacker-controlled functionality or objects from an untrusted control sphere to be included during server-side validation, resulting in arbitrary Python code execution. Because exploitation requires network access only, no authentication, no user interaction, and low complexity, a remote attacker can execute commands in the context of the Langflow service; the advisory states this may be root on affected installations, enabling full confidentiality, integrity, and availability compromise of the host and any reachable services or secrets.

Why it matters to the business

An exposed vulnerable Langflow instance can be taken over remotely without credentials. Successful exploitation can lead to theft of API keys, model credentials, workflow data, environment variables, source code, and cloud or database secrets; modification of AI workflows; deployment of malware or cryptominers; lateral movement into connected infrastructure; and service disruption. The vulnerability is listed in CISA KEV with a remediation due date of 2026-07-24 and has active exploitation reported, so internet-facing deployments should be treated as urgent even though no ransomware-specific KEV flag is currently present.

How an attack unfolds

An attacker first identifies an exposed Langflow service and confirms that the validation endpoint is reachable without authentication. They then send a crafted request containing a malicious `exec_globals` value designed to cause the server-side validation logic to import, reference, or execute attacker-controlled functionality. If the instance is vulnerable, the Langflow backend evaluates the malicious input and runs attacker-supplied Python code in the service process context. From there, the attacker typically executes shell commands, reads environment variables and configuration files, steals credentials, establishes persistence, downloads additional tooling, opens a reverse shell or command-and-control channel, and may pivot to adjacent services using credentials or network access available to the Langflow host.

How to fix it

Upgrade Langflow to a vendor-provided fixed version as soon as one is available. No fixed version was provided in the input, so track the official Langflow advisory, package repository, and release notes for the patched release and prioritize deployment before the CISA KEV due date of 2026-07-24. Until patched, remove Langflow from direct internet exposure, restrict access to trusted networks or VPNs, enforce authentication and authorization at a reverse proxy if the application cannot do so safely, and block unauthenticated access to validation-related API routes. Add WAF or reverse-proxy rules to deny requests to validation endpoints containing `exec_globals` or suspicious Python execution payloads. Run Langflow as a dedicated non-root user, preferably in a container or sandbox with minimal filesystem, network, and secret access. Rotate any secrets available to affected Langflow instances after patching or containment, because successful exploitation may expose environment variables and credentials.

How to confirm the fix worked

Inventory all Langflow deployments and confirm the running version against the vendor’s patched release once available. Verify that no vulnerable instance is reachable from the public internet or untrusted networks. Confirm that requests to validation endpoints require authentication and are blocked or rejected when containing the `exec_globals` parameter. Review reverse-proxy, API gateway, and application logs to ensure external clients cannot reach the vulnerable endpoint. After upgrading, perform a safe negative test by sending a benign unauthenticated request containing `exec_globals` to the validation endpoint and confirming it is rejected, logged, or ignored rather than processed. Validate runtime hardening by confirming the Langflow process does not run as root and cannot spawn unrestricted shells, write to sensitive directories, or access unnecessary secrets.

Typical attack path

  1. Scan the internet or internal networks for exposed Langflow services.
  2. Probe Langflow API routes to identify whether the validation endpoint is accessible without authentication.
  3. Send a crafted request to the validate endpoint containing a malicious `exec_globals` parameter.
  4. Trigger server-side execution of attacker-controlled Python code.
  5. Run operating system commands through the Langflow Python process, potentially as root.
  6. Harvest secrets such as environment variables, API tokens, workflow credentials, SSH keys, and cloud credentials.
  7. Download post-exploitation tools or establish an interactive reverse shell.
  8. Persist, tamper with AI workflows, exfiltrate data, or pivot to connected systems.

How to detect it

Look for evidence of unauthenticated HTTP requests to Langflow validation endpoints, especially POST requests containing the `exec_globals` parameter or Python execution syntax. Review application logs, reverse-proxy logs, API gateway logs, WAF events, container logs, EDR telemetry, process creation logs, DNS logs, and outbound firewall/proxy logs. High-value indicators include requests to validate-related paths from unknown IP addresses, request bodies referencing `exec_globals`, Python built-ins such as `__import__`, `eval`, `exec`, `open`, `os.system`, `subprocess`, or `pty`, and payloads that attempt shell execution or reverse connections. On hosts or containers, hunt for the Langflow Python process spawning shells or utilities such as `sh`, `bash`, `curl`, `wget`, `nc`, `python`, `perl`, or `openssl`; unexpected files in `/tmp`, `/var/tmp`, or application working directories; newly added cron jobs or systemd units; and outbound connections shortly after suspicious validation requests. Because exploitation can run as root, also review authentication logs, shell history where available, cloud metadata access logs, and secret access logs for activity following suspicious web requests.

  • exec_globals
  • /api/v1/validate/code
  • /validate
  • POST /api/v1/validate
  • POST /api/v1/validate/code
  • __import__
  • os.system
  • subprocess.Popen
  • subprocess.run
  • eval(
  • exec(
  • pty.spawn
  • /bin/bash -c
  • /bin/sh -c
  • curl http
  • wget http
  • nc -e
  • bash -i
  • python -c
  • python3 -c
  • /tmp/
  • /var/tmp/

What your security team should do

  • Treat all internet-exposed Langflow instances as high priority because the vulnerability is unauthenticated, remotely exploitable, KEV-listed, and reported as actively exploited.
  • Immediately identify exposed Langflow services using asset inventory, external attack surface management, cloud security tooling, and network scans.
  • Apply the vendor patch as soon as a fixed Langflow release is available; if no patch is available, isolate or disable exposed instances until mitigation is in place.
  • Block or tightly restrict access to Langflow validation endpoints at reverse proxies, API gateways, load balancers, and firewalls.
  • Create detection rules for POST requests to validation endpoints containing `exec_globals`, Python import/execution syntax, shell metacharacters, or outbound command patterns.
  • Hunt for evidence of exploitation including suspicious child processes spawned by the Langflow Python process, unexpected outbound connections, new files in temporary directories, and credential access activity.
  • Rotate credentials, API keys, model provider tokens, database passwords, and cloud secrets accessible to Langflow if exploitation is suspected or exposure cannot be ruled out.
  • Run Langflow under a non-root service account with least privilege, network egress restrictions, filesystem controls, and container sandboxing.
  • Preserve logs and forensic artifacts before rebuilding or upgrading suspected compromised systems.

The record

Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of the exec_globals parameter provided to the validate endpoint. The issue results from the inclusion of a resource from an untrusted control sphere. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27325.

Affected packages

Ecosystem Package Introduced Fixed
PyPI langflow 0 No fix

Related vulnerabilities