{"id":"CVE-2016-5319","aliases":["DEBIAN-CVE-2016-5319","DLA-693-1","EUVD-2016-6270","GHSA-qxv5-8384-wvg6","MGASA-2018-0409","SUSE-SU-2018:2676-1","SUSE-SU-2018:2836-1","SUSE-SU-2018:3879-1","UBUNTU-CVE-2016-5319"],"status":"published","title":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers...","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","severity":{"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","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.0371,"percentile":0.89822,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2016-11-02T00:00:00Z","modified":"2026-10-24T10:30:30Z","fixes":[{"ecosystem":"Debian:12","package":"tiff","fixed_in":["4.0.6-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"tiff","fixed_in":["4.0.6-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"tiff","fixed_in":["4.0.6-3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.6-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.6-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.6-3"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.2-6+deb7u7"}]}],"versions":["4.0.2-6","4.0.2-6+deb7u1","4.0.2-6+deb7u2","4.0.2-6+deb7u3","4.0.2-6+deb7u4","4.0.2-6+deb7u5","4.0.2-6+deb7u6"],"bundled":17},{"source":"osv","ecosystem":"Mageia:6","package":"libtiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.9-1.6.mga6"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-141.169.16.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 11 SP4","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-141.169.16.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-141.169.16.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.9-44.21.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP3","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.9-44.21.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.9-44.21.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.9-44.21.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-141.169.22.1"}]}],"bundled":11},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 11 SP4","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-141.169.22.1"}]}],"bundled":11},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","package":"tiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-141.169.22.1"}]}],"bundled":11}],"products":[{"vendor":"libtiff","product":"libtiff"}],"references":[{"url":"https://security.gentoo.org/glsa/201701-16","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory"]},{"url":"http://www.securityfocus.com/bid/88604","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2016/04/27/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2016/06/07/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5319"},{"url":"https://github.com/advisories/GHSA-qxv5-8384-wvg6"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-5319","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0409.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=23142","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20182676-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1074186","tags":["report"]},{"url":"https://bugzilla.suse.com/1092480","tags":["report"]},{"url":"https://bugzilla.suse.com/960589","tags":["report"]},{"url":"https://bugzilla.suse.com/983440","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8668","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5319","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17942","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-10779","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20182836-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20183879-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1010163","tags":["report"]},{"url":"https://bugzilla.suse.com/1014461","tags":["report"]},{"url":"https://bugzilla.suse.com/1040080","tags":["report"]},{"url":"https://bugzilla.suse.com/1040322","tags":["report"]},{"url":"https://bugzilla.suse.com/1099257","tags":["report"]},{"url":"https://bugzilla.suse.com/1113672","tags":["report"]},{"url":"https://bugzilla.suse.com/974446","tags":["report"]},{"url":"https://bugzilla.suse.com/974447","tags":["report"]},{"url":"https://bugzilla.suse.com/974448","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8870","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-3619","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-3620","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-3621","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-9273","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9117","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9147","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-12900","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-18661","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-5319","tags":["report"]},{"url":"http://seclists.org/oss-sec/2016/q2/486","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-5319","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-5319","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","status":"published","published":"2017-01-20T15:00:00Z","modified":"2024-08-06T01:00:59.968Z","updated_at":"2026-11-02T14:33:30.767029Z"}],"euvd":[{"id":"EUVD-2016-6270","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","status":"published","published":"2017-01-20T15:00:00Z","modified":"2024-08-06T01:00:59Z","updated_at":"2026-11-03T02:22:42.442421Z"}],"ghsa":[{"id":"GHSA-qxv5-8384-wvg6","title":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers...","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","status":"published","published":"2022-05-17T02:37:29Z","modified":"2023-01-27T05:05:32Z","cvss":[{"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"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:42:42.951341Z"}],"nvd":[{"id":"CVE-2016-5319","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","status":"published","published":"2017-01-20T15:59:00.443Z","modified":"2026-06-17T00:49:12.643Z","cvss":[{"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","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-119"],"updated_at":"2026-11-02T14:03:35.029632Z"}],"osv":[{"id":"CVE-2016-5319","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","status":"published","published":"2017-01-20T15:59:00.443Z","modified":"2026-10-24T10:30:30.148407431Z","cvss":[{"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:44:02.454775Z"},{"id":"DEBIAN-CVE-2016-5319","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","status":"published","published":"2017-01-20T15:59:00.443Z","modified":"2026-09-22T07:02:00.679811622Z","cvss":[{"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:45:27.627285Z"},{"id":"UBUNTU-CVE-2016-5319","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted bmp file.","status":"withdrawn","published":"2017-01-20T15:59:00Z","modified":"2025-07-16T08:12:21.20621Z","cvss":[{"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:12.642042Z"},{"id":"DLA-693-1","title":"tiff - security update","status":"published","published":"2016-11-02T00:00:00Z","modified":"2026-03-09T02:09:43.869319Z","updated_at":"2026-11-02T15:46:13.207219Z"},{"id":"MGASA-2018-0409","title":"Updated libtiff packages fix security vulnerabilities","description":"Heap-based buffer overflow in tif_packbits.c in libtiff 4.0.6 and earlier\nallows remote attackers to crash the application via a crafted bmp file\n(CVE-2016-5319).\n\nIn LibTIFF 4.0.9, there is a heap-based buffer over-read in the function\nPackBitsEncode in tif_packbits.c (CVE-2017-17942).\n\nTIFFWriteScanline in tif_write.c in LibTIFF 3.8.2 has a heap-based buffer\nover-read, as demonstrated by bmp2tiff (CVE-2018-10779).\n","status":"published","published":"2018-10-20T13:55:49Z","modified":"2026-04-16T06:26:03.207797038Z","updated_at":"2026-11-02T15:49:40.793816Z"},{"id":"SUSE-SU-2018:2676-1","title":"Security update for tiff","description":"This update for tiff fixes the following issues:\n\nThe following security vulnerabilities were addressed:\n\n- CVE-2015-8668: Fixed a heap-based buffer overflow in the PackBitsPreEncode\n  function in tif_packbits.c in bmp2tiff, which allowed remote attackers to\n  execute arbitrary code or cause a denial of service via a large width field\n  in a specially crafted BMP image. (bsc#960589)\n- CVE-2018-10779: Fixed a heap-based buffer over-read in TIFFWriteScanline() in\n  tif_write.c (bsc#1092480)\n- CVE-2017-17942: Fixed a heap-based buffer overflow in the function\n  PackBitsEncode in tif_packbits.c. (bsc#1074186)\n- CVE-2016-5319: Fixed a beap-based buffer overflow in bmp2tiff (bsc#983440)\n","status":"published","published":"2018-09-10T13:05:16Z","modified":"2026-02-04T04:06:10.130759Z","updated_at":"2026-11-02T15:53:45.378228Z"},{"id":"SUSE-SU-2018:2836-1","title":"Security update for tiff","description":"This update for tiff fixes the following issues:\n\nSecurity issues fixed:\n\n- CVE-2018-10779: Fixed a heap-based buffer overflow in TIFFWriteScanline()\n  in tif_write.c (bsc#1092480)\n- CVE-2017-17942: Fixed a heap-based buffer overflow in the function\n  PackBitsEncode in tif_packbits.c. (bsc#1074186)\n- CVE-2016-5319: Fixed a beap-based buffer overflow in bmp2tiff (bsc#983440)\n","status":"published","published":"2018-09-24T10:54:45Z","modified":"2026-02-04T02:48:10.081537Z","updated_at":"2026-11-02T15:53:45.378228Z"},{"id":"SUSE-SU-2018:3879-1","title":"Security update for tiff","description":"This update for tiff fixes the following issues:\n\nSecurity issues fixed:\n\n- CVE-2018-18661: Fixed NULL pointer dereference in the function LZWDecode in the file tif_lzw.c (bsc#1113672).\n- CVE-2018-12900: Fixed heap-based buffer overflow in the cpSeparateBufToContigBuf (bsc#1099257).\n- CVE-2017-9147: Fixed invalid read in the _TIFFVGetField function in tif_dir.c, that allowed remote attackers to cause a DoS via acrafted TIFF file (bsc#1040322). \n- CVE-2017-9117: Fixed BMP images processing that was verified without biWidth and biHeight values (bsc#1040080).\n- CVE-2017-17942: Fixed issue in the function PackBitsEncode that could have led to a heap overflow and caused a DoS (bsc#1074186).\n- CVE-2016-9273: Fixed heap-based buffer overflow issue (bsc#1010163).\n- CVE-2016-5319: Fixed heap-based buffer overflow in PackBitsEncode (bsc#983440).\n- CVE-2016-3621: Fixed out-of-bounds read in the bmp2tiff tool (lzw packing) (bsc#974448).\n- CVE-2016-3620: Fixed out-of-bounds read in the bmp2tiff tool (zip packing) (bsc#974447)\n- CVE-2016-3619: Fixed out-of-bounds read in the bmp2tiff tool (none packing) (bsc#974446)\n- CVE-2015-8870: Fixed integer overflow in tools/bmp2tiff.c that allowed remote attackers to causea DOS (bsc#1014461).\n\nNon-security issues fixed:\n\n- asan_build: build ASAN included\n- debug_build: build more suitable for debugging\n","status":"published","published":"2018-11-23T16:06:18Z","modified":"2025-05-02T04:04:53.412599Z","updated_at":"2026-11-02T15:53:45.378228Z"}]}}
