CVE-2024-54461 Unsanitized Filenames in Flutter package file_selector_android Allow File Overwrites
Attackers with malicious document providers can overwrite internal app cache files via unsanitized filenames in the file_selector_android Flutter package.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-54461?
CVE-2024-54461 is a low-severity path traversal vulnerability in Flutter file_selector_android, published on 29 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
The file names constructed within file_selector are missing sanitization checks leaving them vulnerable to malicious document providers. This may result in cases where a user with a malicious document provider installed can select a document file from that provider while using your app and could potentially override internal files in your app cache. Issue patched in 0.5.1+12. It is recommended to update to the latest version of file_selector_android that contains the changes to address this vulnerability.
Which versions are affected by CVE-2024-54461?
It affects 1 product.
Products include Flutter File Selector Android.
How do I fix CVE-2024-54461?
No fix has been published for CVE-2024-54461 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-54461 being exploited?
There is no known exploitation of CVE-2024-54461 in the wild and no public exploit code.
Sources
Also known as GHSA-r465-vhm9-7r5h.