Kritisch

Langflow: BaseFileComponent-based nodes arbitrary file read with RCE exploit

  • Veröffentlicht: 19.06.2026
  • Aktualisiert: 11.10.2026 12:20

Summary

All components based on BaseFileComponent are vulnerable to the following vulnerability:

  1. Docling (DoclingInlineComponent)
  2. Docling Serve (DoclingRemoteComponent)
  3. Read File (FileComponent)
  4. NVIDIA Retriever Extraction (NvidiaIngestComponent)
  5. Video File (VideoFileComponent)
  6. Unstructured API (UnstructuredComponent)

For clarity, from now on I'll only refer to Read File component.

The Read File node processes user-controlled files. Example scenario is a RAG chatbot - a system that allows users of an organization to ask questions about documents saved in the organizations.

By controlling a files that are digested into the RAG, an attacker can direct the node to read any file on the file-system by absolute path.

Using this vulnerability an attacker can acheive RCE:

  1. Upload a file that directs the node to read Langflow's secret_key file containing the JWT token secret.
  2. This would allow the attacker then to simply task the Chatbot for the JWT secret.
  3. Using this secret, the attacker then crafts a JWT token for any user-id, bypassing authentication.
  4. Code execution is then trivial - simply create a new flow with "Python Interpreter" node, fill it with arbitrary Python code and execute it.

Tested on commit 2d67402b1dbaefcbce85a244d4a6cd5e4bda1cfe

Details

The vulnerability is in: langflow/src/lfx/src/lfx/base/data/base_file.py Specifically in _unpack_bundle. This function extracts tar files, which can contain a symlink. This symlink can point to any file in the filesystem. Then, in self.process_files(), the file pointed by the symlink will be parsed and saved into the RAG. This can be done with unlimited number of symlinks in the same tar which can also be useful in some scenarios.

Suggestd fix - iterate over the files and make sure all are regular files or directories.

PoC

Reproduction:

  1. Create a flow with Read File (or any other affected components), and connect its output to some storage such as Chroma DB.
  2. Create a symlink pointing to any file. For the above exploit, point the symlink to langflow's JWT token file.
  3. Compress this symlink with tar.
  4. Upload it to the Read File component.
  5. Check the database, or ask a Chatbot connected to this vector database for the contents of the file.

Concrete PoC:

  • Flow with RAG ingestion and a Chatbot around it: Vector Store RAG.json
  • Exploit tar: archive.tar.txt (remove .txt, GitHub blocked .tar)
  • Create a file /tmp/trip.docx with any contents in it
  • Ingest the file in the flow above, and ask the Chatbot a question about this file.

A demo showing the attack: https://github.com/user-attachments/assets/af00f700-f13f-4eac-848e-8afd11fb9297 In the demo the attacker steals Langflow secret key used to sign JWTs. The second stage of the attack, not shown in the demo, is using this key to sign a JWT token and executing Python code on the server using the Python code interpreter node.

Impact

Any Langflow user using any of the above mentioned components to ingest user-controlled data is affected. Depending on exact scenario, the user can also be exposed to an RCE risk.

Patches

Fixed in 1.9.2 via PR #12945. BaseFileComponent._unpack_bundle now rejects symlink and hardlink members (and any non-regular entries) during TAR extraction, with additional defensive symlink filtering during directory recursion and after extraction. Upgrade to 1.9.2 or later.

Ori Lahav Security Researcher @ Rubrik Inc.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) langflow < 1.9.2 1.9.2

Verweise

CVSS-Wert 9.6/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Schwäche (CWE)
CWE-200, CWE-61
Plattform
Python (PyPI)
Paket
langflow
Veröffentlicht
19.06.2026
Aktualisiert
11.10.2026 12:20

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-ccv6-r384-xp75 - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-378 - PyPA Advisory Database; CC BY 4.0

Schwachstellenhistorie: langflow

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (42) im Archiv
Einträge insgesamt
42
Erste → letzte
06.2024 10.2026
Ohne Fix
7
In Angriffen ausgenutzt
5

Verteilung nach Schweregrad

  • Kritisch 15
  • Hoch 17
  • Mittel 7
  • Niedrig 3

Veröffentlichungen pro Jahr

  1. 2024: 4
  2. 2025: 5
  3. 2026: 33
Schweregrad:
  1. Kritisch · 9.1 CVE-2026-9205 < 1.10.1 1.10.1
  2. Kritisch · 9.8 CVE-2026-8505 >= 1.7.0, < 1.9.1 1.9.1
  3. Hoch · 8.8 CVE-2026-7700 >= 1.3.0, < 1.10.3 1.10.3
  4. Langflow: BaseFileComponent-based nodes arbitrary file read with RCE exploit dieser Eintrag
    Kritisch · 9.6 CVE-2026-55447 < 1.9.2 1.9.2
  5. Kritisch · 9.6 CVE-2026-48519 < 1.9.2 1.9.2
  6. Kritisch · 9.6 CVE-2026-42048 < 1.9.0 1.9.0
  7. Hoch · 7.5 CVE-2026-33484 >= 1.0.0, < 1.9.0 1.9.0
  8. Kritisch · 9.9 CVE-2026-33309 >= 1.2.0, < 1.9.0 1.9.0
  9. Kritisch · 9.8 In Angriffen ausgenutzt CVE-2026-33017 < 1.9.0 1.9.0
  10. Kritisch · 9.8 CVE-2026-27966 <= 1.8.0rc2 keine Korrektur
  11. Hoch In Angriffen ausgenutzt CVE-2026-0770 <= 1.7.3 keine Korrektur
  12. Hoch · 7.7 CVE-2025-68477 < 1.7.1 1.7.1
  13. Hoch · 7.1 CVE-2025-68478 < 1.7.1 1.7.1
  14. Kritisch In Angriffen ausgenutzt CVE-2025-3248 < 1.3.0 1.3.0

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.