{"id":"CVE-2026-66041","aliases":["CVE-2026-66041"],"related":[],"kind":"vulnerability","state":"published","title":"FFmpeg 7.0 - 8.1.2 Heap Out-of-Bounds Write via vf_quirc Filter","summary":"FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vf_quirc filter that allows an attacker to corrupt heap memory by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions. Attackers can provide a subtitle file whose second presentation has larger dimensions than its first, causing av_image_copy_plane() to copy data exceeding the initial allocation size into the undersized libquirc grayscale image buffer, resulting in heap corruption and process crash with potential for code execution.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vf_quirc filter that allows an attacker to corrupt heap memory by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions. Attackers can provide a subtitle file whose second presentation has larger dimensions than its first, causing av_image_copy_plane() to copy data exceeding the initial allocation size into the undersized libquirc grayscale image buffer, resulting in heap corruption and process crash with potential for code execution.","source":"cvelist"},{"lang":"es","text":"FFmpeg 7.0 hasta 8.1.2, corregido en el commit 4da9812, contiene una vulnerabilidad de escritura fuera de límites en el heap en el filtro vf_quirc que permite a un atacante corromper la memoria del heap al proporcionar un archivo de subtítulos PGS/SUP manipulado con dimensiones de fotograma no coincidentes. Los atacantes pueden proporcionar un archivo de subtítulos cuya segunda presentación tiene dimensiones mayores que la primera, haciendo que av_image_copy_plane() copie datos que exceden el tamaño de asignación inicial en el búfer de imagen en escala de grises de libquirc de tamaño insuficiente, lo que resulta en corrupción del heap y caída del proceso con potencial de ejecución de código.","source":"nvd"}],"published":"2026-07-24T19:54:11.426Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.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-787"],"affected":[{"ranges":[{"type":"custom","introduced":"7.0","lastAffected":"8.1.2","status":"affected"},{"type":"git","version":"4da9812e25894fb51d62a8875cfa8eb39b5e20f5","status":"unaffected"}],"vendor":"FFmpeg","product":"FFmpeg","repo":"https://code.ffmpeg.org/FFmpeg/FFmpeg","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"7.0","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/23625","tags":["exploit","issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/4da9812e25894fb51d62a8875cfa8eb39b5e20f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-via-vf-quirc-filter","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-66041","url":"https://www.cve.org/CVERecord?id=CVE-2026-66041","licence":"CVE Terms of Use","modified":"2026-07-29T03:55:36.839Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66041","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66041","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.034Z","epss":{"score":0.00539,"percentile":0.46815,"date":"2026-12-01T12:00:22.000Z"}}