{"schemaVersion":3,"id":"CVE-2024-31585","aliases":["DEBIAN-CVE-2024-31585","CGA-5c5c-5rwg-78j8","CGA-wwrm-84ph-24jp"],"status":"published","duplicateOf":null,"title":null,"description":"FFmpeg version n5.1 to n6.1 was discovered to contain an Off-by-one Error vulnerability in libavfilter/avf_showspectrum.c. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.","dates":{"published":"2024-04-17T00:00:00.000Z","modified":"2025-06-09T15:28:43.969Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H","exploitability":2.1,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H","exploitability":2.1,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00332,"percentile":0.24894,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.023000000000000017,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00309},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00332,"percentile":0.24894}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00332,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00332,"percentile":0.24894}]},"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-193","name":"Off-by-one Error","description":"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/193.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":"< 7:5.1.5-0+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 7:7.0.1-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7:5.1.5-0+deb12u1 | < 7:7.0.1-3","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":"≥ 5.1, < 7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.1, < 7.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"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/ab0fdaedd1e7224f7e84ea22fcbfaa4ca75a6c06","label":"github.com/ffmpeg/ffmpeg/commit/ab0fdaedd1e7224f7e84ea22fcbfaa4ca75a6c06","hostname":"github.com","tags":["FIX","Patch"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/81df787b53eb5c6433731f6eaaf7f2a94d8a8c80","label":"github.com/FFmpeg/FFmpeg/commit/81df787b53eb5c6433731f6eaaf7f2a94d8a8c80","hostname":"github.com","tags":["FIX","Product"]},{"url":"https://gist.github.com/1047524396/dc2c64ffe0c3934a6176bcd2c5cf5656","label":"gist.github.com/1047524396/dc2c64ffe0c3934a6176bcd2c5cf5656","hostname":"gist.github.com","tags":["WEB","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPETICRXUOGRIM4U3BCRTIKE3IZWCSBT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","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":["Vendor Advisory","Advisory"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/3061bf668feffc7c1f0b244205167b3b86da8015","label":"github.com/FFmpeg/FFmpeg/commit/3061bf668feffc7c1f0b244205167b3b86da8015","hostname":"github.com","tags":["FIX"]},{"url":"https://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff/bf2d7b20ea1c7d15dcbaedd479f40295e5c83430..3061bf668feffc7c1f0b244205167b3b86da8015:/libavfilter/avf_showspectrum.c","label":"git.ffmpeg.org/gitweb/…","hostname":"git.ffmpeg.org","tags":["WEB"]},{"url":"https://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff/aec67d3d7d2895bfea61aa1358d9d8e956f8615c..ab0fdaedd1e7224f7e84ea22fcbfaa4ca75a6c06:/libavfilter/avf_showspectrum.c","label":"git.ffmpeg.org/gitweb/…","hostname":"git.ffmpeg.org","tags":["WEB"]},{"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","X Transferred","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","X Transferred","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","X Transferred","Advisory","Third Party Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-31585","label":"security-tracker.debian.org/tracker/CVE-2024-31585","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31585.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31585.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31585","label":"nvd.nist.gov/vuln/detail/CVE-2024-31585","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5712-1","MGASA-2024-0248","OPENSUSE-SU-2024:13888-1"],"duplicates":[],"related":["CGA-8JWC-98JW-FWCC","OPENSUSE-SU-2024:13888-1"]},"timeline":[{"kind":"published","date":"2024-04-17T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-06-09T15:28:43.969Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:41:20.969Z","stale":false,"partial":false}}