Description
mpv through 0.28.0 allows remote attackers to execute arbitrary code via a crafted web site, because it reads HTML documents containing VIDEO elements, and accepts arbitrary URLs in a src attribute without a protocol whitelist in player/lua/ytdl_hook.lua. For example, an av://lavfi:ladspa=file= URL signifies that the product should call dlopen on a shared object file located at an arbitrary local pathname. The issue exists because the product does not consider that youtube-dl can provide a potentially unsafe URL.
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 | 0.27.0-3 | — |
| Debian 13 | mpv | 0.27.0-3 | — |
| Debian 12 | mpv | 0.27.0-3 | — |
| Debian 9 | mpv | 0.23.0-2+deb9u1 | DSA-4105-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mpv | 0.27.2-1ubuntu1 | — |
| Ubuntu 16.04 LTS | mpv | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mpv | 0.33.1+git.20210630T163736.f2afae55e9-1.4 | openSUSE-SU-2024:11062-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | mpv | 0.27.0-r3 | — |
| Alpine v3.23 | mpv | 0.27.0-r3 | — |
| Alpine v3.22 | mpv | 0.27.0-r3 | — |
| Alpine v3.21 | mpv | 0.27.0-r3 | — |
| Alpine v3.20 | mpv | 0.27.0-r3 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | mpv | 0.27.0-r3 | — |
| Alpine v3.18 | mpv | 0.27.0-r3 | — |
| Alpine v3.17 | mpv | 0.27.0-r3 | — |
| Alpine v3.16 | mpv | 0.27.0-r3 | — |
| Alpine v3.15 | mpv | 0.27.0-r3 | — |
| Alpine v3.14 | mpv | 0.27.0-r3 | — |
| Alpine v3.13 | mpv | 0.27.0-r3 | — |
| Alpine v3.12 | mpv | 0.27.0-r3 | — |
| Alpine v3.11 | mpv | 0.27.0-r3 | — |
| Alpine v3.10 | mpv | 0.27.0-r3 | — |
| Alpine v3.9 | mpv | 0.27.0-r3 | — |
| Alpine v3.8 | mpv | 0.27.0-r3 | — |
| Alpine v3.7 | mpv | 0.27.0-r2 | — |
Advisories 2
- DSA-4105-1 mpv - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11062-1 libmpv1-0.33.1+git.20210630T163736.f2afae55e9-1.4 on GA media SUSE / openSUSE Security Updates · May 7, 2025