CVE-2026-135722: FFmpeg before 9.1 Heap Buffer Overflow via WAV Muxer Peak Envelope Writer

Published Nov 24, 2026
·
Updated

FFmpeg before 9.1 contains a heap-based buffer overflow vulnerability in peakinitwriter() and wavwritepacket() in libavformat/wavenc.c that allows attackers to corrupt heap memory by supplying audio with zero channels. Attackers can provide a crafted PCM stream declaring no channels for WAV output with peak envelope enabled, causing out-of-bounds writes past peakmaxpos and peakmaxneg arrays, crashes, and potential code execution.

Affected Software

1 affected component
FFmpeg FFmpeg<9.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FFmpeg to a version that resolves this vulnerability.

    Fixed in 9.1

Event History

Nov 24, 2026
CVE Published
via MITRE·03:13 AM
Data Sourced
via MITRE·03:13 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required to trigger the vulnerability?

An attacker needs to supply a crafted PCM stream that declares zero audio channels. The stream must be processed for WAV output with peak envelope writing enabled.

2

Who can exploit this issue?

The provided vector indicates local access, low attack complexity, no privileges required, and user interaction required. Exploitation depends on a user or local workflow processing the attacker-controlled audio input.

3

How can I determine whether my environment is affected?

Systems using FFmpeg versions earlier than 9.1 are affected if they produce WAV output with peak envelope support enabled and may process PCM input declaring zero channels. The vulnerable code is identified in libavformat/wavenc.c, specifically peak_init_writer() and wav_write_packet().

4

What is the impact of successful exploitation?

The crafted input can cause out-of-bounds writes beyond the peak_maxpos and peak_maxneg heap arrays. This can corrupt heap memory, cause a crash, and may enable code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203