Description
FFmpeg through 9.0.2 contains an uninitialized stack memory disclosure vulnerability in old_codec23() of libavcodec/sanm.c that leaks stack bytes into decoded frames. Attackers can supply a crafted LucasArts SMUSH/SANM animation using codec 23 with an inline table to expose decoder process stack memory in output video.
Published: 2026-11-09
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: Information Disclosure
Action: Apply Patch
AI Analysis

Impact

FFmpeg releases through version 9.0.2 contain a flaw in the old_codec23() function of the libavcodec/sanm.c module, which fails to properly initialize stack memory. When the decoder processes a specially crafted LucasArts SMUSH/SANM animation that utilizes codec 23 with an inline table, stack bytes are copied into the decoded video frames, inadvertently exposing data that was present on the decoder’s process stack. This information exposure is classified under CWE-908 and can reveal sensitive memory contents such as cryptographic keys, passwords or other confidential data that an attacker may reconstruct from the leaked frames.

Affected Systems

All users of the FFmpeg library where the software is compiled from source or otherwise distributed in versions up through 9.0.2. The vulnerability is limited to the FFmpeg product itself; no third‑party extensions are referenced in the advisory. Users should verify the version of FFmpeg they are running and ensure it is not one of the affected releases.

Risk and Exploitability

The NIST CVSS score of 4.8 indicates a moderate severity impact. While an EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, the likely attack vector is the delivery of a malicious video file to the FFmpeg decoder from an untrusted source. An attacker can simply supply the crafted SMUSH/SANM animation to any system that decodes such files, causing the stack data to be embedded in the output and potentially captured or examined by the user or an external observer. Because the vulnerability does not require elevated privileges, compromise is possible in a wide range of environments, including media processing pipelines, content delivery services, and any applications that invoke FFmpeg to decode user‑supplied video content.

Generated by OpenCVE AI on November 9, 2026 at 21:19 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to a version later than 9.0.2 that incorporates the fix for the uninitialized stack memory issue in the SANM codec
  • Restrict the FFmpeg decoding process to handle only trusted or sandboxed video inputs, and validate input files against known safe formats before processing
  • If an upgrade is not immediately possible, run FFmpeg inside a confined container or isolated environment with the least privilege required, minimizing the attack surface and reducing the risk of leaked stack data being accessed by other processes or external observers

Generated by OpenCVE AI on November 9, 2026 at 21:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
Description FFmpeg through 9.0.2 contains an uninitialized stack memory disclosure vulnerability in old_codec23() of libavcodec/sanm.c that leaks stack bytes into decoded frames. Attackers can supply a crafted LucasArts SMUSH/SANM animation using codec 23 with an inline table to expose decoder process stack memory in output video.
Title FFmpeg through 9.0.2 Uninitialized Stack Memory Disclosure via SANM Codec 23
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-908
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

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

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:12:07.485Z

Reserved: 2026-11-09T18:15:35.487Z

Link: CVE-2026-125266

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T20:18:13.233

Modified: 2026-11-09T20:18:13.233

Link: CVE-2026-125266

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T21:30:11Z

Weaknesses
  • CWE-908

    Use of Uninitialized Resource