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

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-07-24T19:42:42.453Z
- Modified: 2026-08-07T00:46:17.303Z
- Weaknesses: CWE-122, CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: up to 8.1.2 (not affected: aafb5c655edc76a753275c383ebb139feb032718)

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23631> (issue-tracking, patch)
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/aafb5c655edc76a753275c383ebb139feb032718> (patch)
- <https://www.vulncheck.com/advisories/ffmpeg-mace6-audio-decoder-heap-out-of-bounds-write-via-caf-file> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-66039](https://www.cve.org/CVERecord?id=CVE-2026-66039), CVE Terms of Use, modified 2026-07-29
- NVD: [CVE-2026-66039](https://nvd.nist.gov/vuln/detail/CVE-2026-66039), Public domain, modified 2026-08-07

---

Page: https://cve.day/CVE-2026-66039 · Whole record: https://cve.day/CVE-2026-66039.json · Rebuilt by cve.day 2026-11-25T22:59:30.033Z
