Description
FFmpeg through 9.0.2 contains an integer overflow vulnerability in hap_parse_frame_header() in libavcodec/hapdec.c that allows attackers to trigger a heap buffer overflow on 32-bit builds. Attackers can craft Hap video frames with Snappy length prefixes that wrap tex_size, causing decompress_chunks_thread() to write outside tex_buf and crash the application or potentially execute code.
Published: 2026-11-09
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

An integer overflow in hap_parse_frame_header() causes a heap buffer overflow on 32‑bit FFmpeg builds when the decoder processes specially crafted Hap video frames containing Snappy length prefixes. The overflow can overwrite nearby memory, potentially leading to a crash or, in the worst case, execution of arbitrary code on the host. The vulnerability is specifically tied to the integer wrap‑around that allows tex_size to exceed its bounds and is therefore a direct source of memory corruption.

Affected Systems

FFmpeg libraries up to and including version 9.0.2, on 32‑bit architectures, are affected. All builds that enable Hap decoding in libavcodec/hapdec.c and have not been updated beyond 9.0.2 are vulnerable. 64‑bit builds are not impacted by this particular overflow.

Risk and Exploitability

The CVSS score of 7.3 indicates a high severity exploit scenario. While the EPSS value is not available, the combination of a buffer overflow that can lead to code execution, coupled with the absence of mandatory input validation, suggests a non‑negligible risk if an attacker can supply or influence Hap video streams. The vulnerability is not listed in the CISA KEV catalog, but the presence of a heap overflow and the potential for arbitrary code execution warrants close attention. Attackers would need to deliver malicious Hap frames, likely via media streams or files, to trigger the flaw.

Generated by OpenCVE AI on November 9, 2026 at 21:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to version 9.0.3 or later, which includes the patch that prevents the integer overflow in hap_parse_frame_header().
  • If an immediate upgrade is not feasible, restrict the application to 64‑bit builds or disable Hap decoding entirely to eliminate the vulnerable code path.
  • As a temporary measure, reject or drop Hap video streams from untrusted sources until the library is updated, thereby preventing crafted frames from reaching the decoder.

Generated by OpenCVE AI on November 9, 2026 at 21:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Description FFmpeg through 9.0.2 contains an integer overflow vulnerability in hap_parse_frame_header() in libavcodec/hapdec.c that allows attackers to trigger a heap buffer overflow on 32-bit builds. Attackers can craft Hap video frames with Snappy length prefixes that wrap tex_size, causing decompress_chunks_thread() to write outside tex_buf and crash the application or potentially execute code.
Title FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-190
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/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-11-09T19:11:35.913Z

Reserved: 2026-11-09T18:15:19.944Z

Link: CVE-2026-125222

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:16:59.640

Modified: 2026-11-09T19:16:59.640

Link: CVE-2026-125222

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T21:15:14Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound