{"id":"CVE-2018-12458","aliases":["DEBIAN-CVE-2018-12458","DSA-4249-1","EUVD-2018-4428","GHSA-hw72-rqr9-3f2g","MGASA-2018-0319","SUSE-SU-2018:3609-1","UBUNTU-CVE-2018-12458"],"status":"published","title":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in...","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01509,"percentile":0.74599,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2018-06-15T15:00:00Z","modified":"2026-10-24T14:11:23Z","fixes":[{"ecosystem":"Debian:12","package":"ffmpeg","fixed_in":["7:3.4.3-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"ffmpeg","fixed_in":["7:3.4.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ffmpeg","fixed_in":["7:3.4.3-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"ffmpeg","fixed_in":["7:2.8.15-0ubuntu0.16.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"ffmpeg","fixed_in":["7:3.4.4-0ubuntu0.18.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.4.3-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.4.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.4.3-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.2.11-1~deb9u1"}]}],"versions":["7:3.2.10-1~deb9u1","7:3.2.10-1~deb9u1~bpo8+1","7:3.2.5-1","7:3.2.6-1","7:3.2.7-1~deb9u1","7:3.2.8-1~deb9u1","7:3.2.9-1~deb9u1"],"bundled":11},{"source":"osv","ecosystem":"Mageia:6","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.8-1.mga6"}]}],"bundled":7},{"source":"osv","ecosystem":"Mageia:6","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.8-1.mga6.tainted"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.2-4.12.4"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.2-4.12.4"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 15","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.2-4.12.4"}]}],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:2.8.15-0ubuntu0.16.04.1"}]}],"versions":["7:2.7.2-1build1","7:2.8.1-1ubuntu1","7:2.8.2-1ubuntu1","7:2.8.3-1","7:2.8.4-1","7:2.8.4-1ubuntu1","7:2.8.4-1ubuntu2","7:2.8.4-1ubuntu3","7:2.8.4-1ubuntu4","7:2.8.6-1ubuntu1","7:2.8.6-1ubuntu2","7:2.8.8-0ubuntu0.16.04.1","7:2.8.10-0ubuntu0.16.04.1","7:2.8.11-0ubuntu0.16.04.1","7:2.8.14-0ubuntu0.16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.4.4-0ubuntu0.18.04.1"}]}],"versions":["7:3.3.4-2","7:3.3.4-2build3","7:3.4-2ubuntu2","7:3.4-4","7:3.4-4build1","7:3.4.1-1","7:3.4.1-1build1","7:3.4.2-1","7:3.4.2-1build1","7:3.4.2-2"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"ffmpeg","product":"ffmpeg"}],"references":[{"url":"https://www.debian.org/security/2018/dsa-4249","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/e1182fac1afba92a4975917823a5f644bee7e6e8","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/6bbef938839adc55e8e048bc9cc2e0fafe2064df","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12458"},{"url":"https://github.com/advisories/GHSA-hw72-rqr9-3f2g"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-12458","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0319.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=23329","tags":["report"]},{"url":"https://git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n3.3.8","tags":["web"]},{"url":"http://ffmpeg.org/download.html","tags":["web"]},{"url":"http://ffmpeg.org/security.html","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20183609-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1097983","tags":["report"]},{"url":"https://bugzilla.suse.com/1100345","tags":["report"]},{"url":"https://bugzilla.suse.com/1100348","tags":["report"]},{"url":"https://bugzilla.suse.com/1105869","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-12458","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-13300","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-13305","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-15822","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-12458","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12458","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-12458","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","status":"published","published":"2018-06-15T15:00:00Z","modified":"2024-08-05T08:38:05.966Z","updated_at":"2026-11-02T14:35:06.679212Z"}],"euvd":[{"id":"EUVD-2018-4428","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","status":"published","published":"2018-06-15T15:00:00Z","modified":"2024-08-05T08:38:05Z","updated_at":"2026-11-03T02:39:52.61924Z"}],"ghsa":[{"id":"GHSA-hw72-rqr9-3f2g","title":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in...","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","status":"published","published":"2022-05-13T01:11:44Z","modified":"2023-02-01T05:03:38Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:50:05.685198Z"}],"nvd":[{"id":"CVE-2018-12458","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","status":"published","published":"2018-06-15T15:29:00.217Z","modified":"2026-06-17T01:37:49.067Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:04:29.837913Z"}],"osv":[{"id":"CVE-2018-12458","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","status":"published","published":"2018-06-15T15:29:00.217Z","modified":"2026-11-07T13:28:11.579106902Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-07T11:15:38.581573Z"},{"id":"DEBIAN-CVE-2018-12458","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","status":"published","published":"2018-06-15T15:29:00.217Z","modified":"2026-10-23T18:03:53.761776572Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:30.290351Z"},{"id":"UBUNTU-CVE-2018-12458","description":"An improper integer type in the mpeg4_encode_gop_header function in libavcodec/mpeg4videoenc.c in FFmpeg 2.8 and 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service.","status":"published","published":"2018-06-15T15:29:00Z","modified":"2026-04-22T11:43:25.065354Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:17.014176Z"},{"id":"DSA-4249-1","title":"ffmpeg - security update","status":"published","published":"2018-07-17T00:00:00Z","modified":"2026-03-09T02:10:18.818901Z","updated_at":"2026-11-02T15:46:16.862196Z"},{"id":"MGASA-2018-0319","title":"Updated ffmpeg packages fix security vulnerabilities","description":"This update provides ffmpeg version 3.3.8, which fixes several security\nvulnerabilities and other bugs which were corrected upstream.\n","status":"published","published":"2018-07-23T22:27:34Z","modified":"2026-04-16T06:22:41.495361034Z","updated_at":"2026-11-02T15:49:40.793816Z"},{"id":"SUSE-SU-2018:3609-1","title":"Security update for ffmpeg","description":"This update for ffmpeg fixes the following issues:\n\n- CVE-2018-13300: An improper argument passed to the avpriv_request_sample\n  function may have triggered an out-of-array read while converting a crafted AVI\n  file to MPEG4, leading to a denial of service and possibly an information\n  disclosure (bsc#1100348)\n- CVE-2018-15822: The flv_write_packet function did not check for an empty\n  audio packet, leading to an assertion failure and DoS (bsc#1105869)\n- CVE-2018-13305: Due to a missing check for negative values of the mquant\n  variable, the vc1_put_blocks_clamped function in libavcodec/vc1_block.c\n  may trigger an out-of-array access while converting a crafted AVI\n  file to MPEG4, leading to an information disclosure or a denial of\n  service. (bsc#1100345).\n- CVE-2018-12458: An improper integer type in the mpeg4_encode_gop_header\n  function in libavcodec/mpeg4videoenc.c might have triggered an assertion\n  violation while converting a crafted AVI file to MPEG4, leading to a\n  denial of service. (bsc#1097983).\n","status":"published","published":"2018-11-02T16:11:02Z","modified":"2026-02-04T02:43:42.919036Z","updated_at":"2026-11-02T15:53:45.378228Z"}]}}
