Detect CVE-2026-33017: Langflow Code Injection Vulnerability in Sumo Logic CSE
Detects exploitation of CVE-2026-33017, a code injection vulnerability in Langflow that allows unauthenticated or low-privileged attackers to execute arbitrary code via the Langflow API. The vulnerability stems from improper input validation (CWE-94/CWE-95) combined with missing authentication controls (CWE-306), enabling remote code execution against Langflow instances. This CVE is on the CISA KEV list, indicating active exploitation in the wild.
MITRE ATT&CK
Sumo Detection Query
_sourceCategory=web* OR _sourceCategory=proxy* OR _sourceCategory=nginx* OR _sourceCategory=apache*
| where (%"dest_port" in ("7860", "7861", "3000") or %"server_port" in ("7860", "7861", "3000"))
| where %"uri_path" matches "/api/v1/run*" or %"uri_path" matches "/api/v1/process*" or %"uri_path" matches "/api/v1/predict*" or %"uri_path" matches "/api/v1/build*"
| where %"request_body" matches "*__import__*" or %"request_body" matches "*exec(*" or %"request_body" matches "*eval(*" or %"request_body" matches "*os.system*" or %"request_body" matches "*subprocess*" or %"request_body" matches "*__builtins__*"
| eval risk = if(%"request_body" matches "*__import__*os*", "critical", if(%"request_body" matches "*subprocess*", "critical", "high"))
| count as hit_count by %"src_ip", %"dest_ip", %"uri_path", risk
| order by hit_count desc Sumo Logic query for detecting CVE-2026-33017 exploitation attempts against Langflow API endpoints by identifying HTTP request bodies containing Python code injection patterns.
Data Sources
Required Tables
False Positives & Tuning
- Langflow flow development involving legitimate Python code components submitted via the API
- Automated testing frameworks that exercise Langflow's code execution capabilities
- Security scanning tools performing vulnerability assessments against Langflow instances
Other platforms for CVE-2026-33017
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Langflow API Code Injection via /api/v1/run - OS Command Execution
Expected signal: Web server access log entry showing POST to /api/v1/run with a request body containing 'subprocess' and 'shell=True'. EDR should capture a child process (sh or bash) spawned by the Langflow Python/uvicorn process.
- Test 2Langflow Unauthenticated API Access Check - Missing Auth Bypass (CWE-306)
Expected signal: Web server access log showing a GET request to /api/v1/flows from an external IP with a 200 OK response and no Authorization header present.
- Test 3Langflow Code Injection via eval() - Python Builtin Abuse
Expected signal: HTTP POST request to /api/v1/process containing '__import__' and 'os.system' in the request body. File creation event for /tmp/pwned_cve_2026_33017.txt on the Langflow host. EDR should capture os.system call from the Python process.
- Test 4Langflow Reverse Shell Payload Simulation
Expected signal: Outbound TCP connection from the Langflow host to the attacker IP on port 4444. EDR process event showing /bin/sh spawned by uvicorn/gunicorn with stdin/stdout redirected to a socket. Network flow record of the connection in firewall or NDR logs.
Unlock Pro Content
Get the full detection package for CVE-2026-33017 including response playbook, investigation guide, and atomic red team tests.