CVE-2024-54462

Unsanitized Filenames in Flutter package image_picker_android Allow File Overwrites

2.1 low EPSS 0.20%

Published 29 Jan 2025 Updated 12 Feb 2025 CNA: Google

Check your servers for CVE-2024-54462

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-54462 affects image_picker_android, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

2.1 low CVSS 4.0 from Google (CNA)
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:A/VC:N/VI:L/VA:L/SC:N/SI:H/SA:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Attack requirements
none: an attack works without special conditions on the target
Privileges required
low: the attacker needs an ordinary user account
User interaction
active: a user has to take a deliberate step, such as installing or running something
Impact on the vulnerable system
confidentiality none, integrity low, availability low: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality none, integrity high, availability high: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 2 Dec 2026.

The assessment of CISA (SSVC, 29 Jan 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-23 Relative Path Traversal

Affected products

As the CNA lists them.

ProductVersions
image_picker_android
affected from 0.8.5+6 up to and including 0.8.12+17
Other versions: unaffected

Is my server affected?

Find the installed version of image_picker_android and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i image_picker_android
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-54462 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-54462

RHEL, Rocky, Alma, Fedora

rpm -q image_picker_android
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-54462

Alpine

apk list --installed | grep -i image_picker_android

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-54462
trivy image --scanners vuln IMAGE | grep CVE-2024-54462

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-54462 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.