---
title: "CVE-2026-125222: FFmpeg - Integer Overflow"
description: "FFmpeg <= 9.0.2 contains an integer overflow in hap_parse_frame_header() in libavcodec/hapdec.c, letting attackers craft Hap video frames to trigger heap buffer overflow on 32-bit builds, exploit requires crafted video frames."
url: https://panop.io/threat-heartbeat/CVE-2026-125222/
---

# CVE-2026-125222 FFmpeg - Integer Overflow

FFmpeg <= 9.0.2 contains an integer overflow in hap\_parse\_frame\_header() in libavcodec/hapdec.c, letting attackers craft Hap video frames to trigger heap buffer overflow on 32-bit builds, exploit requires crafted video frames.

CVSS base score 7.0 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

0.15% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-125222)

## Details

Type

Integer Overflow

Impact

Remote Code Execution, Denial Of Service

CVSS vector

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

Published

9 November 2026

Updated

11 November 2026

Weakness

[CWE-190](https://cwe.mitre.org/data/definitions/190.html)

## Vendor fix

Update to the latest FFmpeg version beyond 9.0.2.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-125222](https://nvd.nist.gov/vuln/detail/CVE-2026-125222)
- [https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-hap-parse-frame-header](https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-hap-parse-frame-header)
- [https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25702](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25702)
- [https://github.com/FFmpeg/FFmpeg](https://github.com/FFmpeg/FFmpeg)
- [https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/hapdec.c#L215](https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/hapdec.c#L215)
- [https://github.com/FFmpeg/FFmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215](https://github.com/FFmpeg/FFmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
