# CVE-2026-66039: FFmpeg MACE6 Audio Decoder Heap Out-of-Bounds Write via CAF File

- Priority: **Routine**
- Reason: Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-24 · Modified: 2026-07-29
- Aliases: UBUNTU-CVE-2026-66039, DEBIAN-CVE-2026-66039, CGA-32rw-r523-335r, CGA-62cg-78ph-mjwq, CGA-6wjx-x87f-cg7j, CGA-7mjq-rr2r-x8p9, CGA-8rr5-8pmp-c6qc, CGA-c5g6-5v96-f6xq, CGA-p2gv-9jh2-p4fp, CGA-xr2m-c57c-3cjm, CGA-2q2x-qcx7-ppvq, CGA-388c-h546-p7qr, CGA-3rv2-r9j6-78f7, CGA-3xpx-x62c-7fc9, CGA-4f69-p254-3xg8, CGA-4xw3-2qw5-hj6q, CGA-524g-rh2p-hf7p, CGA-53pw-2fw6-j648, CGA-5c5c-24wj-8h9m, CGA-5jc6-vxcf-7j87, CGA-5x53-43fv-393x, CGA-63h5-m438-fcr4, CGA-74wq-pmhx-j3q7, CGA-96gx-5gff-4884, CGA-cv96-hx63-94jq, CGA-f827-vr6g-x4q7, CGA-fq34-hfrr-872w, CGA-fqqx-g4rp-q28q, CGA-g55r-787g-7q59, CGA-gqj6-jccg-qf4c, CGA-hr2h-fqcg-p73w, CGA-jvq9-22vf-6qwr, CGA-pm9v-h879-hv7g, CGA-qfm8-8jj7-h4wh, CGA-rm5g-2cm6-f6cq, CGA-vrvj-jpm2-967p, CGA-vvjv-8p5f-mv9j, CGA-vvrf-764w-v2qw, CGA-24p9-vj3g-4jjv, CGA-2539-x2j6-fwwp, CGA-26jw-2w9c-83x9, CGA-2q82-hhf6-9w4m, CGA-5g87-qjh9-xf59, CGA-5wmg-39gr-x3jf, CGA-v8m3-8fwm-3x2h, CGA-3hpf-9xjv-hp93, CGA-grj7-8mj6-9g23, CGA-rcgp-9wc5-7pq3, CGA-vf3g-r7f5-h9xj, CGA-xmrv-w4vj-wmg3, CGA-4f3c-7c73-996p, CGA-6846-67mh-v7rh, CGA-6rjq-jc5h-xc5w, CGA-74c6-4jv6-rfjg, CGA-7j6v-4m7x-cq87, CGA-8346-hw58-vmvm, CGA-88xp-q6px-4h8j, CGA-g2wr-9r7r-97j8, CGA-g3c7-2q3x-58ff, CGA-g8h8-qmwp-hw46, CGA-m22f-hg9c-gq4m, CGA-m37r-4393-xxx7, CGA-m6qr-85r3-r73j, CGA-p966-3f2g-c34m, CGA-pjcr-5prh-g2vp, CGA-q568-hm26-j84g, CGA-q767-f38w-8j9w, CGA-qw5c-vx7m-pcfc, CGA-r7v4-w42r-cr9x, CGA-rfpw-vh2p-33jx, CGA-v7x6-7448-fw3c, CGA-x8r6-qw93-gx8w, CGA-36pr-4jf7-ggc6, CGA-6q8x-x8m7-jj3c, CGA-8g55-m698-m7fq, CGA-gp23-cx38-449m, CGA-hfjg-w97h-3rrg, CGA-jwm5-9rph-42vj, CGA-p4r3-w768-3w78, CGA-v55p-4x55-chgh
- Record: https://cvemate.com/vulnerability/CVE-2026-66039 · JSON: https://cvemate.com/vulnerability/CVE-2026-66039/json

## Description

```text
FFmpeg through 8.1.2, fixed in commit aafb5c6, contains a signed integer overflow vulnerability in the MACE6 audio decoder that allows attackers to corrupt heap memory by supplying a crafted CAF file with a malicious bytes_per_packet value. Attackers can craft a CAF file with oversized bytes_per_packet and frames_per_packet values in the desc chunk to trigger an integer overflow in mace_decode_frame() during output sample count computation, resulting in an undersized buffer allocation and heap out-of-bounds write that could enable code execution.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.307%, percentile 25.299%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 47)

- chainguard eco-python-ffmpeg-6-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal (Chainguard): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-dev (Chainguard): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-static (Chainguard): \< 8.1.3-r0
- chainguard ffmpeg-6 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.0 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.1 (Chainguard): \< 8.1.3-r0
- chainguard ffmpeg-fips-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-dev (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavcodec61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavdevice61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavfilter10 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavformat61 (Chainguard): All versions (No fix recorded)

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23631>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/aafb5c655edc76a753275c383ebb139feb032718>
- <https://www.vulncheck.com/advisories/ffmpeg-mace6-audio-decoder-heap-out-of-bounds-write-via-caf-file>
- <https://ubuntu.com/security/CVE-2026-66039>
- <https://www.cve.org/CVERecord?id=CVE-2026-66039>
- <https://ubuntu.com/security/notices/USN-8671-1>
- <https://ubuntu.com/security/notices/USN-8738-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-66039>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66039.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-66039>

---

Data as of 2026-12-05T04:58:02.252Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
