Skip to main content
Vulnerability Database/CVE-2026-107697

CVE-2026-107697: FFmpeg HLS Auth Bypass Vulnerability

CVE-2026-107697 is an authentication bypass flaw in FFmpeg HLS demuxer that allows attackers to bypass protocol restrictions via crafted playlists. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-107697 Overview

CVE-2026-107697 is a protection mechanism failure [CWE-693] in the FFmpeg HTTP Live Streaming (HLS) demuxer. The vulnerability affects FFmpeg versions prior to 8.1.3. The HLS demuxer fails to enforce protocol and allowed_extensions restrictions when opening child playlists referenced from a master playlist. Attackers can craft a master playlist whose child playlists reference disallowed protocols or non-multimedia local files. The parse_playlist() function then opens resources that the HLS security policy was designed to block.

Critical Impact

A remote attacker can bypass FFmpeg's HLS protocol whitelist to reach arbitrary local files or restricted network protocols through crafted playlist content, enabling information disclosure in applications that process attacker-supplied media.

Affected Products

  • FFmpeg versions prior to 8.1.3
  • Applications embedding libavformat with HLS demuxing enabled
  • Media processing pipelines accepting user-supplied .m3u8 content

Discovery Timeline

  • 2026-10-08 - CVE-2026-107697 published to the National Vulnerability Database
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-107697

Vulnerability Analysis

The flaw resides in libavformat/hls.c within the parse_playlist() function. FFmpeg's HLS demuxer applies protocol whitelist and allowed_extensions checks when opening the initial master playlist. However, when the demuxer recursively opens child playlists referenced by the master, it calls the lower-level io_open path directly. This path skips the HLS-specific security helper that validates the protocol and file extension of nested URLs.

The result is a protection mechanism failure classified under [CWE-693]. A master playlist delivered over HTTP can reference child URIs using schemes such as file://, concat:, or data:, or point to arbitrary local file paths with disallowed extensions. The demuxer opens these resources without filtering and may propagate their contents back into the output stream.

Root Cause

The root cause is inconsistent enforcement between the top-level playlist loader and the recursive child playlist loader. The hardened open_url() wrapper performs HLS whitelist checks. The vulnerable code path called c->ctx->io_open() directly, bypassing those checks entirely for every child playlist request.

Attack Vector

Exploitation requires that the victim application process an attacker-controlled master playlist through FFmpeg. The attack is network-reachable but requires user or application interaction to initiate HLS parsing. A successful attack enables protocol smuggling and local file read in contexts such as media transcoding services, thumbnail generators, and user-upload processors.

c
// Patch from libavformat/hls.c - parse_playlist()
// Routes child-playlist opens through the HLS protocol-check wrapper
         if (c->http_persistent)
             av_dict_set(&opts, "multiple_requests", "1", 0);
 
-        ret = c->ctx->io_open(c->ctx, &in, url, AVIO_FLAG_READ, &opts);
+        ret = open_url(c->ctx, &in, url, &opts, NULL, NULL);
         av_dict_free(&opts);
         if (ret < 0)
             return ret;

Source: FFmpeg Commit 01044d04536e. The patch replaces the direct io_open call with open_url(), which enforces the HLS protocol whitelist and extension filter against every nested playlist URI.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-107697

Indicators of Compromise

  • Master .m3u8 playlists referencing child URIs with non-HTTP schemes such as file://, concat:, data:, gopher://, or ftp://
  • Child playlist entries pointing to local filesystem paths or files with non-media extensions like .conf, .env, .key, or .pem
  • FFmpeg process reads of files outside the expected media working directory during HLS ingestion
  • Outbound network connections from FFmpeg workers to unexpected hosts following playlist ingestion

Detection Strategies

  • Inspect inbound .m3u8 content at the application boundary for disallowed URI schemes before passing to FFmpeg
  • Correlate FFmpeg child process open() syscalls with the originating HLS job identifier to flag reads outside the media directory
  • Log and alert on FFmpeg invocations that resolve URIs matching protocols other than http, https, tls, tcp, and crypto

Monitoring Recommendations

  • Record FFmpeg command lines and resolved input URLs in centralized logs for retrospective hunting
  • Monitor transcoding service worker nodes for unexpected egress destinations and local file access patterns
  • Track installed FFmpeg versions across endpoints and servers to confirm all instances are at 8.1.3 or later

How to Mitigate CVE-2026-107697

Immediate Actions Required

  • Upgrade FFmpeg and any bundled libavformat to version 8.1.3 or later
  • Audit applications that pass user-supplied HLS content to FFmpeg and apply input validation at the application layer
  • Rotate any secrets that may have been exposed through local file read from affected transcoding hosts

Patch Information

The fix is distributed across three upstream commits that route child playlist opens through the protocol-check wrapper. See FFmpeg Commit 01044d04536e, FFmpeg Commit 191715f0232c, and FFmpeg Commit 23602df9cd1b. Additional context is published in the VulnCheck FFmpeg HLS Advisory.

Workarounds

  • Explicitly set -protocol_whitelist to the minimum set required, such as http,https,tls,tcp,crypto, when invoking FFmpeg
  • Set -allowed_extensions to only the media extensions required by your workflow
  • Run FFmpeg workers under a dedicated low-privilege user with a chroot or container filesystem that excludes sensitive files
  • Reject uploaded .m3u8 files containing non-HTTP schemes at the application ingestion layer
bash
# Hardened FFmpeg invocation for HLS input
ffmpeg \
  -protocol_whitelist 'http,https,tls,tcp,crypto' \
  -allowed_extensions 'm3u8,ts,aac,mp4,m4s' \
  -i "https://example.com/stream/master.m3u8" \
  -c copy output.mp4

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.