Flask-AppBuilder before 5.3.1 Path Traversal via ImageManager.save_file Upload Filename
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 27, 2026
- Updated
- Nov 27, 2026
- Reserved
- Nov 27, 2026
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.
| Product | Versions |
|---|---|
| Flask-AppBuilder dpgaspar | before 5.3.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 5.4 Medium | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- Pull Request #2495Issue TrackerPatch
- Patch CommitPatch
- Flask-AppBuilder v5.3.1 Release NotesRelease Notes
- https://github.com/dpgaspar/Flask-AppBuilder/blob/v5.3.0/flask_appbuilder/filemanager.py#L151-L182Technical Details
- https://github.com/dpgaspar/Flask-AppBuilder/blob/v5.3.0/flask_appbuilder/filemanager.py#L227-L228Technical Details
- https://github.com/dpgaspar/Flask-AppBuilderProduct Page
- VulnCheck Advisory: Flask-AppBuilder before 5.3.1 Path Traversal via ImageManager.save_file Upload FilenameThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.