CVE-2024-54462 Unsanitized Filenames in Flutter package image_picker_android Allow File Overwrites
Attackers with malicious document providers can overwrite internal app cache files via unsanitized filenames in the Flutter image_picker_android 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-54462?
CVE-2024-54462 is a low-severity path traversal vulnerability in Flutter image_picker_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 image_picker 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 an image file from that provider while using your app and could potentially override internal files in your app cache. Issue patched in 0.8.12+18. It is recommended to update to the latest version of image_picker_android that contains the changes to address this vulnerability.
Which versions are affected by CVE-2024-54462?
It affects 1 product.
Products include Flutter Image Picker Android.
How do I fix CVE-2024-54462?
No fix has been published for CVE-2024-54462 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-54462 being exploited?
There is no known exploitation of CVE-2024-54462 in the wild and no public exploit code.
Sources
Also known as GHSA-98v2-f47x-89xw.