CVE-2026-125228

FFmpeg before 8.1.3 and 9.x before 9.0.2 Out-of-Bounds Read in Vorbis Encoder

Published Nov 9, 2026 CVSS 4.0 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
FFmpeg before 8.1.3 and 9.x before 9.0.2 contains an out-of-bounds read vulnerability in put_vector() in libavcodec/vorbisenc.c when NaN samples leave the codebook entry at -1. Attackers can supply audio with NaN float samples to the native Vorbis encoder, causing heap reads before arrays that crash the application or leak adjacent heap memory into output.

Analysis

AI-generated

Technical impact

A bug in FFmpeg’s Vorbis encoder uses an out-of-bounds read in the put_vector() routine when a NaN sample causes the codebook index to become –1. This causes the routine to read heap memory before the target array, which can result in a crash or leaking of adjacent heap contents into the encoded output. The flaw does not enable code execution but can lead to denial of service or unintended disclosure of information stored on the heap.

Affected Systems

FFmpeg, the open‑source multimedia framework, is affected by all releases before version 8.1.3 and by all 9.x releases prior to 9.0.2. Upgrading to any release equal to or newer than those thresholds applies the vendor fix and removes the vulnerability.

Risk and Exploitability

The CVSS score of 5.8 indicates medium severity. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, suggesting limited evidence of active exploitation. The likely attack vector is supply of malicious audio containing NaN float samples to the native Vorbis encoder, which may occur locally or via a service that processes user-supplied audio. Successful exploitation would crash the application or expose adjacent heap memory, potentially revealing sensitive data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to 8.1.3 or newer in the 8.x branch or to 9.0.2 or newer in the 9.x branch to apply the vendor patch.
  • If an upgrade is temporarily infeasible, modify libavcodec/vorbisenc.c to validate samples before invoking put_vector; clamp or reject NaN values to prevent the out-of-bounds read.
  • Restrict use of the native Vorbis encoder to trusted or sanitized audio streams; do not process untrusted audio that may contain NaN samples until the CVE is patched or mitigated.

Generated by OpenCVE AI on November 9, 2026 at 22:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FFmpeg before 8.1.3 and 9.x before 9.0.2 contains an out-of-bounds read vulnerability in put_vector() in libavcodec/vorbisenc.c when NaN samples leave the codebook entry at -1. Attackers can supply audio with NaN float samples to the native Vorbis encoder, causing heap reads before arrays that crash the application or leak adjacent heap memory into output.
Title FFmpeg before 8.1.3 and 9.x before 9.0.2 Out-of-Bounds Read in Vorbis Encoder
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-125
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 10, 2026, 3:58 PM
Reserved
Nov 9, 2026, 6:15 PM
Status
Analyzed
Published
Nov 9, 2026, 7:17 PM
Modified
Nov 30, 2026, 3:48 PM