Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. flask-reuploaded
  4. ›
  5. CVE-2026-54567

CVE-2026-54567: Flask-Reuploaded: Extension-denylist bypass via case-folding asymmetry in name-override path (incomplete-fix variant of CVE-2026-27641)

July 17, 2026

UploadSet.save(storage, name=...) lets the caller override the stored filename. After the CVE-2026-27641 fix, name is sanitized with secure_filename() and its extension re-validated. Because the re-validation compares a case-preserving extension against a policy whose denied tokens are lowercase, an attacker controlling name stores a file with a denied extension by varying case (shell.PHP, evil.pHp). On servers that resolve/execute extensions case-insensitively (Windows/macOS filesystems; Apache AddHandler/AddType), this re-enables the dangerous-upload → code-execution outcome the parent CVE addressed. The bypassed config is the one the library’s own docs recommend for blocking scripts (see §6).


References

  • github.com/advisories/GHSA-937x-gpqr-72gg
  • github.com/jugmac00/flask-reuploaded/commit/5ded76092429c6eb8a4af941b14fbde40a38fff4
  • github.com/jugmac00/flask-reuploaded/security/advisories/GHSA-937x-gpqr-72gg
  • nvd.nist.gov/vuln/detail/CVE-2026-54567

Code Behaviors & Features

Detect and mitigate CVE-2026-54567 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.0

Fixed versions

  • 1.6.0

Solution

Upgrade to version 1.6.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-178: Improper Handling of Case Sensitivity
  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

pypi/flask-reuploaded/CVE-2026-54567.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:57 +0000.