langflow
Langflow 1.8.4 installed via pip, running on port 9013 with auto-login enabled. It contains a path traversal vulnerability in the /api/v2/files endpoint that allows arbitrary file writes.
Dockerfile:14-15Dockerfile:24-28File viewing is interactive and short-lived. Downloads are password-protected ZIP archives using password eip.
A Python script that exploits CVE-2026-5027, a path traversal vulnerability in Langflow <= 1.8.4, to achieve arbitrary file write and remote code execution via a cron job reverse shell.
No backdoor observed in reviewed code
The PoC script CVE-2026-5027.py implements a straightforward path-traversal exploit against the Langflow /api/v2/files endpoint, consistent with the described CVE-2026-5027. It obtains an access token via auto-login or credentials, constructs a traversal filename, and writes attacker-controlled content (a proof file or a cron-based reverse shell) to the target server. No concealed backdoor, unrelated payload, or deceptive behavior targeting the PoC operator was observed. The Dockerfile and README.md provide supporting lab setup and documentation without hidden commands.
The primary artifact is a Python script that actively exploits CVE-2026-5027 by performing path traversal to write arbitrary files and establish a reverse shell, which is the definition of exploit code.
CVE-2026-5027.py:1-3CVE-2026-5027.py:125-126CVE-2026-5027.py:144-158CVE-2026-5027.py:10-13CVE-2026-5027.py:79-89CVE-2026-5027.py:113-114CVE-2026-5027.py:79-103CVE-2026-5027.py:109-110CVE-2026-5027.py:106-115CVE-2026-5027.py:144-158CVE-2026-5027.py:163-175CVE-2026-5027.py:147-150CVE-2026-5027.py:109-110CVE-2026-5027.py:82This review is limited to the supplied PoC code and context. It does not assert that the code works or is safe to execute.
A Dockerized lab environment running Langflow 1.8.4 on Ubuntu 24.04, configured with auto-login and a custom entrypoint that monitors /etc for new cron files and executes them. The environment is designed to demonstrate CVE-2026-5027, a path traversal vulnerability in Langflow's file upload endpoint.
Dockerfile:1-37docker-entrypoint.sh:1-10watch-etc-cron-files.sh:1-30The README explicitly describes the repository as a proof-of-concept for CVE-2026-5027, a path traversal vulnerability in Langflow. The Dockerfile builds a vulnerable Langflow instance with auto-login enabled, and the included Python script exploits the vulnerability to achieve arbitrary file write and remote code execution via cron. The custom entrypoint scripts facilitate the cron-based RCE demonstration.
README.md:1-10CVE-2026-5027.py:1-20Langflow 1.8.4 installed via pip, running on port 9013 with auto-login enabled. It contains a path traversal vulnerability in the /api/v2/files endpoint that allows arbitrary file writes.
Dockerfile:14-15Dockerfile:24-28Starts the watch-etc-cron-files.sh script in the background, launches the cron daemon, and then executes langflow. This enables the cron-based RCE demonstration by monitoring /etc for new cron files.
docker-entrypoint.sh:1-10Uses inotifywait to watch /etc for new files matching 'cron*' and immediately executes them with /bin/sh. This is the mechanism that triggers the reverse shell payload written by the exploit.
watch-etc-cron-files.sh:1-30Python script that exploits the Langflow path traversal vulnerability. It obtains an access token via auto-login, then writes arbitrary files (proof-of-concept or reverse shell cron job) to the target filesystem using path traversal in the filename parameter.
CVE-2026-5027.py:1-211Supported by supplied evidence
The README and exploit script describe a path traversal vulnerability in Langflow <= 1.8.4's /api/v2/files endpoint. The Dockerfile installs Langflow 1.8.4, and the exploit script demonstrates writing files outside the intended directory using '../' sequences. The custom entrypoint scripts provide a plausible RCE path via cron, consistent with the CVE description.
README.md:10-14CVE-2026-5027.py:1-20Dockerfile:14-15README.md:20-28README.md:26-28CVE-2026-5027.py:130-140README.md:22-24README.md:26-28README.md:34-40All visible behavior is directed at the lab's own vulnerable Langflow target. The exploit script writes files to the container's filesystem and deploys a cron-based reverse shell, which is the documented exercise. There is no evidence of host compromise, external targeting, credential theft, or concealed malicious behavior. The custom entrypoint scripts are part of the lab setup to facilitate the RCE demonstration.
CVE-2026-5027.py:100-140watch-etc-cron-files.sh:1-30This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.