Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-65mp-fq8v-56jr

Опубликовано: 25 фев. 2026
Источник: github
Github: Прошло ревью
CVSS3: 9.8

Описание

Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection

Impact

A critical path traversal and extension bypass vulnerability in Flask-Reuploaded allows remote attackers to achieve arbitrary file write and remote code execution through Server-Side Template Injection (SSTI).

Patches

Flask-Reuploaded has been patched in version 1.5.0

Workarounds

  1. Do not pass user input to the name parameter
  2. Use auto-generated filenames only
  3. Implement strict input validation if name must be used
from werkzeug.utils import secure_filename import os # Sanitize user input before passing to save() safe_name = secure_filename(request.form.get('custom_name')) # Remove path separators safe_name = os.path.basename(safe_name) # Validate extension matches policy if not photos.extension_allowed(photos.get_extension(safe_name)): abort(400) filename = photos.save(file, name=safe_name)

Resources

The fix is documented in the pull request, see https://github.com/jugmac00/flask-reuploaded/pull/180.

A proper write-up was created by the reporter of the vulnerability, Jaron Cabral (https://www.linkedin.com/in/jaron-cabral-751994357/), but is not yet available as of time of this publication.

Пакеты

Наименование

flask-reuploaded

pip
Затронутые версииВерсия исправления

< 1.5.0

1.5.0

EPSS

Процентиль: 41%
0.00189
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-1336
CWE-22

Связанные уязвимости

CVSS3: 9.8
nvd
около 1 месяца назад

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.

CVSS3: 9.8
debian
около 1 месяца назад

Flask-Reuploaded provides file uploads for Flask. A critical path trav ...

EPSS

Процентиль: 41%
0.00189
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-1336
CWE-22