Flask
CVE-2026-27641
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted file upload request
-
ExploitBypass extension validation via path traversal
-
ExecutionInject malicious template syntax
-
ImpactExecute arbitrary code via SSTI
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Flask-Reuploaded versions prior to 1.5.0 with user-controlled |
| Impact | CVSS 9.8. Flask-Reuploaded is a file upload library — bypass enables web shell upload and RCE. |
| Exploit ScenarioDerived | Attacker uploads PHP/Python web shell by bypassing extension validation and path restrictions, achieves RCE on the server. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Path traversal and extension bypass in Flask-Reuploaded file upload library. Allows uploading files with arbitrary extensions to arbitrary directories. PoC and patch available.
Earlier versions of this analysis (1)
Path traversal and extension bypass in Flask-Reuploaded.
RemediationAI
Update Flask-Reuploaded. Implement server-side extension validation and restrict upload directories.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-1336 in Flask-Reuploaded. File upload validation can be bypassed to upload files with dangerous extensions (.php, .py) to arbitrary directories.
Know when Flask gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
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.
Executive ViewAI
A critical vulnerability in Flask-Reuploaded allows attackers to execute arbitrary code on affected systems through malicious file uploads, potentially compromising applications and exposing sensitive data. Organizations using this library in production environments face immediate risk of complete system compromise if not addressed urgently.
Apply vendor patch. If immediate patching is impossible: implement Web Application Firewall (WAF) rules to block suspicious file upload payloads and Server-Side Template Injection (SSTI) patterns; restrict file upload functionality to trusted users only; enforce strict input validation and file type restrictions; monitor and log all file upload activities for forensic analysis; consider disabling the affected upload feature until patched.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
Reflected XSS in changedetection.io versions prior to 0.54.4 allows unauthenticated remote attackers to inject malicious
changedetection.io versions before 0.54.1 are vulnerable to reflected cross-site scripting (XSS) via the RSS endpoint, w
Changedetection.io versions before 0.53.2 allow unauthenticated attackers to read arbitrary files from the application d
Flask is a lightweight WSGI web application framework. Rated high severity (CVSS 7.5), this vulnerability is remotely ex
The Pallets Project Flask before 1.0 is affected by: unexpected memory usage. Rated high severity (CVSS 7.5), this vulne
The Pallets Project flask version Before 0.12.3 contains a CWE-20: Improper Input Validation vulnerability in flask that
Password reset poisoning in axewater sharewarez v2.4.3 allows a remote attacker to rewrite the host used in emailed rese
Password-reset poisoning in levlaz braindump 0.4.14 lets a remote attacker influence the host used in outgoing password-
Cross-site request forgery in the CISA Malcolm network traffic analysis platform lets a remote attacker who lures the op
Missing authentication checks on Indico's event series management API endpoint allows unauthenticated attackers to view
The Flask Micro code-editor plugin for WordPress through version 1.0.0 contains a stored cross-site scripting vulnerabil
Cross-site scripting in Indico prior to version 3.3.10 allows authenticated users to inject malicious scripts through ma
GHSA-65mp-fq8v-56jr
NVD
CVE.org
EPSS
Exploit-DB