---
id: CVE-2026-75142
title: >-
  FFmpeg before commit 9d786e4 contains a stack buffer overflow in the MPEG-PS
  muxer (libavformat/mpegenc.c)
summary: >-
  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 in…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-121
published: '2026-08-19'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:36:38.867'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-75142'
references:
  - url: >-
      https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/9d786e4b5e9b8482651928574de33772aeee7be1
    label: disclosure@vulncheck.com
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24087'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-stack-buffer-overflow-in-mpeg-ps-muxer-via-mpegenc-c
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00199
epssPercentile: 0.08691
ingestedAt: '2026-09-09T21:22:45.540Z'
---

## Overview

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.

## Remediation

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