{"schemaVersion":3,"id":"CVE-2024-31578","aliases":["UBUNTU-CVE-2024-31578","DEBIAN-CVE-2024-31578","openSUSE-SU-2024:13894-1","CGA-7h7r-697q-2fwp","CGA-jm32-cg3x-vj74"],"status":"published","duplicateOf":null,"title":null,"description":"FFmpeg version n6.1.1 was discovered to contain a heap use-after-free via the av_hwframe_ctx_init function.","dates":{"published":"2024-04-17T00:00:00.000Z","modified":"2025-11-04T17:20:09.345Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01179,"percentile":0.67206,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.21100000000000008,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00968},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00968,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00968,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00968,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00968,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00968,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00968,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01179,"percentile":0.67206}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00968,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01179,"percentile":0.67206}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"chainguard","product":"ffmpeg-6","name":"ffmpeg-6","label":"ffmpeg-6","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ffmpeg-6","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"ffmpeg","name":"ffmpeg","label":"ffmpeg","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ffmpeg","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 7:7.0.1-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 7:7.0.1-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ffmpeg","name":"ffmpeg","label":"ffmpeg","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ffmpeg","purlType":"deb","versions":[{"text":"< 7:3.4.11-0ubuntu0.1+esm5","noFixRecorded":false,"fixedIn":null},{"text":"< 7:4.2.7-0ubuntu0.1+esm5","noFixRecorded":false,"fixedIn":null},{"text":"< 7:4.4.2-0ubuntu0.22.04.1+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 7:6.1.1-3ubuntu5+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7:3.4.11-0ubuntu0.1+esm5 | < 7:4.2.7-0ubuntu0.1+esm5 | < 7:4.4.2-0ubuntu0.22.04.1+esm4 | < 7:6.1.1-3ubuntu5+esm1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libav","name":"libav","label":"libav","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libav","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"38","noFixRecorded":false,"fixedIn":null},{"text":"39","noFixRecorded":false,"fixedIn":null},{"text":"40","noFixRecorded":false,"fixedIn":null}],"versionsText":"38 | 39 | 40","eol":{"isEol":true,"eolDate":"2024-05-21T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"38","label":"38","eolFrom":"2024-05-21T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"ffmpeg","product":"ffmpeg","name":"ffmpeg","label":"ffmpeg","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"ffmpeg","label":"FFmpeg","category":"framework"}},"hubHref":"/vendor/ffmpeg/ffmpeg"},{"vendor":"opensuse","product":"ffmpeg-4&distro=openSUSE Tumbleweed","name":"ffmpeg-4","label":"ffmpeg-4&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/ffmpeg-4&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 4.4.4-7.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.4.4-7.1","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/ffmpeg/ffmpeg/commit/3bb00c0a420c3ce83c6fafee30270d69622ccad7","label":"github.com/ffmpeg/ffmpeg/commit/3bb00c0a420c3ce83c6fafee30270d69622ccad7","hostname":"github.com","tags":["FIX","Patch"]},{"url":"https://gist.github.com/1047524396/45400cce5859d78dcd3a62010df8d179","label":"gist.github.com/1047524396/45400cce5859d78dcd3a62010df8d179","hostname":"gist.github.com","tags":["REPORT","WEB","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Advisory","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPETICRXUOGRIM4U3BCRTIKE3IZWCSBT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Advisory","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Advisory","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00019.html","label":"lists.debian.org/debian-lts-announce/2024/10/msg00019.html","hostname":"lists.debian.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2024-31578","label":"ubuntu.com/security/CVE-2024-31578","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-31578","label":"www.cve.org/CVERecord?id=CVE-2024-31578","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6803-1","label":"ubuntu.com/security/notices/USN-6803-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-31578","label":"security-tracker.debian.org/tracker/CVE-2024-31578","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2024-31578","label":"www.suse.com/security/cve/CVE-2024-31578","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31578.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31578.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31578","label":"nvd.nist.gov/vuln/detail/CVE-2024-31578","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3928-1","MGASA-2025-0067","OPENSUSE-SU-2024:13888-1","OPENSUSE-SU-2024:13895-1","OPENSUSE-SU-2025:14974-1","SUSE-SU-2024:1468-1","SUSE-SU-2024:1470-1","SUSE-SU-2025:0862-1","USN-6803-1"],"duplicates":[],"related":["CGA-R83H-7V9M-R32C","OPENSUSE-SU-2024:13888-1","OPENSUSE-SU-2024:13895-1","OPENSUSE-SU-2025:14974-1","SUSE-SU-2024:1468-1","SUSE-SU-2024:1470-1","SUSE-SU-2025:0862-1","USN-6803-1"]},"timeline":[{"kind":"published","date":"2024-04-17T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T17:20:09.345Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T16:04:26.050Z","stale":false,"partial":false}}