Description
FFmpeg through 9.0.2 contains an integer overflow in cbs_jpeg_write_scan() in libavcodec/cbs_jpeg.c that causes a heap buffer overflow on 32-bit builds. Attackers can supply a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like filter_units, to corrupt the heap or crash the application.
Published: 2026-11-09
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Heap Buffer Overflow
Action: Assess Impact
AI Analysis

Impact

An integer overflow in the cbs_jpeg_write_scan() function of FFmpeg results in a heap buffer overflow on 32‑bit builds. When an attacker supplies a crafted MJPEG or JPEG stream that includes a scan 512 MiB or larger, the overflow can corrupt heap memory or cause the application to crash.

Affected Systems

FFmpeg, version 9.0.2 or earlier on 32‑bit architectures.

Risk and Exploitability

The CVSS score is 7.3, indicating high severity. No EPSS information is available and the issue is not listed in CISA KEV, suggesting that exploitation is possible but not yet widely observed. Attackers can exploit the flaw by delivering a malicious MJPEG/JPEG stream to any component that uses CBS bitstream filters such as filter_units, which invoke cbs_jpeg_write_scan(). The vulnerability may lead to memory corruption, application crashes, and potentially denial of service if an attacker can influence process control after the overflow.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check recent FFmpeg releases or vendor advisories for a fix to the cbs_jpeg_write_scan integer overflow and update if available.
  • Disable or restrict the use of CBS bitstream filters that process untrusted JPEG/MJPEG streams, ensuring only trusted data is fed to the encoder/decoder.
  • Run FFmpeg in a sandboxed environment or monitor memory usage to detect and contain heap corruption during runtime; consider deploying tools such as AddressSanitizer or an appropriate ASLR strategy.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Description FFmpeg through 9.0.2 contains an integer overflow in cbs_jpeg_write_scan() in libavcodec/cbs_jpeg.c that causes a heap buffer overflow on 32-bit builds. Attackers can supply a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like filter_units, to corrupt the heap or crash the application.
Title FFmpeg through 9.0.2 Heap Buffer Overflow via cbs_jpeg_write_scan Integer Overflow
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-190
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

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

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:11:40.151Z

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

Link: CVE-2026-125227

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:17:00.397

Modified: 2026-11-09T19:17:00.397

Link: CVE-2026-125227

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound