Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

FFmpeg through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat… (CVE-2026-65704)

0
High
Published: 07/23/2026 (07/23/2026, 21:31:02 UTC)
Source: GCVE Database

Description

FFmpeg versions through 8.1.2 contain an out-of-bounds write vulnerability in the TY demuxer's demux_audio() function. This flaw occurs when processing a crafted ffconcat file with the -safe 0 flag, leading to heap corruption due to improper bounds checking and a negative packet size value that wraps to a large size_t value. This causes reads and writes beyond allocated buffers in the Shorten decoder's bitstream buffer.

CVSS v4.0

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

GitHub Actionsmore threats →ai
ffmpeg/FFmpeg
pkg:github/ffmpeg/FFmpeg
Affected versions
<=8.1.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/23/2026, 22:53:57 UTC

Technical Analysis

The vulnerability in FFmpeg up to version 8.1.2 involves an out-of-bounds write triggered by a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements the packet size without verifying bounds, resulting in a negative size that, when converted to size_t, wraps to a very large value. This leads to memcpy() reading beyond the source allocation and writing far beyond the Shorten decoder's bitstream buffer, causing heap corruption. This vulnerability is tracked as CVE-2026-65704 and is classified under CWE-191 (Integer Underflow).

Potential Impact

Successful exploitation can cause heap corruption, which may lead to application crashes or potentially arbitrary code execution depending on the context. The vulnerability requires processing a specially crafted ffconcat file with the -safe 0 flag, which may limit exposure. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, avoid processing untrusted ffconcat files with the -safe 0 flag to mitigate risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-98cx-cw6c-5pj4
Osv Schema Version
1.4.0
Aliases
["CVE-2026-65704"]
Ecosystems
[]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a629b0f9c2644c7f8d863de

Added to database: 07/23/2026, 22:51:59 UTC

Last enriched: 07/23/2026, 22:53:57 UTC

Last updated: 07/24/2026, 00:58:05 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses