Description
Music Player Daemon (MPD) before version 0.24.11 contains a path traversal vulnerability in LocalStorage::MapFSOrThrow and LocalStorage::MapUTF8 within the local storage plugin, where the on-disk path is constructed by joining the storage root with a user-supplied URI as plain strings without canonicalization, allowing '..' segments to survive into the resolved path and be flattened by the kernel at openat() time. An unauthenticated attacker can exploit this flaw using the listfiles command to enumerate names, sizes, and modification times of arbitrary directories readable by the MPD process, and the albumart command to read image files in any attacker-chosen directory outside the configured music_directory.
Problem types
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version before 0.24.11
Credits
Matteo Strada
Daniele Berardinelli
References
github.com/MusicPlayerDaemon/MPD/issues/2484
mstreet97.github.io/...026/05/25/Four_Bugs_Reachable_nc.html
www.musicpd.org/news/2026/05/mpd-0-24-11-released/
raw.githubusercontent.com/...cPlayerDaemon/MPD/v0.24.11/NEWS
github.com/MusicPlayerDaemon/MPD/releases/tag/v0.24.11
github.com/MusicPlayerDaemon/MPD/issues/2484
github.com/...ommit/0b5315b9e5a42cb0e88bf46a7579bb5641543f60
www.vulncheck.com/...traversal-via-localstorage-uri-handling