---
id: CVE-2026-107660
title: >-
  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
summary: >-
  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…
severity: medium
cvss: 4.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-297
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg < 8.1.3
  - FFmpeg >= 9.0 < 9.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-107660'
references:
  - url: >-
      https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/0cd2a70eacd510c2efed48b9fc177c7cb2bc549f
    label: disclosure@vulncheck.com
  - url: >-
      https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/57a2e704b4a6eda5d061b45aacde6b19c026bfc0
    label: disclosure@vulncheck.com
  - url: >-
      https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/d377212904a19fc740d721cbda0ba58fa3805a29
    label: disclosure@vulncheck.com
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24383'
    label: disclosure@vulncheck.com
  - url: 'https://ffmpeg.org/'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/FFmpeg/FFmpeg/blob/n9.0.1/libavformat/tls_mbedtls.c#L676-L681
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-before-8.1.3-and-9-x-before-9.0.2-mbedtls-hostname-verification-bypass-for-ip-hosts
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-08T17:25:33.349520Z'
ingestedAt: '2026-10-08T15:49:37.999Z'
---

## Overview

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.

## Remediation

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