Description
mpv 0.29.0 before 0.42.0 contains a playlist injection vulnerability in the bundled ytdl_hook script that allows remote attackers to add unchecked entries by embedding newlines in playlist URLs. Attackers controlling a feed or page can bypass url_is_safe() to open file:// or av:// inputs, reading local files or loading shared objects via ladspa for code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mpv-player | mpv | 0.29.0 – < 0.42.0 | 0.42.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mpv | No fix yet | — |
| Debian 13 | mpv | No fix yet | — |
| Debian 12 | mpv | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mpv | No fix yet | — |
| Ubuntu 26.04 LTS | mpv | No fix yet | — |
| Ubuntu 24.04 LTS | mpv | No fix yet | — |
| Ubuntu 22.04 LTS | mpv | No fix yet | — |
| Ubuntu 20.04 LTS | mpv | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mpv | No fix yet | — |
| Ubuntu 16.04 LTS | mpv | No fix yet | — |
References
- https://github.com/mpv-player/mpv/pull/18762 issue-tracking patch
- https://github.com/mpv-player/mpv/commit/c3096515dcd26c14004f985538b5aa41db613856 patch
- https://github.com/mpv-player/mpv/blob/v0.41.0/player/lua/ytdl_hook.lua#L244-L251 technical-description
- https://github.com/mpv-player/mpv/blob/v0.41.0/player/lua/ytdl_hook.lua#L1115-L1137 technical-description
- mpv v0.42.0 Release Notes release-notes
- https://github.com/mpv-player/mpv product
- VulnCheck Advisory: mpv 0.29.0 before 0.42.0 Playlist Entry Injection via ytdl_hook Newlines third-party-advisory