CVE-2026-5027
Langflow - Path Traversal Arbitrary File Write via upload_user_file
Description
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 ('../').
In plain language
AI Act nowCVE-2026-5027 is a Langflow flaw that lets an internet attacker write files to arbitrary places on your server, and it is actively being exploited—so if you run Langflow that’s exposed to the internet, you should treat this as urgent.
CVE-2026-5027 is a path traversal/arbitrary file write in Langflow’s file upload handling (“upload_user_file” / POST /api/v2/files) caused by missing filename sanitization; attackers can send network requests to traverse directories and write files, with reported unauthenticated access that can lead to session token acquisition and remote code execution (RCE).
What to do now
- Check whether your Langflow instance is reachable from the public internet (not just internal networks) and whether POST /api/v2/files is accessible externally.
- Restrict access immediately (IP allowlist/VPN only) so only trusted users or networks can reach Langflow.
- Review server access logs around the time of any suspicious activity for unusual POST requests to /api/v2/files and abnormal multipart upload patterns.
- Ensure you have a plan to apply the official Langflow fix as soon as it is released (no fixed version is available yet based on current information).
- If you cannot quickly restrict external access, consider temporarily shutting down the exposed Langflow service until the patch is available.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:LPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
2 techniquesReferences
- Hackers Exploit Windmill Flaw to Read Arbitrary Server Files Without Authenticationen·The Hacker News· Exploited Windmill platform web-app
- New NadMesh Botnet Hunts Exposed AI Services for Cloud Keys and Kubernetes Tokensen·The Hacker News· Research ComfyUI malware
- CISA orders feds to prioritize patching Langflow auth bypass flawen-us·BleepingComputer· Exploited Langflow ai-ml
- CISA Adds 4 Actively Exploited Adobe, Joomla, and Langflow Flaws to KEVen·The Hacker News· Exploited Adobe ColdFusion web-app
- Langflow RCE Exploited to Deploy Monero Miner on Exposed AI App Endpointsen·The Hacker News· Exploited Langflow ai-ml
- ⚡ Weekly Recap: Chrome 0-Day, UniFi Exploits, macOS Stealers, VPN Flaw and Moreen·The Hacker News· Exploited Chrome (V8) UNC6240 (ShinyHunters)
- Hackers Exploit Langflow Vulnerability for Remote Code Executionen-us·SecurityWeek· Exploited Langflow ai-ml
- Path traversal flaw in AI dev platform Langflow exploited in attacksen-us·BleepingComputer· Exploited Langflow MuddyWater (mentioned in context of other Langflow vulns)
- Unpatched Langflow Flaw CVE-2026-5027 Exploited for Unauthenticated RCEen·The Hacker News· Exploited Langflow MuddyWater (mentioned as exploiting a different Langflow vuln)
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2026-5027 and every CVE in our database. Create a free account — no credit card required.
Create Free Account