{"id":"CVE-2025-59730","aliases":["CVE-2025-59730"],"related":[],"kind":"vulnerability","state":"published","title":"Heap-buffer-overflow write in FFmpeg SANM decoding due to lack of bounds-checking in old_codec48","summary":"When decoding a frame for a SANM file (ANIM v0 variant), the decoded data can be larger than the buffer allocated for it.\n\nFrames encoded with codec 48 can specify their resolution (width x height). A buffer of appropriate size is allocated depending on the resolution.\n\nThis codec can encode the frame contents using a run-length encoding algorithm. There are no checks that the decoded frame fits in the allocated buffer, leading to a heap-buffer-overflow.\n\nprocess_frame_obj initializes the buffers based on the frame resolution:\n\n\n\nWe recommend upgrading to version 8.0 or beyond.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"When decoding a frame for a SANM file (ANIM v0 variant), the decoded data can be larger than the buffer allocated for it.\n\nFrames encoded with codec 48 can specify their resolution (width x height). A buffer of appropriate size is allocated depending on the resolution.\n\nThis codec can encode the frame contents using a run-length encoding algorithm. There are no checks that the decoded frame fits in the allocated buffer, leading to a heap-buffer-overflow.\n\nprocess_frame_obj initializes the buffers based on the frame resolution:\n\n\n\nWe recommend upgrading to version 8.0 or beyond.","source":"cvelist"},{"lang":"es","text":"Al decodificar un fotograma para un archivo SANM (variante ANIM v0), los datos decodificados pueden ser mayores que el búfer asignado para ellos.\n\nLos fotogramas codificados con el códec 48 pueden especificar su resolución (ancho x alto). Se asigna un búfer de tamaño apropiado dependiendo de la resolución.\n\nEste códec puede codificar el contenido del fotograma utilizando un algoritmo de codificación por longitud de ejecución. No hay comprobaciones de que el fotograma decodificado quepa en el búfer asignado, lo que lleva a un desbordamiento de búfer de montón.\n\nprocess_frame_obj inicializa los búferes basándose en la resolución del fotograma:\n\nRecomendamos actualizar a la versión 8.0 o posterior.","source":"nvd"}],"published":"2025-10-06T08:09:11.029Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"Google","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"Google","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","score":5.7,"rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"829680f96a7a7ff02d1543895ec0fb713309d5c0","fixed":"8.0","status":"affected"}],"vendor":"FFmpeg","product":"FFmpeg","package":"SANM","repo":"https://git.ffmpeg.org/ffmpeg.git","source":"cvelist"}],"references":[{"url":"https://issuetracker.google.com/434637586","tags":[],"sources":["cvelist","nvd"]}],"credits":["Google Big Sleep"],"assigner":"Google","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-06T16:22:19.576Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59730","url":"https://www.cve.org/CVERecord?id=CVE-2025-59730","licence":"CVE Terms of Use","modified":"2025-10-06T16:23:59.447Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59730","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59730","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"}],"updatedAt":"2026-11-25T22:59:05.558Z","epss":{"score":0.00162,"percentile":0.05648,"date":"2026-12-01T12:00:22.000Z"}}