Skip to main content

FFmpeg CVE-2026-135725

| EUVDEUVD-2026-133624 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-11-24 VulnCheck GHSA-crqc-2c84-mx98
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Induce FFmpeg client to publish to malicious RTMP server
  2. Delivery
    Server sends Set Chunk Size on high channel id with extended timestamp
  3. Exploit
    handle_chunk_size() echoes value into 16-byte pkt_hdr
  4. Execution
    Overflow stack buffer in ff_rtmp_packet_write()
  5. Impact
    Corrupt publishing client stack (crash, possible code execution)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to use FFmpeg (before 9.1) as an RTMP publishing client and to connect/push a stream to an attacker-controlled or compromised RTMP server - it is not triggered by FFmpeg acting as a server or by inbound traffic. The attacker must control the server side to send a Set Chunk Size packet on a high channel id with an extended timestamp that handle_chunk_size() echoes back. Limiting factors: user interaction is required (someone must initiate the outbound publish to the malicious endpoint, per UI:P), there is no authentication barrier on the attacker side, and the overflow is bounded to roughly two attacker-controlled bytes past a 16-byte stack buffer, which constrains impact toward crashes rather than guaranteed code execution.

Impact

This is a client-side memory-safety flaw, not a server-side remotely-reachable one: the victim is an FFmpeg process that publishes an RTMP stream, and the attacker is the malicious (or compromised) RTMP server it connects to. That framing matters more than the raw 8.5 score. The provided CVSS 4.0 vector rates AV:L, which is debatable - the attack is delivered over the network from a remote malicious server, so AV:N (with user interaction) is more defensible; I note this discrepancy rather than treating AV:L as settled. UI:P/required interaction is the key limiter: exploitation only occurs if someone induces the FFmpeg client to publish to attacker-controlled infrastructure, which greatly narrows mass-exploitation potential. On the exploitation signals: not listed in CISA KEV, no EPSS score was provided (missing, not zero), and no working public exploit was identified - only a vendor PR, the fix commit, and a VulnCheck advisory. The vuln.today decision label is 'this_week', consistent with a patch-available, non-emergency priority. Critically, the source diff shows the fix merely enlarges the stack buffer from 16 to 18 bytes, i.e. the overflow is a bounded ~2-byte write of attacker-controlled (echoed extended-timestamp) data; a crash/DoS is the reliable outcome, while reliable arbitrary code execution is unproven. Net: a genuine bug in a ubiquitous library, but the narrow trigger path (victim must publish to a malicious RTMP server) and bounded overflow place it below drop-everything urgency - patch on the vendor's this_week cadence.

Exploit ScenarioDerived

An attacker operates or hijacks an RTMP server and lures a victim running FFmpeg (before 9.1) into publishing a stream to it (e.g. an ffmpeg ... -f flv rtmp://attacker/... push). Mid-session the server sends a Set Chunk Size packet on a high channel id carrying an extended timestamp; FFmpeg's handle_chunk_size() echoes that value back through ff_rtmp_packet_write(), overflowing the 16-byte stack header buffer with attacker-controlled bytes and corrupting the publishing client's stack. No public exploit was identified, and because the overflow is bounded to roughly two bytes a crash (DoS) is the realistic result while code execution is uncertain.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 24, 2026

Stack-based buffer overflow in FFmpeg's RTMP publishing client (versions before 9.1) lets a malicious or compromised RTMP server overwrite a 16-byte stack header buffer in ff_rtmp_packet_write(), corrupting or crashing the process that is pushing the stream. The flaw is client-side only: it triggers when FFmpeg acts as an RTMP publisher connecting outbound to an attacker-controlled server, and the user must initiate that publish (unauthenticated from the attacker's side, but user interaction is required). The overflow is bounded to roughly two attacker-controlled bytes past the buffer, so impact is weighted toward denial of service and limited integrity loss rather than confirmed code execution; there is no CISA KEV listing and no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: FFmpeg 9.1 - upgrade to 9.1 or later, or backport upstream commit 041098a1a3bee481a1c8e905257ba04dad0c60a1 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24916), which enlarges pkt_hdr from 16 to 18 bytes in libavformat/rtmppkt.c; distributors that package libavformat should pick up the corresponding stable-branch rebuild rather than shipping only the CLI. Because exploitation depends entirely on the publishing client connecting to an attacker-controlled endpoint, an effective interim control is to publish RTMP only to explicitly trusted, authenticated ingest servers and to avoid pushing streams to untrusted or user-supplied RTMP URLs - the trade-off is loss of ad-hoc or third-party streaming targets until patched. Where RTMP ingest is not required, disabling the RTMP/RTMPE muxer at build time (--disable-muxers style configuration) or switching publishing workflows to a different protocol removes the exposure entirely, at the cost of functionality. Note that a crash of the publishing process can interrupt an in-progress broadcast, so remediation should be scheduled promptly under the provided this_week priority rather than deferred; the vendor advisory and commit message should be consulted for the exact branch-specific versions shipped by each downstream packager.

Affected VersionsENISA

FFmpeg 0 <9.1

Affected Packages

euvd ffmpeg fix: 9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FFmpeg implements RTMP/RTMPE client and server support in libavformat/rtmppkt.c, where ff_rtmp_packet_write() serializes outgoing packets into a fixed-size stack header buffer, pkt_hdr. RTMP chunk headers encode a channel id, a timestamp field, and - for channel ids above 319, or when a non-extended timestamp is combined with an extended-timestamp field - additional bytes that were not accounted for by the original 16-byte allocation. The bug is CWE-121 (stack-based buffer overflow) arising from that undersized buffer. A malicious server sends a Set Chunk Size packet on a high channel id carrying an extended timestamp; handle_chunk_size() echoes that packet back to the publishing client, and the echoed write runs through ff_rtmp_packet_write() and writes past the end of pkt_hdr. The upstream fix simply enlarges the stack buffer from uint8_t pkt_hdr[16] to pkt_hdr[18], confirming that the overflow is small and bounded rather than a large attacker-controlled copy. CPE coverage is the generic cpe:2.3:a:ffmpeg:ffmpeg entry, i.e. all builds of the library and the ffmpeg CLI that include the RTMP muxer before the fixed release.

Know when Ffmpeg gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.1 HIGH

Remote malicious server over the network (AV:N) with no auth (PR:N) but the victim must initiate the outbound publish (UI:R); bounded ~2-byte overflow makes a crash reliable (A:H) while RCE is unproven (C:N/I:L).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FFmpeg before 9.1 contains a stack-based buffer overflow vulnerability in ff_rtmp_packet_write() in libavformat/rtmppkt.c that allows malicious RTMP servers to overflow a 16-byte header buffer. Attackers can send a Set Chunk Size packet on a high channel id with an extended timestamp, which handle_chunk_size() echoes back, corrupting the publishing client's stack.

Executive ViewAI

Why It Matters

CVE-2026-135725 is a high-severity flaw in FFmpeg's RTMP publishing client that can crash or corrupt streaming processes when a user initiates a stream to a malicious server. This impacts any team using FFmpeg to push live video, potentially causing service outages and operational disruption. Leadership should prioritize patching because media workflows are often business-critical and downtime can affect revenue and reputation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media tools, servers, and applications worldwide
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy