Langflow
Langflow - Path Traversal Arbitrary File Write via upload_user_file
The 'POST /api/v2/files' endpoint does not sanitize the 'filename' parameter from the multipart form data, allowing an attacker to write files to arbitrary locations on the filesystem using path traversal sequences ('../').
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- 0
Mitigation
The record names no fix. Check the vendor advisory below.
Timeline
Days relative to CVE publicationFirst public PoC 5.8 days after publication; not in CISA KEV. First PoC: yahiahamza/CVE-2026-5027 (created 2 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.10 PoCs
PoCs 10
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| yahiahamza/CVE-2026-5027 | 2 Apr 2026 +5.8 d | 4 | PoC |
| min8282/CVE-2026-5027 | 3 Apr 2026 +6.8 d | 0 | PoC |
| EQSTLab/CVE-2026-5027 | 3 Apr 2026 +6.8 d | 3 | PoC |
| 0xBlackash/CVE-2026-5027 | 3 Apr 2026 +7.1 d | 0 | PoC |
| 0xredash/CVE-2026-5027 | 3 Apr 2026 +7.1 d | 0 | PoC |
| ashrafzaryouh/CVE-2026-5027 | 3 Apr 2026 +7.1 d | 0 | PoC |
| Layer-6/CVE-2026-5027-Langflow | 10 Jun 2026 +75 d | 0 | PoC |
| HORKimhab/CVE-2026-5027 | 11 Jun 2026 +76 d | 0 | PoC via PoC Index |
| yym8538/CVE-2026-5027 | 21 Aug 2026 +147 d | 1 | PoC |
| rmhowe425/POC-CVE-2026-5027 | 2 Sep 2026 +159 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Langflow 1.8.4 - Path Traversal to Remote Code Execution | 31 Aug 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Langflow <= 1.8.4 - Path Traversal to RCE via File Upload | 9 Jun 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 10 PoC reposPOST /api/v2/files
- Key headers
Authorization: Bearer {var}- Body markers
------WebKitFormBoundaryxxx Content-Disposition: form-data; name="file"; filename="../../../tmp/CVE-2026-5027-nuclei-proname="file"inmultipart/form-data; boundary=----WebKitFormBoundaryxxx- Ports
- 7860, 9013
- Seen in
- 7 repos: 0xBlackash/CVE-2026-5027, 0xredash/CVE-2026-5027, EQSTLab/CVE-2026-5027, ashrafzaryouh/CVE-2026-5027, min8282/CVE-2026-5027, yahiahamza/CVE-2026-5027, yym8538/CVE-2026-5027
- Evidence
- 0xBlackash/CVE-2026-5027/CVE-2026-5027.yaml:12 0xredash/CVE-2026-5027/CVE-2026-5027.yaml:12 EQSTLab/CVE-2026-5027/CVE-2026-5027.py:113 ashrafzaryouh/CVE-2026-5027/CVE-2026-5027.yaml:12 min8282/CVE-2026-5027/poc.py:84 yahiahamza/CVE-2026-5027/exploit.py:83
GET /api/v1/auto_login
POST /api/v1/login
- Body markers
"username""password"inapplication/json- Ports
- 7860, 9013
- Seen in
- 4 repos: EQSTLab/CVE-2026-5027, min8282/CVE-2026-5027, yahiahamza/CVE-2026-5027, yym8538/CVE-2026-5027
- Evidence
- EQSTLab/CVE-2026-5027/CVE-2026-5027.py:95 min8282/CVE-2026-5027/poc.py:66 yahiahamza/CVE-2026-5027/exploit.py:65 yym8538/CVE-2026-5027/CVE-2026-5027.py:95
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v2/files(?:[?#].*)?$
(?i)^/api/v1/auto_login(?:[?#].*)?$
(?i)^/api/v1/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [7860,9013] (msg:"GG PoC-Monitor CVE-2026-5027 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v2/files"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"------WebKitFormBoundaryxxx Content-Disposition: form-data|3b| name=|22|file|22||3b| filename=|22|../../../tmp/CVE-2026-5027-nuclei-pro"; http.request_body; content:"name=|22|file|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-5027; classtype:web-application-attack; sid:9384857; rev:1;)
alert http any any -> $HOME_NET [7860,9013] (msg:"GG PoC-Monitor CVE-2026-5027 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/auto_login"; reference:url,poc.griffinguard.io/cve/CVE-2026-5027; classtype:web-application-attack; sid:9074988; rev:1;)
alert http any any -> $HOME_NET [7860,9013] (msg:"GG PoC-Monitor CVE-2026-5027 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/login"; http.request_body; content:"|22|username|22|"; http.request_body; content:"|22|password|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-5027; classtype:web-application-attack; sid:9447078; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: langflow-ai langflow exploit attempt (CVE-2026-5027)
id: gg-pocmon-cve-2026-5027-9384857
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5027. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5027
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v2/files'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5027
title: langflow-ai langflow exploit attempt (CVE-2026-5027)
id: gg-pocmon-cve-2026-5027-9074988
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5027. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5027
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/auto_login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5027
title: langflow-ai langflow exploit attempt (CVE-2026-5027)
id: gg-pocmon-cve-2026-5027-9447078
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5027. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5027
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5027