Description
FFmpeg before commit 9d786e4 contains a stack buffer overflow in the MPEG-PS muxer (libavformat/mpegenc.c). When muxing input with more streams than the muxer's fixed-size stack buffer accommodates, the buffer is overflowed. A crafted input with an excessive number of streams triggers the overflow during MPEG-PS muxing.
Published: 2026-08-19
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

FFmpeg versions prior to commit 9d786e4 contain a stack buffer overflow in the MPEG-PS muxer (libavformat/mpegenc.c). When an input file is parsed that contains more streams than the muxer's fixed-size stack buffer can hold, the overflow occurs during the creation of the MPEG-PS file header. This flaw can be triggered by an attacker who owns or controls the input file, allowing arbitrary code execution or denial of service if the overflow corrupts critical data structures. The weakness corresponds to an unchecked buffer write (CWE-120 and CWE-121).

Affected Systems

The vulnerability impacts the FFmpeg project, affecting all binaries built from source before the commit that introduces the fix (9d786e4b5e9b8482651928574de33772aeee7be1). Users of pre-release or older stable releases should verify the used version. The vulnerability specifically pertains to the MPEG-PS muxer component of FFmpeg.

Risk and Exploitability

The CVSS base score is 8.5, indicating a high severity. The EPSS score is less than 1%, indicating a very low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is through a crafted media file that contains an excessive number of streams; when ffmpeg processes this file, the stack buffer overflows. The flaw affects the integrity of the program’s execution environment, and an attacker who can provide such a file to ffmpeg can gain local code execution on the host running the process.

Generated by OpenCVE AI on August 28, 2026 at 19:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update FFmpeg to a release that includes the commit after 9d786e4b5e9b8482651928574de33772aeee7be1.
  • Prior to launching ffmpeg, perform a sanity check on the input file to ensure the number of media streams does not exceed the tool’s documented limits, or use a wrapper script to enforce a maximum stream count.
  • If upgrading immediately is impractical, execute ffmpeg within a sandboxed or containerized environment and ensure that untrusted media files are processed in isolation from critical system resources.

Generated by OpenCVE AI on August 28, 2026 at 19:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
References
Metrics threat_severity

None

threat_severity

Important


Thu, 27 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 19 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg

Wed, 19 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Description FFmpeg before commit 9d786e4 contains a stack buffer overflow in the MPEG-PS muxer (libavformat/mpegenc.c). When muxing input with more streams than the muxer's fixed-size stack buffer accommodates, the buffer is overflowed. A crafted input with an excessive number of streams triggers the overflow during MPEG-PS muxing.
Title FFmpeg Stack Buffer Overflow in MPEG-PS Muxer via mpegenc.c
Weaknesses CWE-121
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/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-08-27T16:25:01.060Z

Reserved: 2026-08-17T18:39:57.661Z

Link: CVE-2026-75142

cve-icon Vulnrichment

Updated: 2026-08-27T16:12:34.031Z

cve-icon NVD

Status : Received

Published: 2026-08-19T17:21:12.437

Modified: 2026-08-27T17:19:54.313

Link: CVE-2026-75142

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-19T16:24:57Z

Links: CVE-2026-75142 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T20:00:16Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-121

    Stack-based Buffer Overflow