Description
FFmpeg before 8.1.3 and 9.x before 9.0.2 contains an improper certificate validation vulnerability in tls_open() of libavformat/tls_mbedtls.c, which skips hostname checks for IP-address hosts. Network attackers can intercept https, rtmps, or tls connections to IP-literal URLs with any trusted CA-issued certificate to read and tamper with streams.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| FFmpeg | FFmpeg | < 8.1.3, 9.0 – < 9.0.2 | 8.1.3 |
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 | ffmpeg | 7:9.0.2-1 | — |
| Debian 13 | ffmpeg | No fix yet | — |
| Debian 12 | ffmpeg | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ffmpeg | No fix yet | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | ffmpeg | No fix yet | — |
| Ubuntu Pro 24.04 LTS | ffmpeg | No fix yet | — |
| Ubuntu Pro 22.04 LTS | ffmpeg | No fix yet | — |
| Ubuntu Pro 20.04 LTS | ffmpeg | No fix yet | — |
| Ubuntu Pro 18.04 LTS | ffmpeg | No fix yet | — |
| Ubuntu Pro 16.04 LTS | ffmpeg | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libav | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | ffmpeg-7 | No fix yet | — |
Advisories 1
- WID-SEC-2026-3820 ffmpeg: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 8, 2026
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24383 patch
- https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/57a2e704b4a6eda5d061b45aacde6b19c026bfc0 patch
- https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/d377212904a19fc740d721cbda0ba58fa3805a29 patch
- https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/0cd2a70eacd510c2efed48b9fc177c7cb2bc549f patch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.1/libavformat/tls_mbedtls.c#L676-L681 technical-description
- https://ffmpeg.org/ product
- VulnCheck Advisory: FFmpeg before 8.1.3 and 9.x before 9.0.2 mbedTLS Hostname Verification Bypass for IP Hosts third-party-advisory