{"id":"CVE-2016-3982","aliases":["DEBIAN-CVE-2016-3982","DSA-3546-1","EUVD-2016-4991","GHSA-pg66-fmrg-mp86","OESA-2021-1288","UBUNTU-CVE-2016-3982","USN-2951-1"],"status":"published","title":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows...","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.03956,"percentile":0.90495,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2016-04-07T00:00:00Z","modified":"2026-09-22T07:00:46Z","fixes":[{"ecosystem":"Debian:12","package":"optipng","fixed_in":["0.7.6-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"optipng","fixed_in":["0.7.6-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"optipng","fixed_in":["0.7.6-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"optipng","fixed_in":["0.6.4-1ubuntu0.14.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.6-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.6-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.6-1"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.4-1+deb7u2"}]}],"versions":["0.6.4-1","0.6.4-1+deb7u1"],"bundled":3},{"source":"osv","ecosystem":"Debian:8","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.5-1+deb8u1"}]}],"versions":["0.7.5-1"],"bundled":3},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP2","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.7-1.oe1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.4-1ubuntu0.14.04.1"}]}],"versions":["0.6.4-1build1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"optipng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.4-1ubuntu0.14.04.1"}]}],"versions":["0.6.4-1build1"],"bundled":5}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"debian","product":"debian_linux"},{"vendor":"opensuse","product":"leap"},{"vendor":"opensuse","product":"opensuse"},{"vendor":"optipng_project","product":"optipng"}],"references":[{"url":"http://lists.opensuse.org/opensuse-updates/2016-04/msg00065.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.debian.org/security/2016/dsa-3546","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","report"]},{"url":"http://www.ubuntu.com/usn/USN-2951-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"http://lists.opensuse.org/opensuse-updates/2016-04/msg00061.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.gentoo.org/glsa/201608-01","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory"]},{"url":"http://bugs.fi/media/afl/optipng/2/","tags":["x_refsource_MISC","x_transferred","Issue Tracking","report"]},{"url":"https://sourceforge.net/p/optipng/bugs/57/","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3982","tags":["advisory"]},{"url":"https://sourceforge.net/p/optipng/bugs/57"},{"url":"http://bugs.fi/media/afl/optipng/2"},{"url":"https://github.com/advisories/GHSA-pg66-fmrg-mp86"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-3982","tags":["advisory"]},{"url":"https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1288","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3981","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2016-3982","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-2951-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-3982","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2015-7801","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2015-7802","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-2191","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-3981","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-3982","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","status":"published","published":"2016-04-13T16:00:00Z","modified":"2024-08-06T00:10:31.983Z","updated_at":"2026-11-02T14:33:34.094161Z"}],"euvd":[{"id":"EUVD-2016-4991","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","status":"published","published":"2016-04-13T16:00:00Z","modified":"2024-08-06T00:10:31Z","updated_at":"2026-11-03T02:22:48.690835Z"}],"ghsa":[{"id":"GHSA-pg66-fmrg-mp86","title":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows...","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","status":"published","published":"2022-05-14T02:08:55Z","modified":"2025-04-12T12:59:41Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T15:01:26.909163Z"}],"nvd":[{"id":"CVE-2016-3982","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","status":"published","published":"2016-04-13T16:59:24.397Z","modified":"2026-06-17T00:46:40.727Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:03:23.795791Z"}],"osv":[{"id":"CVE-2016-3982","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","status":"published","published":"2016-04-13T16:59:24.397Z","modified":"2026-03-15T14:19:02.803308Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:02.454775Z"},{"id":"DEBIAN-CVE-2016-3982","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","status":"published","published":"2016-04-13T16:59:24.397Z","modified":"2026-09-22T07:00:46.617622754Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:27.627285Z"},{"id":"OESA-2021-1288","title":"optipng security update","description":"\r\n\r\nSecurity Fix(es):\r\n\r\nOff-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.(CVE-2016-3982)\r\n\r\nHeap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file.(CVE-2016-3981)","status":"published","published":"2021-07-31T11:04:31Z","modified":"2026-08-18T01:15:51.809209967Z","cvss":[{"version":"3.1","score":2.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T15:52:38.987987Z"},{"id":"UBUNTU-CVE-2016-3982","description":"Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.","status":"published","published":"2016-04-13T00:00:00Z","modified":"2026-02-04T03:02:31.547969Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:12.261906Z"},{"id":"DSA-3546-1","title":"optipng - security update","status":"published","published":"2016-04-07T00:00:00Z","modified":"2026-03-09T01:20:33.656484Z","updated_at":"2026-11-02T15:46:16.199525Z"},{"id":"USN-2951-1","title":"optipng vulnerabilities","description":"Gustavo Grieco discovered that OptiPNG incorrectly handled memory. A remote\nattacker could use this issue with a specially crafted image file to cause\nOptiPNG to crash, resulting in a denial of service. (CVE-2015-7801)\n\nGustavo Grieco discovered that OptiPNG incorrectly handled memory. A remote\nattacker could use this issue with a specially crafted image file to cause\nOptiPNG to crash, resulting in a denial of service. (CVE-2015-7802)\n\nHans Jerry Illikainen discovered that OptiPNG incorrectly handled memory. A\nremote attacker could use this issue with a specially crafted image file to\ncause OptiPNG to crash, resulting in a denial of service, or possibly\nexecute arbitrary code. (CVE-2016-2191)\n\nHenri Salo discovered that OptiPNG incorrectly handled memory. A remote\nattacker could use this issue with a specially crafted image file to cause\nOptiPNG to crash, resulting in a denial of service, or possibly execute\narbitrary code. (CVE-2016-3981)\n\nHenri Salo discovered that OptiPNG incorrectly handled memory. A remote\nattacker could use this issue with a specially crafted image file to cause\nOptiPNG to crash, resulting in a denial of service, or possibly execute\narbitrary code. (CVE-2016-3982)\n","status":"published","published":"2016-04-18T12:25:09Z","modified":"2026-02-10T04:40:58Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
