Description
FFmpeg versions 8.0 through 8.1.2 contains a stack buffer overflow vulnerability in the Vulkan HEVC hardware decoder that allows remote attackers to overwrite return addresses and adjacent stack frames by supplying a crafted HEVC/H.265 bitstream. Attackers can embed a malicious vps_num_hrd_parameters value exceeding HEVC_MAX_SUB_LAYERS in any supported container format to overflow stack-allocated arrays in the vk_hevc_end_frame function, potentially achieving arbitrary code execution.
Published: 2026-07-22
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

FFmpeg versions 8.0 through 8.1.2 contain a stack buffer overflow in the Vulkan HEVC hardware decoder. A crafted HEVC/H.265 bitstream that embeds a malicious vps_num_hrd_parameters value exceeding the HEVC_MAX_SUB_LAYERS limit can overflow stack‑allocated arrays in the vk_hevc_end_frame function, allowing an attacker to overwrite return addresses and adjacent stack frames. This weakness, identified as CWE‑121, can lead to arbitrary code execution when the vulnerable decoder processes such a malicious stream.

Affected Systems

The flaw affects FFmpeg releases from 8.0 up to and including 8.1.2. All systems that employ these FFmpeg versions for media decoding—regardless of operating system—are potentially impacted because the vulnerability resides in the core library used by numerous multimedia applications.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity assessment. The EPSS score is reported as < 1 %, implying that exploitation is expected to be rare, but the remote nature of the flaw and the lack of a requirement for privileged access mean that an attacker who can supply a crafted HEVC/H.265 stream to the target can trigger the overflow. The vulnerability is not listed in the CISA KEV catalog, which suggests limited known exploitation but does not negate the risk of future attacks.

Generated by OpenCVE AI on August 3, 2026 at 23:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to a non‑vulnerable version when a vendor patch becomes available
  • If an upgrade cannot be applied immediately, disable Vulkan‑based HEVC decoding in FFmpeg’s configuration or use software decoding instead, removing the vulnerable code path
  • Limit the system’s exposure to untrusted HEVC/H.265 content by implementing network or file‑incoming filters that block or quarantine streams containing suspicious or malformed bitstreams

Generated by OpenCVE AI on August 3, 2026 at 23:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

Sat, 25 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
References
Metrics threat_severity

None

threat_severity

Important


Thu, 23 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg

Wed, 22 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Description FFmpeg versions 8.0 through 8.1.2 contains a stack buffer overflow vulnerability in the Vulkan HEVC hardware decoder that allows remote attackers to overwrite return addresses and adjacent stack frames by supplying a crafted HEVC/H.265 bitstream. Attackers can embed a malicious vps_num_hrd_parameters value exceeding HEVC_MAX_SUB_LAYERS in any supported container format to overflow stack-allocated arrays in the vk_hevc_end_frame function, potentially achieving arbitrary code execution.
Title FFmpeg 8.0 - 8.1.2 Stack Buffer Overflow in Vulkan HEVC Decoder
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:06:02.677Z

Reserved: 2026-07-20T18:27:48.161Z

Link: CVE-2026-64831

cve-icon Vulnrichment

Updated: 2026-07-23T13:45:31.564Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-22T17:16:58.697

Modified: 2026-07-28T17:00:51.803

Link: CVE-2026-64831

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-22T16:35:43Z

Links: CVE-2026-64831 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T23:30:17Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-121

    Stack-based Buffer Overflow