CVE-2026-65704
FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder
Reported by vulncheck · Published July 23, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ffmpeg-8.1 | Wolfi | 8.1.3-r0 |
| ffmpeg-8.1 | Chainguard | 8.1.3-r0 |
| eco-python-ffmpeg-8-minimal | Chainguard | 8.1.3-r0 |
| ffmpeg | ffmpeg | 8.1.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FFmpeg | FFmpeg | 0, de771bd52774a52d45b0e2c82e56995a1ef40df7 |
| wolfi | ffmpeg-8.1 | 0 |
| chainguard | ffmpeg-8.1 | 0 |
| FFmpeg | FFmpeg | *, 0 |
| chainguard | eco-python-ffmpeg-8-minimal | 0 |
| ffmpeg | ffmpeg | 0 |
Timeline
- Jul 23, 2026 CVE Published
- Jul 24, 2026 EPSS Score (14 in total, the first dated here)
- Jul 24, 2026 Coalition ESS Score
- Jul 25, 2026 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-65704
vulnetix vdb fixes CVE-2026-65704
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-65704/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Pull Request issue-tracking
- Patch Commit patch
- third-party-advisory