CVE-2026-65704

FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder

State
Published
Severity
7.3 High
Published
Jul 23, 2026
Updated
Jul 28, 2026
Reserved
Jul 22, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.07.3 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HVulnCheck

Weaknesses

  • CWE-787 Out-of-bounds Write
  • CWE-191 Integer Underflow (Wrap or Wraparound)

Affected Products

ProductVersions
FFmpegFFmpeg
  • 8.1.2 and earlierAffected
  • de771bd52774a52d45b0e2c82e56995a1ef40df7Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.