---
id: CVE-2026-107698
title: >-
  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
summary: >-
  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 re…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'
cwe:
  - CWE-918
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg < 7.1.4
  - FFmpeg >= 8.0 < 8.0.2
published: '2026-10-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T21:04:38.633'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107698'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22292'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/FFmpeg/FFmpeg'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/FFmpeg/FFmpeg/blob/n7.1.3/libavformat/rtsp.c#L2016'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/FFmpeg/FFmpeg/commit/2326bc5f69c9'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/FFmpeg/FFmpeg/commit/7c011995e394'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/ea9e85e54981b8402368d0f21648836d6738f1b1
    label: disclosure@vulncheck.com
  - url: 'https://github.com/FFmpeg/FFmpeg/commit/f9aa8729bce1'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-before-7.1.4-and-8.0.2-ssrf-via-rtsp-redirect-handling
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-08T17:51:17.969183Z'
ingestedAt: '2026-10-08T17:56:11.735Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
