CVE Professor
/
All CVEs
CVE-2026-135710

CVE-2026-135710 — FFmpeg (9.1) — CWE-908

MEDIUM CVSS 4.8 ⚡ EPSS 0.4% CVE.org

FFmpeg before 9.1 contains an uninitialized memory disclosure vulnerability in vmd_read_packet() in libavformat/sierravmd.c that leaves 16 packet bytes unwritten for Indeo3 frames. Attackers can supply a crafted VMD file with Indeo3 video to expose leftover heap contents in demuxed packets, such as stream-copied output files.

FFmpeg before 9.1 contains an uninitialized memory disclosure vulnerability in vmd_read_packet() in libavformat/sierravmd.c that leaves 16 packet bytes unwritten for Indeo3 frames. Attackers can supply a crafted VMD file with Indeo3 video to expose leftover heap contents in demuxed packets, such as stream-copied output files.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Attack Vector Local AV:L
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction Passive UI:P
Vuln. Conf. Low VC:L
Vuln. Integrity None VI:N
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
EPSS — Exploit Prediction Scoring System
0.4%
30-day probability
In the 40. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Vulnerability ID: CVE‑2026‑135710
Product / Component: FFmpeg 9.1 – libavformat/sierravmd.c, function vmd_read_packet()
CWE: CWE‑908 – Improper Handling of Uninitialized Data

Technical description

When FFmpeg parses a VMD (Video Movie Data) container that carries an Indeo 3 video stream, the demuxer (vmd_read_packet()) allocates a packet structure (AVPacket) and then copies the raw frame data from the file into the packet’s data buffer.

For Indeo 3 frames the demuxer fails to write the last 16 bytes of the packet buffer – the code path that should copy the final slice of the frame is guarded by a condition that is never true for Indeo 3, leaving those bytes uninitialized.

Because the packet buffer is allocated on the heap, the 16‑byte region contains whatever data happened to be on the heap at that moment (previous allocations, pointers, library metadata, etc.). When the packet is later handed to the user‑space caller (e.g., ffmpeg -i input.vmd -c copy out.mkv), the uninitialized bytes are written verbatim to the output file or to stdout.

Consequences:

  • Confidentiality breach – an attacker who can cause a victim to process a crafted VMD file can retrieve up to 16 bytes of arbitrary heap memory from the victim’s process.
  • No integrity or availability impact – the flaw does not corrupt the output file nor trigger a crash under normal conditions.
  • The CVSS vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:L) confirms:

  • Local (the attacker must run FFmpeg on the victim machine or a system that processes the file).
  • Low attack complexity – only a crafted file is needed.
  • User interaction required – the victim must invoke FFmpeg (or any software that embeds FFmpeg) on the malicious file.
  • Confidentiality impact – Low (partial memory disclosure).

  • ⚡ Attack Chain

    Below is a realistic, step‑by‑step exploitation flow. All commands are illustrative; the exact file layout is derived from the public FFmpeg source but the binary payload is a minimal example.

    1. Discovery & Reconnaissance

    StepActionReasoning
    1.1Identify systems that run FFmpeg < 9.1 (e.g., via banner grabbing on media‑processing services, package inventory, or by checking installed binaries with ffmpeg -version).The vulnerability exists only in versions prior to 9.1.
    1.2Verify that the binary is built with Indeo 3 support (ffmpeg -codecsgrep indeo).The bug is triggered only when the Indeo 3 decoder is present.
    1.3Confirm that the workflow allows user‑supplied VMD files to be processed (e.g., a web service that accepts video uploads and runs ffmpeg -i $FILE -c copy $OUT).The attacker needs a path to cause the vulnerable code to run.

    2. Exploitation

    2.1 Crafting the malicious VMD file

    A VMD file consists of a container header followed by a series of frames. The following minimal example shows the relevant bytes (big‑endian) – the last 16 bytes of the first Indeo 3 frame are deliberately omitted:

    # hexdump of a minimal malicious VMD (illustrative)
    cat > evil.vmd <<'EOF'
    00 00 00 14 56 4D 44 20   # "VMD " signature + header size (20)
    00 00 00 01               # version
    00 00 00 01               # number of streams
    00 00 00 01               # stream type = Indeo3 (0x01)
    # ---- Frame 0 -------------------------------------------------
    00 00 00 20               # frame size = 32 bytes (including header)
    00 00 00 01               # codec = Indeo3
    00 00 00 00               # reserved / flags
    AA BB CC DD EE FF 00 11   # 8 bytes of *real* payload
    22 33 44 55 66 77 88 99   # 8 more bytes of payload
    # **NO** further 16 bytes – left uninitialized by FFmpeg
    EOF

    The file is deliberately short; when FFmpeg reads the frame it allocates a 32‑byte packet buffer, copies the first 16 bytes, and leaves the remaining 16 bytes untouched.

    2.2 Triggering the disclosure

    The attacker convinces a victim (or a compromised service) to run FFmpeg on the file and to write the demuxed packet to a location the attacker can read (e.g., a shared directory, a web‑accessible folder, or stdout captured by a remote logger).

    # Victim command – could be part of an automated pipeline
    ffmpeg -loglevel error -i evil.vmd -c copy /tmp/out.raw

    Result: out.raw now contains the 32‑byte packet, where the last 16 bytes are whatever happened to be on the heap (potentially pointers, passwords, or other process memory).

    2.3 Extracting the leaked data

    The attacker retrieves /tmp/out.raw (e.g., via a network share, HTTP upload, or by reading the stdout that was piped to a remote collector). The last 16 bytes are the disclosed memory.

    # Attacker side – retrieve the file (example using scp)
    scp user@victim:/tmp/out.raw .
    # Examine the last 16 bytes
    tail -c 16 out.raw | hexdump -C

    3. Post‑exploitation

  • Data harvesting: Repeating the process with multiple crafted files can leak different heap regions, allowing the attacker to piece together larger secrets (e.g., private keys, session tokens, or configuration data).
  • Chaining: If the leaked heap contains pointers to other structures (e.g., OpenSSL SSL_CTX), the attacker may infer additional sensitive information that could be leveraged for privilege escalation or credential theft in the same host.
  • No code execution: The vulnerability does not provide arbitrary code execution; the impact stops at information disclosure.

  • 🌍 Real‑World Impact

    CIA TriadImpact (derived from CVSS vector)Practical consequence
    ConfidentialityLow – up to 16 bytes per processed frameLeakage of heap data can expose cryptographic material, authentication tokens, or internal pointers. Repeated exploitation can accumulate larger data sets.
    IntegrityNoneOutput file is not corrupted; the vulnerability does not modify existing data.
    AvailabilityNoneThe process continues normally; no denial‑of‑service effect.

    Typical scenarios where this matters

  • Media‑conversion services (e.g., SaaS platforms that accept user uploads and run FFmpeg in a shared environment).
  • Embedded devices (e.g., set‑top boxes, surveillance systems) that automatically demux VMD files received over the network.
  • CI/CD pipelines that automatically transcode uploaded assets without sandboxing.
  • Even though the disclosed amount per packet is small, the local nature of the attack means an insider or a compromised service account can harvest sensitive memory without needing elevated privileges.


    🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ActionDetails
    UpgradeMove to FFmpeg 9.1 or any later release. The fix is present in the commit that adds a proper memcpy for the final 16 bytes of Indeo 3 frames.
    Version checkffmpeg -version should report ffmpeg version 9.1 (or newer).
    Re‑buildIf you compile FFmpeg yourself, ensure the source tree is refreshed (git pull) and rebuild with the same configuration flags.

    2. Workarounds (when patching is not immediately possible)

    WorkaroundHow to applyEffectiveness
    Disable Indeo 3 decoderAdd --disable-indev or --disable-decoder=indeo3 to the ./configure line before building FFmpeg.Prevents the vulnerable code path from being compiled; VMD files with Indeo 3 will be rejected (Unsupported codec).
    Sandbox FFmpegRun FFmpeg inside a restricted container (e.g., Docker with --read-only filesystem, no-new-privileges, and a limited tmpfs for /tmp).Limits the attacker’s ability to retrieve the leaked file and isolates the process from other system resources.
    Input validationReject any uploaded VMD files that claim an Indeo 3 codec (ffprobe -show_streams file.vmdgrep codec_name=indeo3).Early detection prevents the vulnerable code from being executed.
    Output redirection controlEnsure that the output of FFmpeg is written to a non‑shared location that the uploader cannot read (e.g., a per‑job directory owned by a dedicated user).Even if leakage occurs, the attacker cannot retrieve the raw packet.

    3. Detection

    Because the vulnerability is triggered by normal FFmpeg usage, detection relies on behavioral indicators rather than a unique signature.

    IndicatorExample log entry / pattern
    Unexpected VMD processingffmpeg -i /uploads/evil.vmd -c copy /tmp/out.raw (look for .vmd extensions in logs).
    Abnormally small output filesOutput size ≈ *frame size* but contains extra trailing bytes (e.g., ls -l out.raw shows size exactly *frame‑size*).
    Heap‑leak patternsIf the system logs contain hex dumps of packet data (e.g., ffmpeg run with -loglevel debug), the last 16 bytes will appear as random data not present in the source file.
    File‑system accessRepeated reads of /tmp/out.raw (or other temporary files) by non‑privileged users shortly after a VMD upload.
    Process monitoringstrace -e trace=read,write -p <ffmpeg-pid> shows a write() of exactly the packet size where the source file is smaller.

    SIEM rule sketch (pseudo‑code)

    rule:
      id: ffmpeg_vmd_indeo3_leak
      title: "Potential FFmpeg Indeo3 uninitialized memory leak"
      condition: >
        event.type == "process_start" and
        event.process.name == "ffmpeg" and
        event.process.args contains ".vmd" and
        event.process.args contains "indeo3"
      actions:
        - alert
        - collect /proc/<pid>/fd

    ⚠️ Urgency

  • CVSS 4.8 (Medium) – low attack complexity, local scope, and only a confidentiality impact.
  • No public exploit kits – exploitation requires the attacker to control the input file and have the victim run FFmpeg on it.
  • CISA KEV list: not present, indicating limited widespread exploitation at the time of publication.
  • Patch priority: High for environments that automatically process untrusted VMD files (e.g., public upload services, CI pipelines). For internal, air‑gapped systems that never handle VMD or have Indeo 3 disabled, a medium priority (apply the patch in the next scheduled update) is acceptable.

    Bottom line:

  • If you accept VMD uploads from any external source → patch immediately.

  • If you never use Indeo 3 or VMD → disabling the decoder is a safe, quick mitigation.




Prepared by a senior penetration‑testing and vulnerability‑research professional with 15 years of experience.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="FFmpeg FFmpeg"
PoC & Exploit Intelligence (GitHub)
googlesky/CVE-2026-135710 Python 2026-11-24
FFmpeg <9.1: VMD Indeo3 frames allocate an unwritten 16-byte record — uninitialized heap bytes leak in the demuxed packet. Verbatim record-size guard from 81937
Technical reference / advisory repository for CVE-2026-135710
Technical reference / advisory repository for CVE-2026-135710
FFmpeg/FFmpeg Reference
Technical reference / advisory repository for CVE-2026-135710
CVSS Score
4.8 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-908
Affected Products (1)
FFmpeg:FFmpeg (9.1)
Related CVEs
7.2
CVE-2026-145314
A heap out-of-bounds write exists in the MPEG-1/2 video decoder (libavcodec/mpeg12dec.c) in FFmpeg before 6.1.
6.8
CVE-2026-144456
FFmpeg 4.0 before 4.4.9, 5.0 before 6.1.7, 7.0 before 7.1.6, 8.0 before 8.0.4, and 8.1 before 8.1.3 contains a
5.8
CVE-2026-144455
FFmpeg 6.0 before 6.1.7, 7.0 before 7.1.5, and 8.0 before 8.0.3 contains an out-of-bounds write vulnerability
5.3
CVE-2026-142707
A vulnerability was detected in TRENDnet TEW-821DAP 1.12B01. Impacted is the function wlan_profile of the file
8.9
CVE-2026-144591
PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to re
8.5
CVE-2026-120096
Missing authorization in the push publishing endpoints REST API (/api/v1/environments/endpoints) and in the pu
8.2
CVE-2026-144617
Traccar 6.13.0 before 6.18.0 contains a denial of service vulnerability that allows remote attackers knowing a