Skip to main content

FFmpeg CVE-2026-65704

| EUVDEUVD-2026-48371 HIGH
Out-of-bounds Write (CWE-787)
2026-07-23 VulnCheck GHSA-98cx-cw6c-5pj4
7.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious ffconcat referencing TY/Shorten data
  2. Delivery
    Deliver file to FFmpeg run with -safe 0
  3. Exploit
    demux_audio() computes negative packet size
  4. Execution
    memcpy() wraps size to near SIZE_MAX
  5. Persist
    Heap out-of-bounds write past bitstream buffer
  6. Impact
    Potential arbitrary code execution

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 an attacker-supplied ffconcat/concat file with the -safe 0 flag explicitly enabled (the default -safe 1 blocks the referenced-file path), and the referenced content must be a TY container routed to the Shorten (SHN) decoder so that demux_audio() produces the negative size consumed by shorten_decode_frame()'s memcpy(). Limiting factors: the attack vector is local (AV:L) requiring the victim to open or pipeline the malicious file (UI:P user interaction), a specific attack requirement applies (AT:P), and the vulnerable -safe 0 configuration is not the default - so environments that never disable -safe, or never feed untrusted TY/Shorten media, are not exposed.

Impact

The CVSS 4.0 score of 7.3 (High) reflects a local vector (AV:L) with passive user interaction (UI:P) and an attack requirement (AT:P), meaning exploitation is not trivial remote-unauthenticated - a victim must process attacker-supplied media with a specifically dangerous flag (-safe 0). Vulnerable-system impact is rated High across confidentiality, integrity, and availability (VC:H/VI:H/VA:H) with no scope change to subsequent systems (SC:N/SI:N/SA:N), consistent with heap corruption that can escalate to code execution. There is no CISA KEV listing and no public exploit identified at time of analysis, and no EPSS score was provided; the practical prerequisite of the non-default -safe 0 flag plus a crafted TY/Shorten stream meaningfully limits mass exploitation. This is a real memory-corruption issue worth patching, but the -safe 0 dependency makes it more relevant to automated pipelines and services that intentionally disable that guard than to typical default-configuration users.

Exploit ScenarioDerived

An attacker crafts a malicious ffconcat playlist referencing a TY container with a manipulated audio packet size and delivers it to a media-processing service or user that runs FFmpeg with the -safe 0 flag. When the file is demuxed, demux_audio() produces a negative packet size that wraps in shorten_decode_frame()'s memcpy(), corrupting the heap beyond the decoder's bitstream buffer and potentially leading to arbitrary code execution. No public exploit has been identified at time of analysis, and successful exploitation depends on the victim invoking the non-default -safe 0 option.

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

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

Alert me

AnalysisAIv1 – Jul 23, 2026

Out-of-bounds heap write in FFmpeg through 8.1.2 lets an attacker who supplies a crafted ffconcat file - processed with the -safe 0 flag - corrupt heap memory and potentially achieve code execution. The flaw chains the TY demuxer's demux_audio() (which decrements packet size without bounds checking) into the Shorten decoder's memcpy(), where a negative size wraps to near SIZE_MAX. Reported by VulnCheck with a vendor patch available; no public exploit identified at time of analysis.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the vendor patch from commit de771bd52774a52d45b0e2c82e56995a1ef40df7 (PR 23767 at https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23767) by upgrading to a build that incorporates it beyond 8.1.2, and consult the VulnCheck advisory (https://www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-via-ty-demuxer-and-shorten-decoder). Where immediate patching is not possible, avoid running FFmpeg with -safe 0 on untrusted concat/ffconcat inputs (the default -safe 1 blocks the path that references attacker-controlled files, at the cost of restricting legitimate absolute-path concat use cases). As a further control, disable or blacklist the TY demuxer and Shorten decoder for untrusted media (e.g. via -f/-c restrictions or a build that excludes them), accepting that TY and SHN files will no longer be processable, and sandbox any transcoding service that handles user-supplied files to contain heap corruption.

Affected VersionsENISA

FFmpeg 0 ≤8.1.2
FFmpeg patch: de771bd52774a52d45b0e2c82e56995a1ef40df7

Affected Packages

euvd ffmpeg no fix

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 is the de facto multimedia framework used for decoding, encoding, and transcoding audio/video across countless applications, servers, and OS distributions (CPE cpe:2.3:a:ffmpeg:ffmpeg:*). The bug is a CWE-787 out-of-bounds write rooted in an integer/signedness error: the TY demuxer's demux_audio() subtracts from a packet size field without validating the result stays non-negative, yielding a negative int. That value is later passed to memcpy() inside shorten_decode_frame() of the Shorten (SHN) lossless audio decoder, where the implicit int-to-size_t conversion wraps the negative number to a value near SIZE_MAX, driving an over-read of the source allocation and a massive over-write past the decoder's bitstream buffer. Reaching the code path requires the ffconcat/concat demuxer, which is only permitted to reference arbitrary paths when the -safe 0 protection is disabled.

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 7.3 HIGH
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

Local file processing with victim interaction (AV:L/UI:R), no privileges needed (PR:N), and heap corruption enabling code execution justifies High C/I/A.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
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 through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements packet size without bounds checking, producing a negative size value that is passed to memcpy() in shorten_decode_frame(), where conversion to size_t wraps the value to near SIZE_MAX and triggers reads beyond the source allocation and writes far beyond the Shorten decoder's bitstream buffer.

Executive ViewAI

Why It Matters

FFmpeg versions through 8.1.2 contain a remote code execution vulnerability triggered by processing crafted ffconcat files with the -safe 0 flag; no public exploit identified at time of analysis. Organizations using FFmpeg for media transcoding, streaming, or file processing face direct compromise risk through untrusted media file processing. This affects any workflow accepting user-supplied or third-party video content.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
core multimedia library embedded across countless apps, servers, and OS distros
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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.1%
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
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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.

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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Not-Affected

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