RCE in IBM Langflow Oss
CVE-2026-12940
IBM Langflow OSS 1.0.0 through 1.10.1 are vulnerable to unauthenticated remote code execution via environment variable injection in the MCP (Model Context Protocol) stdio launcher. The vulnerability exists in src/lfx/src/lfx/base/mcp/util.py where the DANGEROUS_ENV_VARS blocklist fails to include SHELLOPTS , BASHOPTS , and PS4 environment variables.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.009, 61.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- IBM Langflow Oss — versions 1.0.0
- Langflow
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- BiiTts/CVE-2026-12940-Langflow-Unauth-RCE (4 stars, last pushed 2026-08-03): CVE-2026-12940 — Langflow OSS <=1.10.1 unauthenticated RCE via MCP stdio environment-variable injection (SHELLOPTS/PS4). Author PoC + source analysis + lab.
References
- www.ibm.com/support/pages/node/7279995 (vendor-advisory, patch, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.