{"schemaVersion":4,"id":"CVE-2024-31581","aliases":["UBUNTU-CVE-2024-31581","DEBIAN-CVE-2024-31581"],"status":"published","duplicateOf":null,"title":null,"description":"FFmpeg version n6.1 was discovered to contain an improper validation of array index vulnerability in libavcodec/cbs_h266_syntax_template.c. This vulnerability allows attackers to cause undefined behavior within the application.","dates":{"published":"2024-04-17T00:00:00.000Z","modified":"2025-11-04T17:20:12.064Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01113,"percentile":0.6708,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.01113},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01113,"percentile":0.6708}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01646,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01113,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01113,"percentile":0.6708}]},"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-129","name":"Improper Validation of Array Index","description":"The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/129.html"}],"affected":[{"vendor":"debian","product":"ffmpeg","name":"ffmpeg","label":"ffmpeg","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ffmpeg","purlType":"deb","versions":[{"text":"< 7:7.0.1-3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"7:7.0.1-3","endInclusive":false}}],"versionsText":"< 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:7.1.1-1ubuntu1.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"7:7.1.1-1ubuntu1.1","endInclusive":false}}],"versionsText":"< 7:7.1.1-1ubuntu1.1","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,"bounds":{"kind":"exact","version":"38"}},{"text":"39","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"39"}},{"text":"40","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"40"}}],"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":"6.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"6.1"}}],"versionsText":"6.1","eol":{"isEol":false,"eolDate":null,"matchMethod":"cpe","cycle":{"name":"6.1","label":"6.1 'Heaviside'","eolFrom":null,"isLts":false,"isMaintained":true,"latestVersion":"6.1.7"},"product":{"name":"ffmpeg","label":"FFmpeg","category":"framework"}},"hubHref":"/vendor/ffmpeg/ffmpeg"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/ffmpeg/ffmpeg/commit/ce0c178a408d43e71085c28a47d50dc939b60196","label":"github.com/ffmpeg/ffmpeg/commit/ce0c178a408d43e71085c28a47d50dc939b60196","hostname":"github.com","tags":["REPORT","Patch"]},{"url":"https://github.com/FFmpeg/FFmpeg/blob/n6.1.1/libavcodec/cbs_h266_syntax_template.c#L2048","label":"github.com/FFmpeg/FFmpeg/blob/n6.1.1/libavcodec/cbs_h266_syntax_template.c","hostname":"github.com","tags":["REPORT","Product"]},{"url":"https://gist.github.com/1047524396/a7e9273e12553775826784035333cdd8","label":"gist.github.com/1047524396/a7e9273e12553775826784035333cdd8","hostname":"gist.github.com","tags":["REPORT","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","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","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","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2024-31581","label":"ubuntu.com/security/CVE-2024-31581","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-31581","label":"www.cve.org/CVERecord?id=CVE-2024-31581","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-31581","label":"security-tracker.debian.org/tracker/CVE-2024-31581","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"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:12.064Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,1,98],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01113,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-11-04T17:20:12.064Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2025-11-04T17:20:12.064Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2025-11-04T17:20:12.064Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-11-04T17:20:12.064Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2024-07-29T19:25:09.747Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.01113,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:20:28.324Z","stale":false,"partial":false}}