# CVE-2026-27641: Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.32%, higher than 71% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T03:54:54.391Z
- Modified: 2026-10-27T17:00:03.992Z
- Also known as: GHSA-65mp-fq8v-56jr, PYSEC-2026-341
- Weaknesses: CWE-22, CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jugmac00 flask-reuploaded: < 1.5.0; before 1.5.0
- flask-reuploaded (PyPI): before 1.5.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/jugmac00/flask-reuploaded/security/advisories/GHSA-65mp-fq8v-56jr> (exploit, vendor-advisory, web)
- <https://github.com/jugmac00/flask-reuploaded/pull/180> (issue-tracking, patch, web)
- <https://github.com/jugmac00/flask-reuploaded/commit/d64c6b2f71cb73734fc38baa0e3e156926361288> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27641> (advisory)
- <https://github.com/jugmac00/flask-reuploaded> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-reuploaded/PYSEC-2026-341.yaml> (web)
- <https://pypi.org/project/flask-reuploaded> (package, web)
- <https://github.com/advisories/GHSA-65mp-fq8v-56jr> (advisory)

## Sources

- CVE List: [CVE-2026-27641](https://www.cve.org/CVERecord?id=CVE-2026-27641), CVE Terms of Use, modified 2026-02-25
- GitHub Advisory Database: [GHSA-65mp-fq8v-56jr](https://github.com/advisories/GHSA-65mp-fq8v-56jr), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-27641](https://nvd.nist.gov/vuln/detail/CVE-2026-27641), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-341](https://osv.dev/vulnerability/PYSEC-2026-341), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-27641 · Whole record: https://cve.day/CVE-2026-27641.json · Rebuilt by cve.day 2026-11-25T22:59:14.818Z
