{"schemaVersion":3,"id":"CVE-2016-3977","aliases":["ALPINE-CVE-2016-3977","MGASA-2016-0399","SUSE-SU-2016:1139-1","SUSE-SU-2016:1140-1","UBUNTU-CVE-2016-3977","DEBIAN-CVE-2016-3977"],"status":"published","duplicateOf":null,"title":null,"description":"Heap-based buffer overflow in util/gif2rgb.c in gif2rgb in giflib 5.1.2 allows remote attackers to cause a denial of service (application crash) via the background color index in a GIF file.","dates":{"published":"2016-04-21T14:00:00.000Z","modified":"2024-08-06T00:10:31.969Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true}]},"epss":{"probability":0.02103,"percentile":0.81448,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.00999999999999994,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02113},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03792,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02103,"percentile":0.81448}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03792,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02113,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02103,"percentile":0.81448}]},"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-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"alpine","product":"giflib","name":"giflib","label":"giflib","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/giflib","purlType":"apk","versions":[{"text":"< 5.1.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"giflib","name":"giflib","label":"giflib","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/giflib","purlType":"deb","versions":[{"text":"< 5.1.4-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"giflib","name":"giflib","label":"giflib","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/giflib","purlType":"deb","versions":[{"text":"< 5.1.4-2ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-2ubuntu0.1","eol":null,"hubHref":null},{"vendor":"giflib_project","product":"giflib","name":"giflib","label":"giflib","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 5.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 5.1.2","eol":null,"hubHref":"/vendor/giflib_project/giflib"},{"vendor":"mageia","product":"giflib","name":"giflib","label":"giflib","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/giflib","purlType":"rpm","versions":[{"text":"< 4.2.3-4.3.mga5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.3-4.3.mga5","eol":null,"hubHref":null},{"vendor":"opensuse","product":"opensuse","name":"opensuse","label":"opensuse","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"13.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"13.2","eol":{"isEol":true,"eolDate":"2017-01-17T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"13.2","label":"13.2","eolFrom":"2017-01-17T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/opensuse"},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Desktop 12","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Desktop 12","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Desktop 12","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Desktop 12 SP1","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Desktop 12 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Desktop 12 SP1","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Server 11 SP4","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Server 11 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Server 11 SP4","purlType":"rpm","versions":[{"text":"< 4.1.6-21.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.1.6-21.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Server 12","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Server 12","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Server 12","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Server 12 SP1","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Server 12 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Server 12 SP1","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4","purlType":"rpm","versions":[{"text":"< 4.1.6-21.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.1.6-21.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Server for SAP Applications 12","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Server for SAP Applications 12","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Server for SAP Applications 12","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP1","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP1","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","purlType":"rpm","versions":[{"text":"< 4.1.6-21.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.1.6-21.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Software Development Kit 12","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Software Development Kit 12","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Software Development Kit 12","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"giflib&distro=SUSE Linux Enterprise Software Development Kit 12 SP1","name":"giflib","label":"giflib&distro=SUSE Linux Enterprise Software Development Kit 12 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/giflib&distro=SUSE Linux Enterprise Software Development Kit 12 SP1","purlType":"rpm","versions":[{"text":"< 5.0.5-12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-12.1","eol":null,"hubHref":null}],"affectedCount":17,"eol":{"hasEol":true,"count":1},"references":[{"url":"http://www.securityfocus.com/bid/88103","label":"www.securityfocus.com/bid/88103","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"http://lists.opensuse.org/opensuse-updates/2016-04/msg00084.html","label":"lists.opensuse.org/opensuse-updates/2016-04/msg00084.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE"]},{"url":"https://sourceforge.net/p/giflib/bugs/87/","label":"sourceforge.net/p/giflib/bugs/87/","hostname":"sourceforge.net","tags":["X Refsource CONFIRM","Patch"]},{"url":"https://sourceforge.net/p/giflib/code/ci/ea8dbc5786862a3e16a5acfa3d24e2c2f608cd88/","label":"sourceforge.net/p/giflib/code/ci/ea8dbc5786862a3e16a5acfa3d24e2c2f608cd88/","hostname":"sourceforge.net","tags":["X Refsource CONFIRM","Patch","Vendor Advisory"]},{"url":"http://lists.opensuse.org/opensuse-updates/2016-04/msg00079.html","label":"lists.opensuse.org/opensuse-updates/2016-04/msg00079.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE"]},{"url":"http://bugs.fi/fuzzing/index.html","label":"bugs.fi/fuzzing/index.html","hostname":"bugs.fi","tags":["X Refsource MISC"]},{"url":"http://lists.opensuse.org/opensuse-updates/2016-05/msg00019.html","label":"lists.opensuse.org/opensuse-updates/2016-05/msg00019.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1325771","label":"bugzilla.redhat.com/show_bug.cgi?id=1325771","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM"]},{"url":"https://usn.ubuntu.com/4107-1/","label":"usn.ubuntu.com/4107-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-3977","label":"security.alpinelinux.org/vuln/CVE-2016-3977","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2016-0399.html","label":"advisories.mageia.org/MGASA-2016-0399.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=18233","label":"bugs.mageia.org/show_bug.cgi?id=18233","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.opensuse.org/opensuse-updates/2016-04/msg00079.html","label":"lists.opensuse.org/opensuse-updates/2016-04/msg00079.html","hostname":"lists.opensuse.org","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20161139-1/","label":"www.suse.com/support/update/announcement/2016/suse-su-20161139-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/974847","label":"bugzilla.suse.com/974847","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2016-3977","label":"www.suse.com/security/cve/CVE-2016-3977","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20161140-1/","label":"www.suse.com/support/update/announcement/2016/suse-su-20161140-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2016-3977","label":"ubuntu.com/security/CVE-2016-3977","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4107-1","label":"ubuntu.com/security/notices/USN-4107-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-3977","label":"www.cve.org/CVERecord?id=CVE-2016-3977","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-3977","label":"security-tracker.debian.org/tracker/CVE-2016-3977","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10016-1","SUSE-SU-2022:1565-1","SUSE-SU-2023:1970-2","USN-4107-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:10016-1","SUSE-SU-2022:1565-1","SUSE-SU-2023:1970-2","USN-4107-1"]},"timeline":[{"kind":"published","date":"2016-04-21T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T00:10:31.969Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:23:57.668Z","stale":false,"partial":false}}