CVE-2026-137703

Flask-AppBuilder before 5.3.1 Path Traversal via ImageManager.save_file Upload Filename

Published Nov 27, 2026 CVSS 4.0 · 5.3 Medium EPSS n/a KEV · Not listed
Description
Flask-AppBuilder before 5.3.1 contains a path traversal vulnerability in ImageManager.save_file that allows authenticated users to write image files outside IMG_UPLOAD_FOLDER via unsanitized multipart filenames. Attackers with add or edit permission on a ModelView with an ImageColumn can upload filenames containing ../ segments to create or overwrite image files like static assets.

Analysis

AI-generated

Technical impact

A flaw in the ImageManager.save_file function permits authenticated users to specify upload filenames containing directory traversal sequences such as ../. This leads to the creation or overwriting of files outside the configured IMG_UPLOAD_FOLDER, allowing an attacker to deposit malicious or sensitive files in arbitrary locations on the server. The weakness is a classic path‑traversal vulnerability, CWE‑22, and can compromise the integrity of critical assets, potentially enabling further exploitation if executable files are overwritten.

Affected Systems

Flask‑AppBuilder versions earlier than 5.3.1 are affected. The issue tracks the FileManager component that handles image uploads in the web application, and any deployment that uses an older release without the 5.3.1 patch is at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. Exploitation is limited to users who possess add or edit privileges on a ModelView that includes an ImageColumn, so the attack requires authenticated access. By uploading a crafted filename, an attacker can place files in arbitrary directories, such as static asset locations or other writable directories, potentially leading to content injection, denial of service, or serving malicious content. Because the vulnerability is not remote‑code‑execution per se, it may be mitigated by limiting upload permissions and validating file names, but the best deterrent is to upgrade to the patched 5.3.1 release. No EPSS score is available, but the lack of a KEV listing suggests that known exploits are not currently documented; however the impact rationale warrants caution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Flask‑AppBuilder to version 5.3.1 or later, which sanitizes upload filenames and removes the traversal flaw.
  • Restrict "add" and "edit" permissions for ModelViews that contain ImageColumns, ensuring only trusted users can upload images.
  • Implement an additional filename validation layer that strips or rejects any path traversal sequences before the file is stored.
  • Audit upload logs for unexpected "../" patterns and block any transactions that include them.
  • If an immediate upgrade is not possible, consider deploying file system controls or container isolation to prevent writes outside the intended upload directory.

Generated by OpenCVE AI on November 27, 2026 at 04:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Flask-AppBuilder before 5.3.1 contains a path traversal vulnerability in ImageManager.save_file that allows authenticated users to write image files outside IMG_UPLOAD_FOLDER via unsanitized multipart filenames. Attackers with add or edit permission on a ModelView with an ImageColumn can upload filenames containing ../ segments to create or overwrite image files like static assets.
Title Flask-AppBuilder before 5.3.1 Path Traversal via ImageManager.save_file Upload Filename
First Time appeared Dpgaspar
Dpgaspar flask-appbuilder
Weaknesses CWE-22
CPEs cpe:2.3:a:dpgaspar:flask-appbuilder:*:*:*:*:*:*:*:*
Vendors & Products Dpgaspar
Dpgaspar flask-appbuilder
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 2:45 AM
Reserved
Nov 27, 2026, 1:44 AM
Status
Received
Published
Nov 27, 2026, 3:17 AM
Modified
Nov 27, 2026, 3:17 AM