{"id":"CVE-2016-6214","aliases":["ALPINE-CVE-2016-6214","DEBIAN-CVE-2016-6214","DSA-3619-1","EUVD-2016-7145","GHSA-3cgp-hvw6-ghr7","MGASA-2016-0258","SUSE-SU-2016:2303-1","UBUNTU-CVE-2016-6214","USN-3060-1","openSUSE-SU-2024:10062-1"],"status":"published","title":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a...","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA 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-09","score":0.03201,"percentile":0.88222,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2016-07-14T00:00:00Z","modified":"2026-10-20T13:15:26Z","fixes":[{"ecosystem":"Alpine:v3.2","package":"gd","fixed_in":["2.2.1-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.3","package":"gd","fixed_in":["2.2.1-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.4","package":"gd","fixed_in":["2.2.3-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"libgd2","fixed_in":["2.2.2-29-g3c2b605-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libgd2","fixed_in":["2.2.2-29-g3c2b605-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libgd2","fixed_in":["2.2.2-29-g3c2b605-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","fixed_in":["2.1.0-3ubuntu0.3"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","fixed_in":["2.1.1-4ubuntu0.16.04.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.3","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.4","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2-29-g3c2b605-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2-29-g3c2b605-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2-29-g3c2b605-1"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-5+deb8u4"}]}],"versions":["2.1.0-5","2.1.0-5+deb8u1","2.1.0-5+deb8u2","2.1.0-5+deb8u3"],"bundled":7},{"source":"osv","ecosystem":"Mageia:5","package":"libgd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-1.1.mga5"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-12.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-12.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-12.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-12.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-12.1"}]}],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.3"}]}],"versions":["2.1.0-2","2.1.0-3","2.1.0-3ubuntu0.1","2.1.0-3ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.3"}]}],"versions":["2.1.1-4build1","2.1.1-4build2","2.1.1-4ubuntu0.16.04.1","2.1.1-4ubuntu0.16.04.2"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.3"}]}],"versions":["2.1.0-2","2.1.0-3","2.1.0-3ubuntu0.1","2.1.0-3ubuntu0.2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.3"}]}],"versions":["2.1.1-4build1","2.1.1-4build2","2.1.1-4ubuntu0.16.04.1","2.1.1-4ubuntu0.16.04.2"],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-2.1"}]}],"bundled":8}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"libgd","product":"libgd"},{"vendor":"opensuse","product":"leap"}],"references":[{"url":"http://lists.opensuse.org/opensuse-updates/2016-08/msg00086.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://libgd.github.io/release-2.2.3.html","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"http://lists.opensuse.org/opensuse-updates/2016-09/msg00078.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/libgd/libgd/issues/247#issuecomment-232084241","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/libgd/libgd/commit/10ef1dca63d62433fda13309b4a228782db823f7","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/13/12","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/13/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://www.ubuntu.com/usn/USN-3060-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"http://www.debian.org/security/2016/dsa-3619","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6214"},{"url":"https://github.com/advisories/GHSA-3cgp-hvw6-ghr7"},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-6214","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-6214","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2016-0258.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=18938","tags":["report"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=18947","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2016/06/30/10","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2016/07/13/12","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2016/07/12/4","tags":["web"]},{"url":"https://bugs.php.net/bug.php?id=72558","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20162303-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/982176","tags":["report"]},{"url":"https://bugzilla.suse.com/987577","tags":["report"]},{"url":"https://bugzilla.suse.com/988032","tags":["report"]},{"url":"https://bugzilla.suse.com/991436","tags":["report"]},{"url":"https://bugzilla.suse.com/991622","tags":["report"]},{"url":"https://bugzilla.suse.com/991710","tags":["report"]},{"url":"https://bugzilla.suse.com/995034","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5116","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6128","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6132","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6161","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6207","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6214","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6905","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-6214","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3060-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-6214","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-6132","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-6207","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2014-2497","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5766","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2016-6214","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2016-08-12T15:00:00Z","modified":"2024-08-06T01:22:20.648Z","updated_at":"2026-11-02T14:33:34.443637Z"}],"euvd":[{"id":"EUVD-2016-7145","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2016-08-12T15:00:00Z","modified":"2024-08-06T01:22:20Z","updated_at":"2026-11-03T02:22:40.469928Z"}],"ghsa":[{"id":"GHSA-3cgp-hvw6-ghr7","title":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a...","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2022-05-14T02:12:37Z","modified":"2023-02-02T05:05:39Z","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-125"],"updated_at":"2026-11-02T14:52:09.236869Z"}],"nvd":[{"id":"CVE-2016-6214","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2016-08-12T15:59:04.98Z","modified":"2026-06-17T00:50:38.83Z","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-125"],"updated_at":"2026-11-02T14:03:28.854267Z"}],"osv":[{"id":"ALPINE-CVE-2016-6214","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2016-08-12T15:59:04.98Z","modified":"2026-09-22T06:30:25.096820962Z","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:27:46.318571Z"},{"id":"CVE-2016-6214","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2016-08-12T15:59:04.98Z","modified":"2026-10-20T13:15:26.145449292Z","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.776224Z"},{"id":"DEBIAN-CVE-2016-6214","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2016-08-12T15:59:04.98Z","modified":"2026-09-22T07:01:39.028462545Z","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.910042Z"},{"id":"UBUNTU-CVE-2016-6214","description":"gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.","status":"published","published":"2016-07-14T00:00:00Z","modified":"2026-04-22T10:52:39.564937Z","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":"DSA-3619-1","title":"libgd2 - security update","status":"published","published":"2016-07-15T00:00:00Z","modified":"2026-03-09T01:18:02.770224Z","updated_at":"2026-11-02T15:46:16.199525Z"},{"id":"MGASA-2016-0258","title":"Updated libgd packages fix security vulnerability","description":"Updated libgd packages fix security vulnerabilities:\n\nA read out-of-bounds was found in the parsing of TGA files when the header\nreports an incorrect size (CVE-2016-6132) or invalid bpp (CVE-2016-6214) or\nRLE value (upstream issue 248).\n\nInteger overflow error within _gdContributionsAlloc() (CVE-2016-6207).\n\nA regression in the previous update that caused some packages to fail to\nbuild against libgd has also been fixed (mga#18947).\n","status":"published","published":"2016-07-26T19:11:30Z","modified":"2026-04-16T06:24:50.11099243Z","updated_at":"2026-11-02T15:49:40.103088Z"},{"id":"openSUSE-SU-2024:10062-1","title":"gd-2.2.3-2.1 on GA media","description":"These are all security issues fixed in the gd-2.2.3-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:35:02.411178Z","updated_at":"2026-11-02T16:58:33.135986Z"},{"id":"SUSE-SU-2016:2303-1","title":"Security update for gd","description":"\nThis update for gd fixes the following issues:\n\n  * CVE-2016-6214: Buffer over-read issue when parsing crafted TGA file [bsc#991436]\n  * CVE-2016-6132: read out-of-bands was found in the parsing of TGA files using libgd [bsc#987577]\n  * CVE-2016-6128: Invalid color index not properly handled [bsc#991710]\n  * CVE-2016-6207: Integer overflow error within _gdContributionsAlloc() [bsc#991622]\n  * CVE-2016-6161: global out of bounds read when encoding gif from malformed input withgd2togif [bsc#988032]\n  * CVE-2016-5116: avoid stack overflow (read) with large names [bsc#982176]\n  * CVE-2016-6905: Out-of-bounds read in function read_image_tga in gd_tga.c [bsc#995034]\n\n","status":"published","published":"2016-09-14T07:12:19Z","modified":"2026-02-04T03:56:49.945768Z","updated_at":"2026-11-02T15:53:43.438985Z"},{"id":"USN-3060-1","title":"libgd2 vulnerabilities","description":"It was discovered that the GD library incorrectly handled certain malformed\nTGA images. If a user or automated system were tricked into processing a\nspecially crafted TGA image, an attacker could cause a denial of service.\n(CVE-2016-6132, CVE-2016-6214)\n\nIt was discovered that the GD library incorrectly handled memory when using\ngdImageScale(). A remote attacker could possibly use this issue to cause a\ndenial of service or possibly execute arbitrary code. (CVE-2016-6207)\n","status":"published","published":"2016-08-10T17:05:02Z","modified":"2026-04-22T09:27:12.726547Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
