Intel

AIKIDO-2026-230523

langflow is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2026-0768 Published 2 days ago

98

Critical Risk

This Affects:

PYTHONlangflow
0.0.19 - 1.10.0
Fixed in 1.10.1
Are you affected? Scan for Free

TL;DR

The /api/v1/validate/code endpoint feeds the caller-supplied code parameter into validate_code, which compiles and exec()s each function definition as part of validation. Executing a definition evaluates decorators and default-argument expressions at definition time, so crafted payloads run arbitrary Python in the Langflow process without the function ever being called. An attacker who can reach this endpoint can achieve remote code execution on the host. The fix validates by compiling only and no longer executes untrusted code on the validation path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and expose Langflow so that callers can reach the code validation endpoint.

Background info

langflow is vulnerable to Remote Code Execution (RCE) in versions 0.0.19 - 1.10.0.

How to fix this

Upgrade the langflow library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform