Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft audio file with huge sample rate and many channels
-
ExploitVictim app transcodes it to WavPack encoder
-
ExecutionInteger overflow in wavpack_encode_init block-size loop
-
ImpactInfinite loop hangs process (denial of service)
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 the application to invoke FFmpeg's WavPack encoder (wavpack_encode_init) on attacker-controlled audio - i.e., a workflow that selects WavPack as the output codec; pipelines that transcode to other codecs are not affected. The crafted input must declare extreme encoder parameters (a very large sample rate with a high channel count) so that block_samples multiplied by the channel count overflows a signed 32-bit int in the block-size computation, producing the infinite loop. Limiting factors per the input data: the CVSS vector is local (AV:L) and requires the victim/app to process the file (UI:P), impact is availability-only (process hang, no code execution or data disclosure), and the WavPack-output requirement means default media pipelines that do not target WavPack are not reachable. Note the elevated case: a server that automatically transcodes uploaded audio to WavPack could be reached remotely without user interaction, which is not reflected in the AV:L/UI:P metrics. |
| Impact | This is a medium-severity availability-only flaw, and the multi-source signals agree it is not a drop-everything emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, VA:H, score 6.8) describes a local, low-complexity, unauthenticated trigger that requires passive user interaction and yields only a denial of service (infinite loop / process hang) with no confidentiality or integrity impact. The vuln.today decision label is 'this_month' - a routine-patching priority, not act_now or emergency. It is NOT in CISA KEV, so exploitation is not confirmed active; no EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified here. No working exploit code was identified - the references are the fix PR, the vulnerable source line, the fixing commit, and a VulnCheck advisory, none of which is a weaponized PoC. One signal worth scrutinizing: the CVSS vector sets AV:L with UI:P, which fits a desktop user transcoding a local file, but the description's phrasing ('applications transcoding to WavPack') means a server-side service that auto-transcodes attacker-uploaded audio to WavPack could be reachable remotely without interaction (effectively AV:N/UI:N) - defenders running such a pipeline should treat the exposure as higher than the local vector implies. Overall: a real but bounded DoS, prioritized as scheduled patching rather than crisis response. |
| Exploit ScenarioDerived | An attacker crafts a malicious audio file - for example a WAV header declaring an enormous sample rate together with a high channel count - and causes a victim application or media-processing service to transcode it to the WavPack codec. During wavpack_encode_init(), the block_samples × channel-count computation overflows a 32-bit int, trapping the encoder in an infinite loop that hangs the process and burns CPU. No public working exploit code was identified, though the triggering condition is documented in the VulnCheck advisory and the fixing commit; the local vector (AV:L) and low complexity (AC:L) make reliable triggering straightforward once a file is processed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Denial of service through an infinite loop in FFmpeg's WavPack encoder (wavpack_encode_init, libavcodec/wavpackenc.c) affects FFmpeg releases through 9.0.2, hanging any process that transcodes a crafted audio file to WavPack. The attacker supplies a file that declares an extreme combination of sample rate and channel count, so the encoder's block-size calculation overflows a signed 32-bit integer and the loop that trims block_samples never terminates; impact is availability only (the affected process stalls), with no code execution or data disclosure described. Exploitation requires the workflow to actually select WavPack as the output codec, so pipelines transcoding to other codecs are not reachable; no public exploit code was identified at time of analysis and the priority signal places this in the this_month remediation window.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. The correction is commit e621da8ecdbef8edb8336cc899b962159dc2465c (pull request 25694), which casts avctx->ch_layout.nb_channels to int64_t in the two block-size loops in libavcodec/wavpackenc.c so the comparison against WV_MAX_SAMPLES and 40000 cannot overflow; distributors and embedders should backport that change or rebuild against a tree containing it, and should confirm with the vendor advisory before assuming a given release tarball already includes it. Because the hang only occurs when WavPack is chosen as the output codec, the practical interim control is to remove WavPack from the encoder allowlist used for untrusted input or to route such transcodes through a worker with a hard wall-clock timeout and process supervision so a stuck encoder is killed rather than consuming a slot indefinitely - the trade-off is loss of WavPack output for legitimate users and possible truncation of long-running legitimate jobs under aggressive timeouts. Restricting declared channel counts and sample rates at the ingest/demux layer also reduces exposure, but only if the validation is applied before the encoder is opened; none of these workarounds is a substitute for the upstream fix.
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
WavPack is a lossless/lossy audio codec supported by FFmpeg both as a decoder and, via libavcodec/wavpackenc.c, as an encoder. During encoder initialization the code derives a block size from the declared sample rate and channel count and then adjusts it in two loops: one that shrinks block_samples while block_samples * avctx->ch_layout.nb_channels exceeds WV_MAX_SAMPLES, and one that grows it while the same product is below 40000. The multiplication was performed in plain int arithmetic, so a crafted input declaring a very large sample rate together with a high channel count can make the product overflow a signed 32-bit value (CWE-190), preventing either loop condition from ever being satisfied. The upstream fix at commit e621da8ecdbef8edb8336cc899b962159dc2465c casts the channel count to int64_t in both loop conditions, keeping the comparison in 64-bit arithmetic so the loops terminate. The relevant code is at libavcodec/wavpackenc.c around line 147 in the n9.0.2 tree. Note that CVSS metrics here (AC:L, UI:P, A:H) describe severity and attack prerequisites, not the internal trigger; the exact input values needed to force the overflow are not enumerated in the available sources beyond the description of a WAV header with a huge sample rate and many channels.
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:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Local crafted-file trigger through the encoder requires the app to process the file (UI:R) and select WavPack output; impact is an availability-only hang, so A:H with C:N/I:N.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
FFmpeg through 9.0.2 contains an integer overflow vulnerability in wavpack_encode_init() in libavcodec/wavpackenc.c that causes an infinite loop when computing block size from sample rate and channel count. Attackers can supply a crafted audio file, such as a WAV header declaring a huge sample rate with many channels, to hang applications transcoding to WavPack.
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
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-120184
GHSA-xqq5-3h3q-pxq7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB