Skip to content
RCE Advisory Intermediate CVE-2026-0770

(0Day) Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution Vulnerability

The validate endpoint of Langflow mishandles the exec_globals parameter, allowing an unauthenticated remote attacker to execute arbitrary code. This can lead to code execution with root privileges.

Peter Girnus Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

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

Peter Girnus (@gothburz), William Gamazo Sanchez, and Alfredo Oliveira of Trend Research, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the validate endpoint fails to properly validate or restrict the exec_globals parameter, allowing untrusted input to be executed as code.

Impact

An unauthenticated attacker could execute arbitrary code with root privileges on the affected Langflow installation.

What the attacker needed

None

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Langflow is a tool for building AI workflows. A part of it called the validate endpoint accepts a parameter called exec_globals, and it does not properly check what is passed in. An attacker can send a specially crafted request to that endpoint and make the server run their own code, even without logging in.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Peter Girnus

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.