Skip to main content

FFmpeg EUVDEUVD-2026-74264

| CVE-2026-30754 HIGH
Out-of-bounds Write (CWE-787)
2026-09-08 cve@mitre.org GHSA-crqp-42h3-7fcv
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious H.264/HEVC file
  2. Delivery
    Deliver file to FFmpeg-based pipeline or user
  3. Exploit
    User/process invokes FFmpeg RTP encoding
  4. Execution
    Negative size passed to memcpy in nal_send()
  5. Persist
    Heap out-of-bounds write triggered
  6. Impact
    Arbitrary code execution in FFmpeg process context

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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 target to process a crafted H.264 or HEVC media file using FFmpeg's RTP encoding path (libavformat/rtpenc_h264_hevc.c). The code path is triggered when FFmpeg is used to packetize H.264/HEVC video for RTP output - this is a common but not universal deployment pattern (e.g., live-streaming pipelines, RTSP servers built on FFmpeg). User interaction is required per CVSS UI:R: a human or automated job must actively invoke FFmpeg against the crafted input. No authentication or elevated privileges are required from the attacker's side (PR:N). Limiting factors: (1) victim must use FFmpeg's RTP output mode with H.264 or HEVC codec; (2) a user or process must initiate the encoding of attacker-controlled input; (3) exploitation does not extend beyond the scope of the FFmpeg process (S:U).

Impact

The CVSS 8.8 score (AV:N/AC:L/PR:N/UI:R) appropriately reflects that exploitation requires a victim to process a crafted file, which is a realistic user-interaction barrier since FFmpeg is commonly invoked on user-supplied or remotely fetched media. Despite the high CVSS score, the EPSS score of 0.17% (6th percentile) indicates that the security research community currently assesses low near-term exploitation probability, even given the public PoC hosted on GitHub. No CISA KEV listing confirms that mass exploitation has not been observed. The public PoC and the precision of the crash address (-3 size) suggest the bug is deterministic and reproducible once triggered, lowering the effective attack complexity for a motivated attacker beyond what AC:L alone conveys. The S:U scope rating limits blast radius to the FFmpeg process itself, though in server-side transcoding pipelines FFmpeg commonly runs with service-level credentials, making process compromise still impactful.

Exploit ScenarioDerived

An attacker crafts a malicious H.264 or HEVC media container with a NAL unit structure that causes FFmpeg's nal_send() to compute a negative size value. The file is delivered to a victim - for example, via a media-sharing link, a malicious upload endpoint, or a live RTP stream - and the victim's FFmpeg instance processes it for transcoding or re-streaming. Heap corruption from the out-of-bounds memcpy write can be leveraged for arbitrary code execution within the FFmpeg process. A public PoC is available at https://github.com/momo-trip/poc_ffmpeg demonstrating the crash.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) 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 – Sep 09, 2026

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap memory during RTP encoding, with potential for arbitrary code execution. The root cause is in nal_send() within libavformat/rtpenc_h264_hevc.c, where a negative size value (-3) is passed directly to memcpy, producing an out-of-bounds write. A public proof-of-concept exploit is available, though EPSS probability remains low at 0.17% and no active exploitation has been confirmed by CISA.

RemediationAI

Upgrade to FFmpeg 8.1 or later, which includes the fix landed in upstream pull request #20746 (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20746). Distributions packaging FFmpeg should apply this patch or backport the fix to their supported branch. As a compensating control where upgrading is not immediately feasible, operators can restrict processing of untrusted media files by sandboxing FFmpeg invocations (e.g., via seccomp/AppArmor/namespaces on Linux), which limits the impact of heap corruption to the sandboxed process. Disabling RTP output encoding for H.264/HEVC specifically (if not operationally required) removes the vulnerable code path entirely. Note that sandboxing adds deployment complexity and may interfere with FFmpeg's access to hardware accelerators.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

FFmpeg is an open-source multimedia framework whose libavformat library handles container muxing and demuxing, including RTP packetization of H.264 and HEVC video. The nal_send() function in rtpenc_h264_hevc.c is responsible for fragmenting NAL units for RTP transmission. The bug is a CWE-787 (out-of-bounds write): a size variable computed from crafted input can underflow to a negative integer (-3), which when cast to the size_t parameter of memcpy becomes a very large unsigned value, triggering a heap memory corruption write. The defect was surfaced via AddressSanitizer instrumentation. The EUVD CPE entry lists 'n/a n/a', which is a placeholder - the actual affected codebase is FFmpeg proper, all versions before 8.1.

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 (mitre) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Crafted file deliverable over network with no auth; user must invoke encoding (UI:R); heap corruption enables full process compromise (C:H/I:H/A:H); scope unchanged.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 09, 2026 - 16:22 NVD
8.8 (HIGH)
CVE Published
Sep 08, 2026 - 21:17 cve.org
HIGH 8.8
CVE Published
Sep 08, 2026 - 21:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

A memory corruption vulnerability exists in FFmpeg before 8.1. The RTP encoding process. In the nal_send function in libavformat/rtpenc_h264_hevc.c, a negative size parameter (size=-3) is passed to memcpy when transmitting H.264/HEVC streams via RTP using a crafted input file. This was detected using AddressSanitizer.

Technical POC Analysis

The bug is a missing sign check on a NAL-unit length before it is used as a memcpy length, producing an out-of-bounds write in the RTP H.264/HEVC muxer.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

FFmpeg versions before 8.1 are vulnerable to memory corruption in H.264/HEVC encoding that could enable arbitrary code execution when processing malicious video files. This poses a critical risk to organizations using FFmpeg for media streaming, transcoding, or video processing, with public exploit code available and no vendor patch currently deployed.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Until FFmpeg can be upgraded to version 8.1 or later, restrict media file sources to internal or explicitly whitelisted external sources; isolate FFmpeg processes in containers with enforced resource limits and no network access; implement strict input validation and file type verification on all media inputs; deploy monitoring and alerting for anomalous FFmpeg process behavior; establish quarterly audits of third-party media processing dependencies; consider migrating critical workflows to patched alternative video processing libraries.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
High
widely used open-source multimedia framework in streaming and transcoding
Data Quality
7 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 Yes
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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-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

CVE-2021-38090 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_roberts in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows atta

CVE-2021-30123 HIGH POC
8.8 Apr 07

FFmpeg <=4.3 contains a buffer overflow vulnerability in libavcodec through a crafted file that may lead to remote code

Vendor StatusVendor

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