{"id":"CVE-2024-31578","details":"FFmpeg version n6.1.1 was discovered to contain a heap use-after-free via the av_hwframe_ctx_init function.","modified":"2026-04-16T04:38:50.578410492Z","published":"2024-04-17T14:15:08.563Z","related":["CGA-r83h-7v9m-r32c","SUSE-SU-2024:1468-1","SUSE-SU-2024:1470-1","SUSE-SU-2025:0862-1","openSUSE-SU-2024:13888-1","openSUSE-SU-2024:13894-1","openSUSE-SU-2024:13895-1","openSUSE-SU-2025:14974-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00019.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/"},{"type":"ADVISORY","url":"https://gist.github.com/1047524396/45400cce5859d78dcd3a62010df8d179"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPETICRXUOGRIM4U3BCRTIKE3IZWCSBT/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/"},{"type":"FIX","url":"https://github.com/ffmpeg/ffmpeg/commit/3bb00c0a420c3ce83c6fafee30270d69622ccad7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"083443d67cb159ce469e5d902346b8d0c2cd1c93"},{"fixed":"3bb00c0a420c3ce83c6fafee30270d69622ccad7"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"7.0"}]}}],"versions":["N","n0.11-dev","n0.12-dev","n0.8","n1.1-dev","n1.2-dev","n1.3-dev","n2.0","n2.1-dev","n2.2-dev","n2.3-dev","n2.4-dev","n2.5-dev","n2.6-dev","n2.7-dev","n2.8-dev","n2.9-dev","n3.1-dev","n3.2-dev","n3.3-dev","n3.4-dev","n3.5-dev","n4.1-dev","n4.2-dev","n4.3-dev","n4.4-dev","n4.5-dev","n5.1-dev","n5.2-dev","n6.1-dev","n6.2-dev"],"database_specific":{"vanir_signatures_modified":"2026-04-12T07:01:46Z","vanir_signatures":[{"signature_version":"v1","id":"CVE-2024-31578-4b2f2022","target":{"file":"libavutil/hwcontext.c"},"deprecated":false,"signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["302949644620435468441044300091821951035","243074190726614044512948110437361033864","328825417596194912515047406282623810869","84428823915742586028136893640031092358","172972351806866393371537564527411699773","270232633987988822202638566524150499096","236989691927634449535880270271258022599","317859594545560200518548585338944678641","93157762065430023358173760086905165396","88643534072495792191289124522925364678","49626557380245906940183847401969645190","101991771897895825016391983961468166253","41714239550716467975293458656148977174","339930604436678801739963849326898505022"]},"source":"https://github.com/ffmpeg/ffmpeg/commit/3bb00c0a420c3ce83c6fafee30270d69622ccad7"},{"source":"https://github.com/ffmpeg/ffmpeg/commit/3bb00c0a420c3ce83c6fafee30270d69622ccad7","signature_version":"v1","target":{"file":"libavutil/hwcontext.c","function":"av_hwframe_ctx_init"},"deprecated":false,"signature_type":"Function","digest":{"length":1101,"function_hash":"7161195674442884809513023929311737907"},"id":"CVE-2024-31578-7f3f9593"}],"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"38"}]},{"events":[{"introduced":"0"},{"last_affected":"39"}]},{"events":[{"introduced":"0"},{"last_affected":"40"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31578.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}