{"id":"CVE-2018-12459","details":"An inconsistent bits-per-sample value in the ff_mpeg4_decode_picture_header function in libavcodec/mpeg4videodec.c in FFmpeg 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","modified":"2026-08-17T05:26:02.549862Z","published":"2018-06-15T15:29:00.280Z","references":[{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/2fc108f60f98cd00813418a8754a46476b404a3c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.ffmpeg.org/ffmpeg.git","events":[{"introduced":"ace829cb45cff530b8a0aed6adf18f329d7a98f6"},{"last_affected":"ace829cb45cff530b8a0aed6adf18f329d7a98f6"}],"database_specific":{"cpe":"cpe:2.3:a:ffmpeg:ffmpeg:4.0:*:*:*:*:*:*:*","extracted_events":[{"introduced":"4.0"},{"last_affected":"4.0"}],"source":"CPE_STRING"}}],"versions":["4.0","n4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12459.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"ace829cb45cff530b8a0aed6adf18f329d7a98f6"},{"last_affected":"ace829cb45cff530b8a0aed6adf18f329d7a98f6"},{"fixed":"2fc108f60f98cd00813418a8754a46476b404a3c"}],"database_specific":{"extracted_events":[{"introduced":"4.0"},{"last_affected":"4.0"}],"source":["CPE_STRING","REFERENCES"],"cpe":"cpe:2.3:a:ffmpeg:ffmpeg:4.0:*:*:*:*:*:*:*"}}],"versions":["4.0","n4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12459.json","vanir_signatures_modified":"2026-08-17T05:26:02Z","vanir_signatures":[{"digest":{"function_hash":"293953060746545110115995344497464201232","length":4722},"id":"CVE-2018-12459-57d6d724","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/2fc108f60f98cd00813418a8754a46476b404a3c","target":{"file":"libavcodec/mpeg4videodec.c","function":"ff_mpeg4_decode_picture_header"},"deprecated":false},{"digest":{"line_hashes":["276984771347048471388697408929656823427","40868172712932210822047402219494391158","108981795129314371954512303332135972338"],"threshold":0.9},"id":"CVE-2018-12459-bd8e4d38","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/2fc108f60f98cd00813418a8754a46476b404a3c","target":{"file":"libavcodec/mpeg4videodec.c"},"deprecated":false}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}