{"id":"CVE-2026-66039","aliases":["CVE-2026-66039"],"related":[],"kind":"vulnerability","state":"published","title":"FFmpeg MACE6 Audio Decoder Heap Out-of-Bounds Write via CAF File","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-07-24T19:42:42.453Z","modified":"2026-08-07T00:46:17.303Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-122","CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"8.1.2","status":"affected"},{"type":"git","version":"aafb5c655edc76a753275c383ebb139feb032718","status":"unaffected"}],"vendor":"FFmpeg","product":"FFmpeg","repo":"https://code.ffmpeg.org/FFmpeg/FFmpeg","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"8.1.2"}],"vendor":"ffmpeg","product":"ffmpeg","cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23631","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/aafb5c655edc76a753275c383ebb139feb032718","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-mace6-audio-decoder-heap-out-of-bounds-write-via-caf-file","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Adrian Junge (vurlo)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-28T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-66039","url":"https://www.cve.org/CVERecord?id=CVE-2026-66039","licence":"CVE Terms of Use","modified":"2026-07-29T03:55:37.612Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66039","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66039","licence":"Public domain","modified":"2026-08-07T00:46:17.303Z"}],"updatedAt":"2026-11-25T22:59:30.033Z","epss":{"score":0.00307,"percentile":0.25336,"date":"2026-12-01T12:00:22.000Z"}}