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

CVE-2026-107676: FFmpeg Information Disclosure Vulnerability

CVE-2026-107676 is an uninitialized memory disclosure flaw in FFmpeg that leaks process memory into output files during remuxing or transcoding. 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-107676 Overview

CVE-2026-107676 is an uninitialized memory disclosure vulnerability in FFmpeg versions through 9.0.2. The flaw resides in the av_dynamic_hdr_plus_to_t35() function in libavutil/hdr_dynamic_metadata.c. When tone_mapping_flag is set to 0, the serializer leaves up to three payload bytes uninitialized. Attackers can embed crafted Matroska T.35 BlockAdditional entries or HEVC/AV1 Supplemental Enhancement Information (SEI) metadata into media files. During remuxing or transcoding, FFmpeg writes these uninitialized bytes into output files, leaking process memory contents. The issue is tracked under [CWE-908: Use of Uninitialized Resource].

Critical Impact

Crafted HDR10+ metadata can cause FFmpeg to leak up to three bytes of process memory per frame into attacker-accessible output files during routine transcoding.

Affected Products

  • FFmpeg through version 9.0.2
  • Applications linking against libavutil for HDR10+ metadata serialization
  • Media processing pipelines using FFmpeg for Matroska, HEVC, or AV1 remuxing

Discovery Timeline

  • 2026-10-08 - CVE-2026-107676 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-107676

Vulnerability Analysis

The vulnerability affects FFmpeg's HDR10+ dynamic metadata serializer. The av_dynamic_hdr_plus_to_t35() function constructs a T.35 payload used to carry dynamic tone mapping information in container and codec metadata. When the tone_mapping_flag field in the input AVDynamicHDRPlus structure equals 0, the serializer skips initialization of bytes that would otherwise hold tone mapping parameters. The output buffer still advances past these bytes, carrying whatever stack or heap data occupied that region.

Attackers do not need to execute code on the target host. They only need the victim to process a crafted media file through FFmpeg. Typical trigger paths include remuxing Matroska files containing malicious T.35 BlockAdditional entries, or transcoding HEVC and AV1 streams with crafted SEI messages.

Root Cause

The root cause is a missing initialization branch in the HDR10+ serializer logic. The code path for tone_mapping_flag == 0 writes payload length and header fields but omits zeroing the trailing bytes of the T.35 user data registered buffer. Any residual process memory in those slots is serialized directly into the output container or elementary stream.

Attack Vector

Exploitation requires an attacker to deliver a crafted media file and have the victim process it with a vulnerable FFmpeg build. User interaction is required because the victim must initiate transcoding or remuxing. The resulting output file contains leaked memory bytes. In automated media pipelines such as upload-and-transcode services, repeated submissions can accumulate memory disclosures across many frames, increasing the probability of exposing sensitive data such as cryptographic material, tokens, or pointers useful for bypassing address space layout randomization.

Technical details are available in the FFmpeg commit fixing the issue, the FFmpeg pull request #24590, and the VulnCheck advisory.

Detection Methods for CVE-2026-107676

Indicators of Compromise

  • Output media files containing non-zero bytes in the trailing portion of HDR10+ T.35 payloads where tone_mapping_flag is 0
  • Repeated submissions of near-identical Matroska or HEVC files targeting an automated transcoding service
  • Media files whose T.35 BlockAdditional entries contain unusually structured HDR10+ metadata

Detection Strategies

  • Scan FFmpeg output files for HDR10+ payload bytes that vary across runs with identical input, which signals memory disclosure
  • Inventory FFmpeg binaries and shared libraries across build systems, media servers, and transcoding workers to identify versions at or below 9.0.2
  • Instrument transcoding workflows with memory sanitizers in test environments to catch unitialized reads at the source

Monitoring Recommendations

  • Monitor media processing services for anomalous volumes of HDR10+ metadata submissions from a single source
  • Log FFmpeg version strings in build pipelines and alert on usage of unpatched releases
  • Review third-party libraries that bundle libavutil to confirm they ship patched versions

How to Mitigate CVE-2026-107676

Immediate Actions Required

  • Upgrade FFmpeg to a build containing commit 2c2f6e96e31795ae95a8f8323a493ffbc493111f or later
  • Rebuild and redeploy any application that statically links against libavutil from an affected FFmpeg source tree
  • Audit stored output files produced by vulnerable FFmpeg versions and treat them as potentially containing leaked memory

Patch Information

The FFmpeg project addressed the vulnerability in commit 2c2f6e96e31795ae95a8f8323a493ffbc493111f, merged via pull request #24590. The fix initializes the previously uninitialized bytes in av_dynamic_hdr_plus_to_t35() before serialization. Downstream distributions should backport this patch to their packaged FFmpeg releases.

Workarounds

  • Strip HDR10+ dynamic metadata from untrusted input files before transcoding using filters such as -bsf:v filter_units=remove_types=147 for HEVC SEI
  • Disable Matroska BlockAdditional processing in pipelines that do not require HDR10+ support
  • Isolate FFmpeg transcoding workers in sandboxed processes with minimal secrets in memory to reduce the sensitivity of any disclosed bytes
bash
# Verify the installed FFmpeg version and rebuild from patched source
ffmpeg -version

# Build from patched upstream
git clone https://code.ffmpeg.org/FFmpeg/FFmpeg.git
cd FFmpeg
git checkout 2c2f6e96e31795ae95a8f8323a493ffbc493111f
./configure && make -j"$(nproc)" && sudo make install

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.