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.