Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1336.
Summary
Flask-Reuploaded provides file uploads for Flask. A critical path traversal and extension bypass vulnerability in versions prior to 1.5.0 allows remote attackers to achieve arbitrary file write and remote code execution through Server-Side Template Injection (SSTI). Flask-Reuploaded has been patched in version 1.5.0. Some workarounds are available. Do not pass user input to the `name` parameter, use auto-generated filenames only, and implement strict input validation if `name` must be used.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jugmac00 | flask-reuploaded | before 1.5.0 | 1.5.0 | Patch available | CNA |
| — | flask-reuploaded (PyPI) | before 1.5.0 | 1.5.0 | Patch available | GHSA-65mp-fq8v-56jr |
- flask-reuploaded Vendorjugmac00 Affected before 1.5.0 Fixed in 1.5.0 Patch available CNA
- flask-reuploaded (PyPI) Vendor— Affected before 1.5.0 Fixed in 1.5.0 Patch available GHSA-65mp-fq8v-56jr
Remediation
- Fix · CNA flask-reuploaded (jugmac00) Fixed in 1.5.0
- Fix · GHSA-65mp-fq8v-56jr flask-reuploaded (PyPI) Fixed in 1.5.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27641
- 2026-10-03 Alias added: GHSA-65mp-fq8v-56jr
References
Patch 2
Sources
- CVE-2026-27641 · CVE Program
- CVE-2026-27641 · NVD
- FIRST EPSS
- GHSA-65mp-fq8v-56jr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences