Skip to main content

FFmpeg CVE-2026-125234

| EUVDEUVD-2026-120184 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-11-09 disclosure@vulncheck.com GHSA-xqq5-3h3q-pxq7
6.8
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft audio file with huge sample rate and many channels
  2. Exploit
    Victim app transcodes it to WavPack encoder
  3. Execution
    Integer overflow in wavpack_encode_init block-size loop
  4. Impact
    Infinite 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

FFmpeg 0 ≤9.0.2

Affected Packages

euvd ffmpeg no fix

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

Vendor (vulncheck) PRIMARY 6.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.5 MEDIUM

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec is embedded across countless media apps and services
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

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

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

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

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy