{"id":"CVE-2025-59730","published":"2025-10-06T08:09:11Z","modified":"2025-10-06T16:23:59Z","title":"Heap-buffer-overflow write in FFmpeg SANM decoding due to lack of bounds-checking in old_codec48","vendor":"FFmpeg","product":"FFmpeg","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.08327,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://issuetracker.google.com/434637586","tags":[]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":1.67},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"ffmpeg","affectedVersions":[{"vendor":"FFmpeg","product":"FFmpeg","versions":[">= 829680f96a7a7ff02d1543895ec0fb713309d5c0, < 8.0"]}],"capec":[{"id":"CAPEC-100","name":"Overflow Buffers"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-06T16:22:19.576410Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-32191","exploited":false,"provenance":"source"}}