Skip to main content

Flask CVE-2026-27641

CRITICAL
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-02-25 security-advisories@github.com GHSA-65mp-fq8v-56jr
9.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted file upload request
  2. Exploit
    Bypass extension validation via path traversal
  3. Execution
    Inject malicious template syntax
  4. Impact
    Execute 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 name parameter passed to file upload functionality. Default configurations allow remote unauthenticated file uploads without filename sanitization.

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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 12, 2026 - 21:55 CVSS 9.8

Path traversal and extension bypass in Flask-Reuploaded.

RemediationAI

Update Flask-Reuploaded. Implement server-side extension validation and restrict upload directories.

Affected Packages

pypi flask-reuploaded fix: 1.5.0

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

GitHub Advisory PRIMARY 9.8 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
PoC Detected
Feb 27, 2026 - 18:40 vuln.today
Public exploit code
Patch released
Feb 27, 2026 - 18:40 nvd
Patch available
CVE Published
Feb 25, 2026 - 04:16 nvd
CRITICAL 9.8

DescriptionGitHub 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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 68% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:jugmac00:flask-reuploaded:*:*:*:*:*:python:*:*

More in Flask

View all
CVE-2026-29038 MEDIUM POC
6.1 Mar 06

Reflected XSS in changedetection.io versions prior to 0.54.4 allows unauthenticated remote attackers to inject malicious

CVE-2026-27645 MEDIUM POC
6.1 Feb 25

changedetection.io versions before 0.54.1 are vulnerable to reflected cross-site scripting (XSS) via the RSS endpoint, w

CVE-2026-25527 MEDIUM POC
5.3 Feb 19

Changedetection.io versions before 0.53.2 allow unauthenticated attackers to read arbitrary files from the application d

CVE-2023-30861 HIGH
7.5 May 02

Flask is a lightweight WSGI web application framework. Rated high severity (CVSS 7.5), this vulnerability is remotely ex

CVE-2019-1010083 HIGH
7.5 Jul 17

The Pallets Project Flask before 1.0 is affected by: unexpected memory usage. Rated high severity (CVSS 7.5), this vulne

CVE-2018-1000656 HIGH
7.5 Aug 20

The Pallets Project flask version Before 0.12.3 contains a CWE-20: Improper Input Validation vulnerability in flask that

CVE-2025-61136 HIGH
7.1 Oct 23

Password reset poisoning in axewater sharewarez v2.4.3 allows a remote attacker to rewrite the host used in emailed rese

CVE-2025-61132 HIGH
7.1 Oct 23

Password-reset poisoning in levlaz braindump 0.4.14 lets a remote attacker influence the host used in outgoing password-

CVE-2026-107337 HIGH
7.1 Oct 08

Cross-site request forgery in the CISA Malcolm network traffic analysis platform lets a remote attacker who lures the op

CVE-2026-28352 MEDIUM
6.5 Feb 27

Missing authentication checks on Indico's event series management API endpoint allows unauthenticated attackers to view

CVE-2026-1827 MEDIUM
6.4 Feb 11

The Flask Micro code-editor plugin for WordPress through version 1.0.0 contains a stored cross-site scripting vulnerabil

CVE-2026-25739 MEDIUM
5.4 Feb 19

Cross-site scripting in Indico prior to version 3.3.10 allows authenticated users to inject malicious scripts through ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy