Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInduce FFmpeg client to publish to malicious RTMP server
-
DeliveryServer sends Set Chunk Size on high channel id with extended timestamp
-
Exploithandle_chunk_size() echoes value into 16-byte pkt_hdr
-
ExecutionOverflow stack buffer in ff_rtmp_packet_write()
-
ImpactCorrupt 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Related Vulnerabilities in FFmpeg Memory Corruption and NULL Dereference Flaws
View all 34FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
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
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
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
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-133624
GHSA-crqc-2c84-mx98
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB