Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted Hap video with wrapping Snappy prefixes
-
DeliveryVictim decodes file in 32-bit FFmpeg build
-
ExploitInteger overflow wraps tex_size accumulator
-
ExecutionHeap write past tex_buf
-
ImpactCrash or potential code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that FFmpeg be compiled as a 32-bit build - the description and the diff's INT_MAX guard confirm the tex_size wrap is specific to 32-bit integer width, so 64-bit builds are not affected by this path. The attacker must get the Hap decoder invoked on an attacker-supplied, specially crafted frame whose Snappy length prefixes cause tex_size to overflow, and the CVSS vector's UI:P means a victim must process/open the malicious media. Limiting factors: local attack vector (no remote network trigger), High attack complexity, an explicit attack requirement (AT:P), required user interaction, and the 32-bit-only build constraint collectively make real-world exploitation conditional and non-trivial despite the High base score. |
| Impact | The input CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, score 7.3 High) describes a hard-to-reach bug rather than a drive-by: exploitation is local, carries High attack complexity, has an explicit attack requirement (AT:P), and needs user interaction (UI:P). Crucially the description scopes impact to 32-bit builds only, which sharply narrows the realistic target population since most server and modern desktop deployments are 64-bit. No KEV status is present in the input, so there is no confirmed active exploitation; no EPSS score was supplied, so exploitation probability cannot be quantified. There is no public exploit reference - only the upstream fix commit, the PR, and the VulnCheck advisory - so this is 'no public exploit identified at time of analysis.' The signals are internally consistent (local, complex, interaction-gated, no exploitation evidence) and point to a genuine but non-urgent memory-corruption flaw; the vuln.today decision label 'this_week' aligns with that - patch on a normal cadence, not an emergency. Missing data to flag explicitly: EPSS is absent, and the code-execution outcome is described as only 'potentially,' so impact beyond a crash is unverified. |
| Exploit ScenarioDerived | An attacker crafts a Hap-encoded video whose Snappy length prefixes wrap the 32-bit tex_size accumulator, then gets a victim to decode it with a 32-bit FFmpeg build (e.g., via a media player, transcoding service, or thumbnailer). During decode, decompress_chunks_thread() writes past the undersized tex_buf heap allocation, crashing the process or potentially achieving code execution. No public exploit code was identified in the provided sources, though the upstream fix commit is public. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Heap buffer overflow in FFmpeg's Hap decoder on 32-bit builds allows crafted Hap video frames to corrupt memory, crashing the application or potentially enabling code execution. FFmpeg through 9.0.2 is affected; the assessment states 64-bit builds are not affected by this path. The flaw is an integer overflow (CWE-190) rated 7.3 High under CVSS 4.0 (AV:L/AC:H/AT:P/PR:N/UI:P); exploitation is local, requires user interaction, and no public exploit was identified at time of analysis.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Apply commit 62c308e0416bb701447817fe6f0bff074d206215 (PR 25702) or upgrade to an FFmpeg build that includes it; 32-bit deployments should be prioritized because the overflow is specific to 32-bit integer width. The commit changes uncompressed_size to int64_t and adds an INT_MAX - ctx->tex_size guard before accumulating tex_size. Running the Hap decoder in a 64-bit build avoids this specific 32-bit wrap path, but switching architectures is a deployment change with compatibility costs and is not a substitute for the upstream fix. Consult the VulnCheck advisory at https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-hap-parse-frame-header for vendor guidance; no additional workaround is specified in the provided evidence.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FFmpeg's Hap decoder in libavcodec/hapdec.c parses frame headers containing Snappy-compressed chunk length prefixes. In 32-bit builds, crafted Snappy length prefixes can wrap the tex_size accumulator in hap_parse_frame_header(), after which decompress_chunks_thread() writes past tex_buf and produces a heap buffer overflow. The root cause is CWE-190 integer overflow; the upstream fix moves uncompressed_size to int64_t and rejects additions where uncompressed_size > INT_MAX - ctx->tex_size. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) and the assessed CVSS 3.1 vector (AV:L/AC:H/PR:N/UI:R) describe a local, high-complexity trigger requiring user interaction, not a remote network attack; the supplied evidence does not describe the precise heap layout or the mechanism by which code execution would be achieved beyond the stated potential impact.
Know when Ffmpeg gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:L and UI:R because a victim must decode an attacker's file; AC:H as only 32-bit builds with a specific integer-wrapping input trigger it; impact set High to match the potential code-execution outcome.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Executive ViewAI
A high-severity heap buffer overflow in FFmpeg's Hap decoder, affecting 32-bit builds, could allow local code execution if a user opens a crafted video file. While 64-bit systems are not vulnerable, any 32-bit deployments using FFmpeg for media processing should be reviewed for risk, as exploitation requires user interaction but no public exploit is currently known.
No vendor-released patch identified at time of analysis. Interim mitigations include migrating to 64-bit FFmpeg builds, disabling the Hap decoder if not required, sandboxing applications that process untrusted media, and restricting user permissions to limit potential code execution impact.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-120311
GHSA-hhqp-5v24-4hhg
NVD
CVE.org
EPSS
Exploit-DB