CVE-2026-18894
Remote code execution via stored Python component in public IBM Langflow workflows.
- CVSS 6.5
- CWE-94
- Authentication, Authorization, and Session Management
- Remote
IBM Langflow OSS 1.0.0 through 1.12.4 could allow a remote attacker to trigger pre-existing stored Python component code in a public workflow, executing it under the flow owner's runtime context within the server process. This bypasses the intended trust boundary where public execution paths are restricted to server-trusted component code.
- CWE
- CWE-94
- CVSS base score
- 6.5
- Published
- 2026-10-29
- OWASP
- A01 Broken Access Control
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- Langflow
Solution
Upgrade IBM Langflow to version 1.12.5 (or any later release) which patches this remote code‑execution vulnerability.
Vulnerable code sample
import json
def run_component(workflow_id: str, component_id: str):
# Retrieve stored component source (as string) from the workflow definition
component_src = get_component_source(workflow_id, component_id) # placeholder
# VULNERABLE: executes arbitrary stored Python code
exec(component_src, {"__name__": "__component__"})Patched code sample
import json
def run_component(workflow_id: str, component_id: str):
# Retrieve stored component source (as string) from the workflow definition
component_src = get_component_source(workflow_id, component_id) # placeholder
# FIX: only execute code that is explicitly whitelisted
allowed_prefix = "def component(entry):"
if component_src.strip().startswith(allowed_prefix):
exec(component_src, {"__name__": "__component__"})
else:
raise PermissionError("Unauthorized component code")Cite this entry
@misc{vaitp:cve202618894,
title = {{Remote code execution via stored Python component in public IBM Langflow workflows.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-18894},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-18894/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
