{"id":"CVE-2016-6905","aliases":["DEBIAN-CVE-2016-6905","DSA-3619-1","EUVD-2016-7790","GHSA-6hhv-cvx8-rhvf","SUSE-SU-2016:2303-1","UBUNTU-CVE-2016-6905","openSUSE-SU-2024:10062-1"],"status":"published","title":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3...","description":"The read_image_tga function in 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 image.","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-08","score":0.02555,"percentile":0.8517,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2016-07-15T00:00:00Z","modified":"2026-10-20T13:13:21Z","fixes":[{"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":"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":"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":"openSUSE:Tumbleweed","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-2.1"}]}],"bundled":8}],"products":[{"vendor":"libgd","product":"libgd"},{"vendor":"opensuse","product":"leap"},{"vendor":"opensuse","product":"opensuse"}],"references":[{"url":"http://lists.opensuse.org/opensuse-updates/2016-09/msg00078.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.securityfocus.com/bid/91743","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"http://libgd.github.io/release-2.2.3.html","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-updates/2016-08/msg00121.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/libgd/libgd/issues/248","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"https://github.com/libgd/libgd/pull/251","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"https://github.com/libgd/libgd/commit/3c2b605d72e8b080dace1d98a6e50b46c1d12186","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"https://github.com/libgd/libgd/commit/01c61f8ab110a77ae64b5ca67c244c728c506f03","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2016/08/23/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6905"},{"url":"https://github.com/advisories/GHSA-6hhv-cvx8-rhvf"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-6905","tags":["advisory"]},{"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-6905","tags":["report"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/12/4","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3060-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-6905","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-6905","description":"The read_image_tga function in 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 image.","status":"published","published":"2016-10-03T21:00:00Z","modified":"2024-08-06T01:43:38.469Z","updated_at":"2026-11-02T14:33:34.094161Z"}],"euvd":[{"id":"EUVD-2016-7790","description":"The read_image_tga function in 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 image.","status":"published","published":"2016-10-03T21:00:00Z","modified":"2024-08-06T01:43:38Z","updated_at":"2026-11-03T02:22:35.048987Z"}],"ghsa":[{"id":"GHSA-6hhv-cvx8-rhvf","title":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3...","description":"The read_image_tga function in 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 image.","status":"published","published":"2022-05-14T02:08:58Z","modified":"2023-02-02T05:05:00Z","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:00.521272Z"}],"nvd":[{"id":"CVE-2016-6905","description":"The read_image_tga function in 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 image.","status":"published","published":"2016-10-03T21:59:05.957Z","modified":"2026-06-17T00:51:58.263Z","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:31.485755Z"}],"osv":[{"id":"CVE-2016-6905","description":"The read_image_tga function in 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 image.","status":"published","published":"2016-10-03T21:59:05.957Z","modified":"2026-10-20T13:13:21.501357957Z","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-6905","description":"The read_image_tga function in 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 image.","status":"published","published":"2016-10-03T21:59:05.957Z","modified":"2026-09-22T07:02:22.069504193Z","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-6905","description":"The read_image_tga function in 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 image.","status":"published","published":"2016-10-03T21:59:00Z","modified":"2026-04-22T10:55:19.800874Z","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":"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"}]}}
