☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Ffmpeg logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 🐛 CWE-121
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2026-64831

CVE-2026-64831 Buffer Overflow in Ffmpeg
📅 PUBLISHED: 2026-07-22 17:16 UTC 🔄 UPDATED: 2026-10-09 16:48 UTC
[ OFFICIAL PATCH DEPLOYED ↓ ] FIX: LIKELY — 2 distinct-origin sources confirm fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.85%
👁️
0.85% probability
21.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1203
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
License: Open Source
Affected: Ffmpeg — upgrade to patched release
CVSS VECTOR BREAKDOWN 8.8
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
8.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

Business Impact: This vulnerability affects FFmpeg, a ubiquitous multimedia framework used across streaming platforms, video editing software, security camera systems, and media servers. Attackers can achieve remote code execution by tricking a user or automated system into processing a crafted HEVC/H.265 video file. The likely attacker profile ranges from opportunistic malware distributors to targeted threat actors seeking to compromise media processing infrastructure.

Vulnerability Class & Attack Vector: This is a stack buffer overflow (CWE-121) triggered by a crafted HEVC/H.265 bitstream. The attack vector is network-accessible via any application or service that uses the vulnerable FFmpeg library to decode HEVC video. Exploitation requires user interaction (e.g., opening a malicious file or streaming a crafted video).

Urgency Assessment: The CVSS score of 8.8 (High) indicates a severe risk due to the potential for arbitrary code execution. However, the EPSS probability of 0.0% suggests that exploitation is not currently automated or widespread in the wild. The lack of a confirmed patch elevates the urgency for organizations using FFmpeg 8.0 through 8.1.2 to implement immediate mitigations.

Key Facts:

  • Vendor: FFmpeg
  • Affected Versions: 8.0 through 8.1.2
  • Patch Status: Unpatched as of 2026-07-22
  • CISA KEV: Not listed as of this report.
⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

Qualitative Severity: High

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

  • AV:N (Network): The vulnerability is exploitable remotely by delivering a crafted bitstream over a network (e.g., via HTTP streaming, file download, or RTSP).
  • AC:L (Low): No special attack conditions are required. The attacker only needs to craft a valid HEVC bitstream with a malicious vps_num_hrd_parameters value.
  • PR:N (None): The attacker does not need any authentication or privileges to deliver the malicious file.
  • UI:R (Required): The victim must interact with the malicious file, such as opening it in a media player or a service that processes the file with FFmpeg.
  • S:U (Unchanged): The compromise is confined to the vulnerable FFmpeg process and does not directly affect other system components.
  • C:H/I:H/A:H (High/High/High): Successful exploitation can lead to complete compromise of confidentiality, integrity, and availability of the affected process, potentially allowing arbitrary code execution.

EPSS Interpretation: The EPSS probability of 0.0% indicates that as of the publication date, there is no evidence of active, automated exploitation in the wild. This is common for newly published CVEs and does not diminish the potential severity. It provides a window for defenders to implement mitigations before weaponized exploits become available.

Historical Comparison: This vulnerability is similar in class to CVE-2023-5002 (a stack buffer overflow in FFmpeg's H.264 decoder) and CVE-2024-31578 (a heap buffer overflow in FFmpeg's AV1 decoder). These CVEs highlight a recurring pattern of memory safety issues in FFmpeg's video decoding components, particularly in handling malformed bitstream parameters.

Temporal & Environmental Considerations: With no patch available, the temporal score remains high. Organizations should consider the environmental score based on their exposure: media streaming services, video surveillance systems, and any application that processes user-uploaded HEVC content are at the highest risk.

Technical Deep Dive & Attack Mechanics

Step-by-Step Exploitation:

  1. Crafted Bitstream: The attacker creates a malicious HEVC/H.265 bitstream. The key malicious element is an oversized vps_num_hrd_parameters value within the Video Parameter Set (VPS) NAL unit. The HEVC standard defines HEVC_MAX_SUB_LAYERS as a constant (typically 7). The attacker sets vps_num_hrd_parameters to a value greater than this constant.

  2. Delivery: The crafted bitstream is embedded in a supported container format (e.g., MP4, MKV, TS) and delivered to the target. This could be via a malicious website, a phishing email with an attachment, or a compromised streaming service.

  3. Triggering the Decode: The target application uses FFmpeg to decode the HEVC stream. The decoding process calls the vk_hevc_end_frame function, which is part of the Vulkan hardware-accelerated HEVC decoder.

  4. Stack Buffer Overflow: Inside vk_hevc_end_frame, the code reads the vps_num_hrd_parameters value from the bitstream and uses it as an index or size for a stack-allocated array. Because the value exceeds HEVC_MAX_SUB_LAYERS, the write operation overflows the stack buffer, overwriting adjacent stack frames, including the return address.

  5. Arbitrary Code Execution: By carefully crafting the overflow data, the attacker can overwrite the return address of vk_hevc_end_frame to point to a shellcode or a ROP chain. When the function returns, execution is redirected to the attacker-controlled code, achieving arbitrary code execution within the context of the FFmpeg process.

Root Cause Analysis: The root cause is a missing or insufficient bounds check on the vps_num_hrd_parameters value before it is used to index into a stack-allocated array. The developer assumed the value would always be within the valid range defined by HEVC_MAX_SUB_LAYERS, but did not validate this assumption against attacker-controlled input.

Attack Surface:

  • Protocols: HTTP, HTTPS, RTSP, RTMP, or any protocol used to deliver video content.
  • Interfaces: Any application or service that uses FFmpeg's libavcodec to decode HEVC video. This includes media players (VLC, MPV), video editors (DaVinci Resolve, Adobe Premiere), streaming servers (Nginx with RTMP module), and security camera systems.
  • Pre-conditions: The target must be running FFmpeg version 8.0 to 8.1.2 and must process a crafted HEVC bitstream. No special network access or authentication is required beyond the ability to deliver the file.

Attack Variants: The primary variant is the stack buffer overflow in the Vulkan decoder. There may be similar vulnerabilities in other hardware-accelerated decoders (e.g., VAAPI, CUDA) if they share the same vulnerable code path.

Why Standard Defenses May Fail:

  • File Scanning: Traditional antivirus may not detect the malicious bitstream as it is structurally valid HEVC data with a single malformed parameter.
  • Network Firewalls: The attack traffic appears as normal video streaming or file download traffic.
  • Sandboxing: While sandboxing can limit the impact of code execution, the overflow itself can still crash the process or be used for data exfiltration if the sandbox is not properly configured.

Vulnerable vs. Patched Code Analysis

Vulnerable Code (Pseudocode):

// Inside vk_hevc_end_frame
int vps_num_hrd_parameters = read_from_bitstream(bitstream); // No bounds check
int array[HEVC_MAX_SUB_LAYERS]; // Stack-allocated array
for (int i = 0; i < vps_num_hrd_parameters; i++) {
    array[i] = read_hrd_parameter(bitstream); // Overflow if vps_num_hrd_parameters > HEVC_MAX_SUB_LAYERS
}

Patched Code (Expected):

// Inside vk_hevc_end_frame
int vps_num_hrd_parameters = read_from_bitstream(bitstream);
if (vps_num_hrd_parameters > HEVC_MAX_SUB_LAYERS) {
    // Handle error: return error code or clamp the value
    return AVERROR_INVALIDDATA;
}
int array[HEVC_MAX_SUB_LAYERS];
for (int i = 0; i < vps_num_hrd_parameters; i++) {
    array[i] = read_hrd_parameter(bitstream);
}

Patch Analysis: The fix is straightforward: add a bounds check on the vps_num_hrd_parameters value before using it. The patch is sufficient to prevent the overflow. However, it is critical that the patch is applied to all code paths that read this parameter, not just the Vulkan decoder.

Regression Considerations: The patch should not introduce regressions as it only adds a validation check that rejects invalid bitstreams. Applications that previously processed malformed bitstreams (which were technically non-compliant with the HEVC standard) may now fail to decode them, but this is the correct behavior.

Timeline & Disclosure History

  • CVE Publication Date: 2026-07-22T17:16:58.697
  • Estimated Discovery: The vulnerability was likely discovered through internal code auditing or fuzzing by a security researcher or the FFmpeg team.
  • Disclosure Process: The CVE was published by the NVD. No information is available about coordination with the FFmpeg vendor.
  • Known Exploitation in the Wild: No known active exploitation as of 2026-07-22.
  • CISA KEV: Not listed.

Threat Intelligence Context

Threat Actor Profile: This vulnerability is attractive to a wide range of threat actors:

  • APT Groups: Nation-state actors may use this to compromise media organizations, surveillance systems, or any target that processes video.
  • Ransomware Operators: Could use this to gain initial access to a network by sending a malicious video file to an employee.
  • Script Kiddies: Once a public PoC is released, less sophisticated actors may use it for opportunistic attacks.

Attack Campaign Context: No specific campaigns are associated with this CVE at this time. However, similar FFmpeg vulnerabilities have been used in targeted attacks against media companies.

Geographic Targeting: No specific geographic pattern is discernible from the vulnerability description.

Industry Verticals Most at Risk:

  • Media & Entertainment: Streaming services, video editing studios.
  • Security & Surveillance: Camera systems that use FFmpeg for video processing.
  • Technology: Cloud video processing platforms, content delivery networks.
  • Telecommunications: Video conferencing and streaming infrastructure.

Connection to Similar Vulnerabilities: This CVE is part of a long history of buffer overflows in video codec implementations, including CVEs in libavcodec, libhevc, and x265. The pattern of insufficient bounds checking on bitstream parameters is a common weakness.

Exploitation & Lab Setup

Red Team Section

Lab Setup:

  1. Environment: Ubuntu 22.04 LTS virtual machine.
  2. Vulnerable Software: Install FFmpeg 8.1.2 from source or a package repository.
    wget https://ffmpeg.org/releases/ffmpeg-8.1.2.tar.bz2
    tar -xjf ffmpeg-8.1.2.tar.bz2
    cd ffmpeg-8.1.2
    ./configure --enable-vulkan
    make -j$(nproc)
    sudo make install
    
  3. Crafting the Payload: Use a tool like hevc_analyzer or a custom Python script to modify a valid HEVC bitstream. The key is to set the vps_num_hrd_parameters field in the VPS NAL unit to a value greater than 7 (e.g., 100).
  4. Triggering the Vulnerability:
    ffmpeg -i malicious.hevc -f null -
    
    This command will attempt to decode the malicious file, triggering the overflow.

Exploitation Walkthrough:

  1. Craft the Bitstream: Create a valid HEVC bitstream. Locate the VPS NAL unit (NAL unit type 32). Modify the vps_num_hrd_parameters field to a large value (e.g., 0xFF).
  2. Overwrite Return Address: The stack layout must be analyzed to determine the exact offset to the return address. This is architecture and compiler-dependent. For a standard x86_64 system, the offset might be around 64-128 bytes from the start of the array.
  3. Deliver Payload: Embed the crafted bitstream in an MP4 container and host it on a web server or send it via email.
  4. Execute: When the target opens the file with a vulnerable application, the overflow occurs, and the attacker's shellcode or ROP chain is executed.

Expected Output: The FFmpeg process will crash (segmentation fault) if the overflow corrupts critical data. With a carefully crafted payload, the attacker can achieve a reverse shell or execute arbitrary commands.

Post-Exploitation: After gaining code execution, the attacker can:

  • Install persistent backdoors.
  • Exfiltrate data from the compromised system.
  • Move laterally within the network.

Blue Team Section

Detection:

  • Log Entries: FFmpeg may log errors like Invalid VPS parameter or Stack smashing detected before crashing.
  • Network Traffic: Look for HEVC video streams with unusually large VPS NAL units. This can be detected by analyzing the NAL unit header.
  • Endpoint Indicators: Unexpected crashes of FFmpeg or applications using it. Process memory dumps may show corrupted stack frames.

Indicators of Compromise (IOCs)

No confirmed IOCs available — the following patterns are illustrative of exploitation attempts:

  • Network IOCs:
    • HEVC bitstreams with a VPS NAL unit containing a vps_num_hrd_parameters value > 7.
    • Unusually large VPS NAL units (e.g., > 100 bytes).
  • File System Artifacts:
    • Temporary files created by FFmpeg during decoding (e.g., in /tmp).
    • Core dumps from the crashed FFmpeg process.
  • Process Execution Anomalies:
    • FFmpeg process crashing with a segmentation fault.
    • FFmpeg process spawning a shell or making outbound network connections.
  • Log Entries:
    • System logs: ffmpeg[PID]: segfault at IP ...
    • FFmpeg logs: [hevc @ 0x...] Invalid VPS parameter

STIX-like IOC List:

Type Value Description
File [EXAMPLE — not a real IOC] Malicious HEVC file with oversized vps_num_hrd_parameters
Network [EXAMPLE — not a real IOC] Outbound connection from FFmpeg process to attacker C2
Log [EXAMPLE — not a real IOC] ffmpeg[1234]: segfault at 0x7f...

Detection Engineering

YARA Rule

rule CVE_2026_64831_HEVC_Overflow {
    meta:
        description = "Detects HEVC bitstreams with oversized vps_num_hrd_parameters"
        author = "Valters IT Hub"
        date = "2026-07-22"
        reference = "https://www.valtersit.com/cve/cve-2026-64831"
    strings:
        $vps_nal_header = { 40 01 ?? ?? }  // NAL unit type 32 (VPS) with layer ID 0
        $vps_hrd_param = { ?? 08 }          // vps_num_hrd_parameters field (8 bits) followed by value > 7
    condition:
        $vps_nal_header and #vps_hrd_param > 1
}

Sigma Rule (SIEM)

title: CVE-2026-64831 FFmpeg HEVC Decoder Exploitation
id: 65705248-74b1-4acb-acaa-8ab10a01e66d
status: experimental
description: Detects crashes or errors from FFmpeg HEVC decoding that may indicate exploitation of CVE-2026-64831
author: Valters IT Hub
date: 2026-07-22
references:
    - https://www.valtersit.com/cve/cve-2026-64831
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: '/ffmpeg'
        CommandLine|contains: 'hevc'
    condition: selection
falsepositives:
    - Legitimate decoding of valid HEVC files
level: high

Suricata IDS Rule

alert ip any any -> any any (msg:"CVE-2026-64831 HEVC VPS Overflow Attempt"; content:"|40 01|"; offset:0; depth:2; content:"|08|"; within:10; byte_test:1,>,7,0; sid:1000001; rev:1;)

Elastic (EQL) Query

process where event.type == "start" and process.name == "ffmpeg" and process.args : "*hevc*"

Splunk SPL Query

index=linux_secure sourcetype=syslog "ffmpeg" "segfault" OR "stack smashing"
| table _time, host, process, message

Wazuh Rule

<rule id="100001" level="12">
    <if_sid>530</if_sid>
    <field name="program_name">ffmpeg</field>
    <match>segfault|stack smashing</match>
    <description>CVE-2026-64831: Possible FFmpeg HEVC decoder exploitation</description>
    <group>cve_2026_64831,</group>
</rule>

Remediation & Mitigation

Immediate Actions (0-24 hours):

  1. No Patch Available: Since no official patch exists, the primary mitigation is to disable HEVC decoding in FFmpeg or switch to a software decoder.
    • Disable Vulkan HEVC Decoder: Recompile FFmpeg without the --enable-vulkan flag.
    • Use Software Decoder: Force FFmpeg to use the software HEVC decoder by specifying -c:v libx265 or -c:v hevc (software).
  2. Network-Level Mitigation:
    • Block or inspect HEVC video streams at the network perimeter.
    • Use a web application firewall (WAF) to inspect uploaded video files for malformed HEVC headers.
  3. Access Control: Restrict the ability to upload or process HEVC files to trusted users only.

Short-term (1-7 days):

  1. Configuration Hardening:
    • Monitor FFmpeg processes for crashes.
    • Implement application sandboxing (e.g., Docker, seccomp) to limit the impact of code execution.
  2. Monitoring Implementation:
    • Deploy the detection rules provided in this report.
    • Set up alerts for FFmpeg crashes or unusual process behavior.
  3. Vulnerability Scanning:
    ffmpeg -version | grep "ffmpeg version 8\.[0-1]\."
    

Long-term:

  1. Architecture Changes:
    • Migrate to a different multimedia framework (e.g., GStreamer) if FFmpeg is not critical.
    • Use memory-safe languages (Rust, Go) for new video processing components.
  2. Security Control Improvements:
    • Implement fuzzing for all video decoding components.
    • Add runtime bounds checking (e.g., AddressSanitizer) in development builds.
  3. Developer Training:
    • Train developers on secure coding practices for handling untrusted input, especially in C/C++.

Validation:

  • Check FFmpeg Version:
    ffmpeg -version 2>&1 | grep -E "ffmpeg version 8\.[0-1]\." && echo "VULNERABLE" || echo "NOT VULNERABLE"
    
  • Test with a Crafted File: Use a proof-of-concept HEVC file (if available) to confirm the vulnerability is mitigated.

References & Resources


Report generated by Valters IT Hub Neural Engine v25 | 2026-07-22 | https://www.valtersit.com/cve/cve-2026-64831

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2026-64831/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.