Skip to content
Threat Feed
high advisory

FFmpeg: Integer overflow in hap_parse_frame_header (CVE-2026-125222)

FFmpeg versions through 9.0.2 contain an integer overflow vulnerability in the hap_parse_frame_header function, which can be exploited by a crafted Hap video frame to cause a heap buffer overflow and potential remote code execution on 32-bit systems.

CVE search metadata

CVE search record: CVE-2026-125222. Severity: high. CVSS: 7.0. KEV: no. Product: FFmpeg (<= 9.0.2). Brief: FFmpeg: Integer overflow in hap_parse_frame_header (CVE-2026-125222). Brief link: https://feed.craftedsignal.io/briefs/2026-11-ffmpeg-integer-overflow/

Triage facts

Revision 1
Applicability
FFmpeg (<= 9.0.2)
Evidence
Unknown
Severity
High
Action
Elevated
Sources
1 public source
Freshness
Revision 1Nov 9, 19:55 UTC
Vulnerabilities
1 CVE
Source quality
A1Likely

FFmpeg through version 9.0.2 is vulnerable to an integer overflow within the hap_parse_frame_header() function located in libavcodec/hapdec.c. This flaw occurs when processing maliciously crafted Hap video frames that contain Snappy length prefixes. On 32-bit builds, these prefixes can trigger an integer wrap-around on the tex_size variable, subsequently leading to a heap buffer overflow in decompress_chunks_thread(). An attacker could potentially leverage this condition to cause an application crash or achieve arbitrary code execution.

Impact

Successful exploitation may result in an application crash (Denial of Service) or arbitrary code execution within the context of the user running the FFmpeg-dependent application. The vulnerability specifically impacts 32-bit environments.

Recommendation

  • Audit infrastructure to identify applications or services utilizing FFmpeg versions 9.0.2 or older.
  • Prioritize patching or updating FFmpeg-dependent software to versions utilizing patched FFmpeg libraries once available from upstream or distribution maintainers.
  • If immediate patching is not possible, implement strict input validation or sandboxing for untrusted video files processed by FFmpeg in 32-bit environments.

Immediate actions

Inventory all applications, plugins, or services that depend on FFmpeg libraries to identify exposure of 32-bit builds.

IT Operations 72h

Threat Hunt

Identify applications loading libavcodec libraries where the process is running as a 32-bit executable.

T1203 medium medium confidence hunt now

Data: Process architecture (32-bit vs 64-bit), Loaded modules list

Mitigations

Update FFmpeg to version > 9.0.2 when vendor releases patches or updates.

immediate IT Operations

CVE-2026-125222