Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-5027: Langflow File Upload Path Traversal Leading to Remote Code Execution

Published Mar 27, 2026 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS5.4%93rd percentile
CISA KEVNoNot listed
In the wildReported20 exploitation records in Mallory
Vendor
Langflow
IdentifiersCVE-2026-5027CWE-22 · Improper Limitation of a Pathname…

CVE-2026-5027 is a path traversal vulnerability in Langflow's file upload handler. The handler accepts an attacker-controlled filename from multipart form data and passes it to the storage service without adequately validating traversal sequences. Combining this filename with the storage directory allows uploaded data to be written outside the intended location, subject to the application's filesystem permissions. Arbitrary file writes can lead to remote code execution by placing files where server-side mechanisms subsequently execute them. Although the endpoint requires a session, Langflow's default unauthenticated auto-login permits attackers to obtain a valid session token without credentials. The vulnerability is actively exploited.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises filesystem integrity and can lead to remote code execution, persistence, credential theft, and unauthorized remote access. Attackers can place executable scheduled tasks or SSH authorization material where filesystem permissions and host configuration permit. Compromise can expose credentials and sensitive information accessible to Langflow, including connected AI-provider and cloud-service credentials. Observed exploitation of this vulnerability included deployment of a Python credential harvester, proxy agents, and SimpleHelp remote-access software. Execution privileges depend on the affected deployment and the mechanism used to execute attacker-written files; root access is not an inherent consequence.

Mitigation

If you can’t patch tonight, do this now.

Disable unauthenticated auto-login by setting LANGFLOW_AUTO_LOGIN=false and enforce authentication. This reduces unauthenticated exposure but does not correct the arbitrary-file-write flaw for authenticated attackers. Restrict Langflow access to trusted internal networks or VPNs and remove unnecessary public exposure. Monitor multipart uploads for raw or encoded filename traversal sequences, unexpected writes outside application storage, changes to scheduled tasks, and anomalous outbound connections.

Remediation

Patch, then assume compromise.

Upgrade Langflow to version 1.10.0 or a newer supported release. Fixes are also identified in Langflow 1.9.0 and langflow-base 0.8.3; ensure the deployed application and underlying package both contain the correction. On potentially compromised systems, investigate unauthorized file writes, scheduled tasks, SSH authorization changes, credential-harvesting tools, proxy agents, and remote-access software. Remove unauthorized persistence and rotate credentials exposed to the compromised service.

Public exploits

Exploits

7 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
CVE-2026-5027Small standalone Python exploit repository for CVE-2026-5027 targeting Langflow <= 1.8.4. Repository contains three files: a README describing the vulnerability and usage, a single executable exploit script (exploit.py), and requirements.txt listing the requests dependency. The exploit is not part of a larger framework. The main capability is arbitrary file write via path traversal in Langflow's multipart upload handling at POST /api/v2/files. The script first obtains an access token either by calling /api/v1/auto_login (default unauthenticated path) or by authenticating to /api/v1/login with provided credentials. It then abuses the filename field in the multipart upload by prepending repeated ../ traversal segments to a chosen remote path, allowing writes outside the intended storage directory. Two operating modes are implemented: (1) proof-of-concept mode writes a timestamped marker file to /tmp/CVE-2026-5027-proof.txt to confirm traversal and arbitrary write; (2) exploitation mode overwrites /etc/crontab with a cron payload that runs /bin/bash and connects back to an attacker-supplied lhost:lport using bash's /dev/tcp feature, yielding root-level remote code execution if cron processes the file. The exploit reports the returned server-side path from the API response and prints a completion summary. Overall, this is a real exploit rather than a detector. It is operational and weaponized enough for direct use against exposed Langflow instances, but payload customization is limited to the supplied reverse-shell host and port.yahiahamza · Disclosed Apr 2, 2026 · python · web · networkOperationalCVE-2026-5027Small standalone exploit repository with 2 files: a README describing CVE-2026-5027 and a single Python exploit script, poc.py. The script targets Langflow <= 1.8.4 and abuses path traversal in the multipart filename sent to POST /api/v2/files, allowing arbitrary file write outside the intended upload directory. The exploit first attempts to obtain an access token either through unauthenticated auto-login at /api/v1/auto_login or via credentialed login at /api/v1/login. It then crafts a filename prefixed with repeated ../ sequences and uploads attacker-controlled content to an arbitrary server path. Two modes are implemented: a proof mode that writes /tmp/CVE-2026-5027-proof.txt, and an RCE mode that writes a cron file under /etc/cron.d/ containing a bash reverse shell to an attacker-supplied host and port. The code is operational rather than a simple detector because it performs the full exploitation chain and includes a working payload. The repository is not part of a larger exploit framework.min8282 · Disclosed Apr 3, 2026 · markdown · python · web · networkOperationalCVE-2026-5027Repository contains a working Python exploit and a Dockerized lab environment for CVE-2026-5027, a Langflow <= 1.8.4 path traversal/arbitrary file write vulnerability. The main exploit file, CVE-2026-5027.py, performs a two-stage attack: it first obtains a bearer token either from unauthenticated auto-login at /api/v1/auto_login or via credentials at /api/v1/login, then abuses POST /api/v2/files by supplying a multipart filename prefixed with repeated ../ traversal sequences to write attacker-controlled content outside the upload directory. The exploit supports two outcomes: a safe proof mode that writes /tmp/CVE-2026-5027-proof.txt, and an RCE mode that writes a cron file under /etc/cron.d containing a bash reverse shell to an attacker-supplied host and port. The payload path is randomized with timestamp and sanitized host components to avoid filename deduplication. Repository structure is small and purpose-built: one Python exploit, one README, and three lab-support files. The Dockerfile builds an Ubuntu-based vulnerable environment with langflow==1.8.4, cron, and inotify-tools, and enables LANGFLOW_AUTO_LOGIN=True on port 9013. docker-entrypoint.sh starts a watcher and cron before launching Langflow. watch-etc-cron-files.sh monitors /etc for files whose names begin with cron and executes them with /bin/sh, making exploitation in the lab immediate and deterministic. Overall, this is an operational exploit PoC for unauthenticated or weakly authenticated arbitrary file write leading to remote code execution in Langflow deployments, especially those with auto-login enabled and writable sensitive filesystem locations.EQSTLab · Disclosed Apr 3, 2026 · python · dockerfile · web · networkOperationalCVE-2026-5027Repository contains a small exploit set for alleged CVE-2026-5027 affecting Langflow. The main artifact is CVE-2026-5027.py, a standalone Python exploit that first attempts an unauthenticated/auto-login flow against /api/v2/login and /api/v2/auth, then abuses POST /api/v2/files by supplying a traversal filename in multipart upload data. It supports two modes: a safer proof mode that writes a marker file into /tmp, and an RCE mode that writes ../../../etc/crontab with a cron entry executing a bash reverse shell to an attacker-supplied host and port. The repository also includes CVE-2026-5027.yaml, a Nuclei template that targets the same /api/v2/files endpoint and attempts a proof write to ../../../tmp/CVE-2026-5027-nuclei-proof.txt, primarily for scanning/validation. README.md documents the vulnerability, usage, and expected outcomes. Overall, this is an operational web/network exploit for arbitrary file write leading to Linux RCE, with both exploitation and scanning components present.0xBlackash · Disclosed Apr 3, 2026 · Framework: nuclei · python · yaml · web · networkOperationalCVE-2026-5027-LangflowThis is a small standalone exploit repository with two files: a brief README and a single Python script, exploit.py, which is the main entry point. The script targets Langflow via CVE-2026-5027 and is designed as an end-to-end exploitation tool rather than a simple detector. It builds a requests session, points at the target upload API under /api/v2/files, and first performs multiple path traversal write tests against Linux and Windows-style filesystem paths to determine whether arbitrary file write is possible. If the target appears vulnerable, the script attempts to deploy a PHP webshell into common webroot locations using traversal-based filenames. The embedded PHP payload is password protected with the hardcoded password 'haji', supports arbitrary command execution through the cmd parameter, supports file upload through field f, and otherwise returns phpinfo(). The script also contains a Python reverse-shell template that would connect back to an operator-controlled host and port and spawn /bin/bash. The truncated tail of the script still clearly shows interactive post-exploitation workflow: after shell deployment it offers privilege-escalation reconnaissance, backdoor user creation, firewall bypass/disable actions, and cleanup/track removal. It finally prints the shell URL, password, and an example command invocation. Overall, this repository is an operational exploit for web-based remote compromise through arbitrary file write/path traversal, followed by webshell-based command execution and persistence-oriented post-exploitation.Layer-6 · Disclosed Jun 10, 2026 · python · markdown · web · networkOperationalCVE-2026-5027This five-file repository provides a Python proof of concept for a claimed Langflow <= 1.8.4 path-traversal flaw, CVE-2026-5027. `CVE-2026-5027.py` is the primary entry point: it obtains a bearer token via `/api/v1/auto_login` or supplied credentials via `/api/v1/login`, then submits a multipart request to `/api/v2/files` with a filename prefixed by nine `../` sequences. It can either write a proof marker to `/tmp` or drop a cron configuration in `/etc/cron.d` that initiates a Bash TCP reverse shell. The repository also contains a Docker lab. Its Dockerfile installs `langflow==1.8.4`, exposes port 9013, enables `LANGFLOW_AUTO_LOGIN=True`, and configures known superuser credentials. `docker-entrypoint.sh` starts cron and Langflow. `watch-etc-cron-files.sh` additionally watches `/etc` and executes newly written files whose names begin with `cron`; this watcher is lab support and is not required by the primary payload, whose generated name begins with `langflow_` and is intended for normal cron processing. The README documents the alleged root cause and container usage. The exploit is operational rather than merely diagnostic because it includes a hardcoded, parameterized reverse-shell payload; it is not tied to a recognized exploitation framework.yym8538 · Disclosed Aug 21, 2026 · python · shell · networkOperationalPOC-CVE-2026-5027This is a small standalone Python proof-of-concept repository for the claimed Langflow CVE-2026-5027 file-upload/authenticated-RCE issue. It contains only `README.md`, which provides invocation syntax, and `poc.py`, the executable exploit. The script uses Python `requests` and command-line arguments (`-u`, `-c`, and optional `-a`). Its flow is: request an automatically issued bearer token from `/api/v1/auto_login`; call `/api/v1/users/whoami` to obtain the user UUID; upload `_mcp_servers_<UUID>.json` to `/api/v2/files` with `append=True`; and request `/api/v2/mcp/servers?action_count=True` to trigger processing. The uploaded JSON defines an MCP server named `malicious` whose `command` and first `args` element are entirely user controlled. It is an active command-execution exploit rather than merely a vulnerability check, but it has minimal reliability handling and does not implement a reverse shell, persistence mechanism, or post-exploitation automation. The code identifies Langflow 1.8.4 in its title, claims applicability to versions below 1.9.0, and states it was tested on Ubuntu 22.04.rmhowe425 · Disclosed Sep 2, 2026 · python · webOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LangflowLangflowapplication
FAQ

Frequently asked questions

Is CVE-2026-5027 exploited in the wild?
Yes. As of Oct 23, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2026-5027?
Yes. Mallory tracks 7 public exploits or proofs of concept for CVE-2026-5027, the earliest disclosed Apr 2, 2026.
Is there a patch for CVE-2026-5027?
Upgrade Langflow to version 1.10.0 or a newer supported release. Fixes are also identified in Langflow 1.9.0 and langflow-base 0.8.3; ensure the deployed application and underlying package both contain the correction.
What products are affected by CVE-2026-5027?
Langflow.
How severe is CVE-2026-5027?
CVE-2026-5027 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 5.4% (93rd percentile) as of Oct 23, 2026.
Activity feed

Recent activity

100 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+12 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware4Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity83Community discussion across Reddit, Mastodon, and other social sources.