{"id":"CVE-2016-6906","aliases":["ALPINE-CVE-2016-6906","DEBIAN-CVE-2016-6906","DSA-3777-1","EUVD-2016-7791","GHSA-x7r4-5mq3-7p72","SUSE-SU-2017:0468-1","UBUNTU-CVE-2016-6906","USN-3213-1"],"status":"published","title":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4...","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","severity":{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/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.01993,"percentile":0.8082,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2016-12-31T00:00:00Z","modified":"2026-10-20T13:15:41Z","fixes":[{"ecosystem":"Alpine:v3.3","package":"gd","fixed_in":["2.2.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.4","package":"gd","fixed_in":["2.2.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.5","package":"gd","fixed_in":["2.2.4-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"libgd2","fixed_in":["2.2.4-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libgd2","fixed_in":["2.2.4-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libgd2","fixed_in":["2.2.4-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","fixed_in":["2.1.0-3ubuntu0.6"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","fixed_in":["2.1.1-4ubuntu0.16.04.6"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.3","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.4","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.5","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-1"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-5+deb8u9"}]}],"versions":["2.1.0-5","2.1.0-5+deb8u1","2.1.0-5+deb8u2","2.1.0-5+deb8u3","2.1.0-5+deb8u4","2.1.0-5+deb8u5","2.1.0-5+deb8u6","2.1.0-5+deb8u7","2.1.0-5+deb8u8"],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.6"}]}],"versions":["2.1.0-2","2.1.0-3","2.1.0-3ubuntu0.1","2.1.0-3ubuntu0.2","2.1.0-3ubuntu0.3","2.1.0-3ubuntu0.5"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.6"}]}],"versions":["2.1.1-4build1","2.1.1-4build2","2.1.1-4ubuntu0.16.04.1","2.1.1-4ubuntu0.16.04.2","2.1.1-4ubuntu0.16.04.3","2.1.1-4ubuntu0.16.04.5"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.6"}]}],"versions":["2.1.0-2","2.1.0-3","2.1.0-3ubuntu0.1","2.1.0-3ubuntu0.2","2.1.0-3ubuntu0.3","2.1.0-3ubuntu0.5"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.6"}]}],"versions":["2.1.1-4build1","2.1.1-4build2","2.1.1-4ubuntu0.16.04.1","2.1.1-4ubuntu0.16.04.2","2.1.1-4ubuntu0.16.04.3","2.1.1-4ubuntu0.16.04.5"],"bundled":7}],"products":[{"vendor":"libgd","product":"libgd"}],"references":[{"url":"https://github.com/libgd/libgd/blob/gd-2.2.4/CHANGELOG.md","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Third Party Advisory","advisory"]},{"url":"https://github.com/libgd/libgd/commit/58b6dde319c301b0eae27d12e2a659e067d80558","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://www.debian.org/security/2017/dsa-3777","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"https://github.com/libgd/libgd/commit/fb0e0cce0b9f25389ab56604c3547351617e1415","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://www.securityfocus.com/bid/96503","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6906"},{"url":"https://github.com/advisories/GHSA-x7r4-5mq3-7p72"},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-6906","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-6906","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2017/suse-su-20170468-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1022263","tags":["report"]},{"url":"https://bugzilla.suse.com/1022264","tags":["report"]},{"url":"https://bugzilla.suse.com/1022265","tags":["report"]},{"url":"https://bugzilla.suse.com/1022283","tags":["report"]},{"url":"https://bugzilla.suse.com/1022284","tags":["report"]},{"url":"https://bugzilla.suse.com/1022553","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10166","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10167","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10168","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6906","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6912","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-9317","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-6906","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3213-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-6906","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-6912","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-9317","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-9933","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10166","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10167","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10168","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-6906","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2017-03-15T14:00:00Z","modified":"2024-08-06T01:43:38.552Z","updated_at":"2026-11-02T14:33:34.443637Z"}],"euvd":[{"id":"EUVD-2016-7791","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2017-03-15T14:00:00Z","modified":"2024-08-06T01:43:38Z","updated_at":"2026-11-03T02:22:35.048987Z"}],"ghsa":[{"id":"GHSA-x7r4-5mq3-7p72","title":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4...","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2022-05-17T00:27:22Z","modified":"2023-02-03T05:01:41Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:53:01.625617Z"}],"nvd":[{"id":"CVE-2016-6906","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2017-03-15T14:59:00.43Z","modified":"2026-06-17T00:51:58.413Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/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:37.238712Z"}],"osv":[{"id":"ALPINE-CVE-2016-6906","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2017-03-15T14:59:00.43Z","modified":"2026-09-22T06:30:31.195338846Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/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-6906","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2017-03-15T14:59:00.43Z","modified":"2026-10-20T13:15:41.568408489Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/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-6906","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2017-03-15T14:59:00.43Z","modified":"2026-09-22T07:02:22.048081834Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/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-6906","description":"The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.","status":"published","published":"2016-12-31T00:00:00Z","modified":"2026-04-22T10:55:01.016284Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/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-3777-1","title":"libgd2 - security update","status":"published","published":"2017-01-31T00:00:00Z","modified":"2026-03-09T01:20:00.143147Z","updated_at":"2026-11-02T15:46:16.523846Z"},{"id":"SUSE-SU-2017:0468-1","title":"Security update for gd","description":"\nThis update for gd fixes the following security issues:\n\n- CVE-2016-6906: An out-of-bounds read in TGA decompression was fixed which could have lead to crashes. (bsc#1022553)\n- CVE-2016-6912: Double free vulnerability in the gdImageWebPtr function\n  in the GD Graphics Library (aka libgd) allowed remote attackers to have\n  unspecified impact via large width and height values. (bsc#1022284)\n- CVE-2016-9317: The gdImageCreate function in the GD Graphics Library\n  (aka libgd) allowed remote attackers to cause a denial of service\n  (system hang) via an oversized image.  (bsc#1022283)\n- CVE-2016-10166: A potential unsigned underflow in gd interpolation\n  functions could lead to memory corruption in the GD Graphics Library (aka libgd) (bsc#1022263)\n- CVE-2016-10167: A denial of service problem in gdImageCreateFromGd2Ctx()\n  could lead to libgd running out of memory even on small files. (bsc#1022264)\n- CVE-2016-10168: A signed integer overflow in the GD Graphics Library (aka libgd) could lead\n  to memory corruption (bsc#1022265)\n","status":"published","published":"2017-02-15T06:31:22Z","modified":"2026-02-04T04:06:56.780848Z","updated_at":"2026-11-02T15:53:43.83457Z"},{"id":"USN-3213-1","title":"libgd2 vulnerabilities","description":"Stefan Esser discovered that the GD library incorrectly handled memory when\nprocessing certain images. If a user or automated system were tricked into\nprocessing a specially crafted image, an attacker could cause a denial of\nservice, or possibly execute arbitrary code. This issue only affected\nUbuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-10166)\n\nIt was discovered that the GD library incorrectly handled certain malformed\nimages. If a user or automated system were tricked into processing a\nspecially crafted image, an attacker could cause a denial of service.\n(CVE-2016-10167)\n\nIt was discovered that the GD library incorrectly handled certain malformed\nimages. If a user or automated system were tricked into processing a\nspecially crafted image, an attacker could cause a denial of service, or\npossibly execute arbitrary code. (CVE-2016-10168)\n\nIbrahim El-Sayed discovered that the GD library incorrectly handled certain\nmalformed TGA images. If a user or automated system were tricked into\nprocessing a specially crafted TGA image, an attacker could cause a denial\nof service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and\nUbuntu 16.10. (CVE-2016-6906)\n\nIbrahim El-Sayed discovered that the GD library incorrectly handled certain\nmalformed WebP images. If a user or automated system were tricked into\nprocessing a specially crafted WebP image, an attacker could cause a denial\nof service, or possibly execute arbitrary code. This issue only affected\nUbuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-6912)\n\nIt was discovered that the GD library incorrectly handled creating\noversized images. If a user or automated system were tricked into creating\na specially crafted image, an attacker could cause a denial of service.\n(CVE-2016-9317)\n\nIt was discovered that the GD library incorrectly handled filling certain\nimages. If a user or automated system were tricked into filling an image,\nan attacker could cause a denial of service. (CVE-2016-9933)\n","status":"published","published":"2017-02-28T18:31:29Z","modified":"2026-04-22T09:32:58.908812Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
