---
id: CVE-2026-125234
title: >-
  FFmpeg through 9.0.2 WavPack Encoder Integer Overflow Infinite Loop via
  wavpack_encode_init
summary: >-
  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…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-190
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg <= 9.0.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-09T20:57:25.833097Z'
published: '2026-11-09'
updated: '2026-11-09'
sourceUpdated: '2026-11-09T21:06:53.992Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125234'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25694'
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/e621da8ecdbef8edb8336cc899b962159dc2465c
    label: Patch Commit
  - url: 'https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/wavpackenc.c#L147'
  - url: 'https://github.com/FFmpeg/FFmpeg'
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-wavpack-encoder-integer-overflow-infinite-loop-via-wavpack-encode-init
    label: >-
      VulnCheck Advisory: FFmpeg through 9.0.2 WavPack Encoder Integer Overflow
      Infinite Loop via wavpack_encode_init
tags:
  - cve.org
ingestedAt: '2026-11-09T19:18:02.589Z'
---

## Overview

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.

## Affected

- `FFmpeg <= 9.0.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
