CVE-2026-137703: Flask-AppBuilder before 5.3.1 Path Traversal via ImageManager.save_file Upload Filename
Flask-AppBuilder before 5.3.1 contains a path traversal vulnerability in ImageManager.savefile that allows authenticated users to write image files outside IMGUPLOADFOLDER 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.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user needs add or edit permission on a ModelView that includes an ImageColumn. The issue is therefore relevant where such users can submit multipart image uploads.
Are applications using the default upload folder affected?
Yes. The vulnerable behavior allows traversal outside IMG_UPLOAD_FOLDER, so the configured upload directory does not confine a crafted filename containing ../ segments.
What can an attacker do with successful exploitation?
An attacker can write image files outside the intended upload folder and may create or overwrite files such as static assets. The stated impact is limited to integrity and availability; no confidentiality impact is identified.
What should be done if upgrading is not immediately possible?
Restrict add and edit permissions for ModelViews with ImageColumn fields to trusted users, or disable affected image-upload functionality until an upgrade can be applied. The issue is fixed in Flask-AppBuilder 5.3.1.