{
  "id": "CVE-2026-27966",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-27966",
  "published_at": "2026-02-26T01:55:18.58Z",
  "title": "Langflow has Remote Code Execution in CSV Agent",
  "vendor": "langflow-ai",
  "product": "langflow",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-03-03T15:12:34Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 5.6,
    "repo": "Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.8.0, the CSV Agent node in Langflow hardcodes `allow_dangerous_code=True`, which automatically exposes LangChain’s Python REPL tool (`python_repl_ast`). As a result, an attacker can execute arbitrary Python and OS commands on the server via prompt injection, leading to full Remote Code Execution (RCE). Version 1.8.0 fixes the issue.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow",
      "url": "https://github.com/Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow",
      "created_at": "2026-03-03T15:12:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-02-14T13:20:08Z"
    },
    {
      "repo": "shinthink/CVE-2026-27966",
      "url": "https://github.com/shinthink/CVE-2026-27966",
      "created_at": "2026-07-05T19:59:34Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-06-09T16:07:10Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "langflow-ai",
        "product": "langflow",
        "ranges": [
          "\u003c 1.8.0"
        ],
        "fixed_in": [
          "1.8.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade langflow to 1.8.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/langflow-ai/langflow/security/advisories/GHSA-3645-fxcv-hqr4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/langflow-ai/langflow/commit/d8c6480daa17b2f2af0b5470cdf5c3d28dc9e508"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/langflow_rce_cve_2026_27966.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Langflow RCE (exploit/multi/http/langflow_rce_cve_2026_27966)",
      "published_at": "2026-04-09T13:12:10Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/v1/auto_login",
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-27966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-27966/README.md:93"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/flows/basic_examples/",
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-27966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-27966/README.md:214"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/version",
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-27966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-27966/README.md:208"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/{var}",
      "query_markers": [
        "c=id"
      ],
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-27966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-27966/cve_2026_27966.py:173"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/build/{var}/vertices",
      "body_markers": [
        "\"id\":\"bkdr\"",
        "\"type\":\"CustomComponent\"",
        "\"data\"",
        "\"code\"",
        "\"display_name\":\"X\""
      ],
      "content_type": "application/json",
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-27966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-27966/README.md:220"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/custom_component",
      "body_markers": [
        "\"name\"",
        "\"code\":\"\"\"from fastapi import APIRouter, Query\"",
        "\"display_name\":\"X\""
      ],
      "content_type": "application/json",
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-27966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-27966/cve_2026_27966.py:171"
      ]
    }
  ],
  "rules": []
}
