FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()
- State
- Published
- Severity
- 7.3 High
- Published
- Nov 9, 2026
- Updated
- Nov 13, 2026
- Reserved
- Nov 9, 2026
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.
| Product | Versions |
|---|---|
| FFmpeg FFmpeg | 9.0.2 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.3 High | VulnCheck | |
| 3.1 | 7.0 High | VulnCheck |
Weaknesses
- CWE-190 Integer Overflow or Wraparound
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25702Issue Tracker
- Patch CommitPatch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/hapdec.c#L215Technical Details
- https://github.com/FFmpeg/FFmpegProduct Page
- VulnCheck Advisory: FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.