Description
FFmpeg before 7.1.4 and 8.0.x before 8.0.2 contains a server-side request forgery vulnerability in ff_rtsp_connect() in libavformat/rtsp.c that follows RTSP 3xx redirects without validating the Location URL. Malicious RTSP servers can redirect FFmpeg to internal hosts and ports under other schemes, bypassing -protocol_whitelist, to probe internal network services.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| FFmpeg | FFmpeg | < 7.1.4, 8.0 – < 8.0.2 | 7.1.4 |
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:8.1-1 | — |
| Debian 13 | ffmpeg | 7:7.1.5-0+deb13u1 | — |
| Debian 12 | ffmpeg | 7:5.1.9-0+deb12u1 | — |
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 | — |
Advisories 1
- WID-SEC-2026-3820 ffmpeg: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 8, 2026
References
- Patch Commit patch
- https://github.com/FFmpeg/FFmpeg/commit/2326bc5f69c9 patch
- Backport to release/7.1 patch
- Backport to release/8.0 patch
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22292 patch
- https://github.com/FFmpeg/FFmpeg/blob/n7.1.3/libavformat/rtsp.c#L2016 technical-description
- https://github.com/FFmpeg/FFmpeg product
- VulnCheck Advisory: FFmpeg before 7.1.4 and 8.0.2 SSRF via RTSP Redirect Handling third-party-advisory