{"id":"CVE-2016-3074","details":"Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial of service (crash) or potentially execute arbitrary code via crafted compressed gd2 data, which triggers a heap-based buffer overflow.","modified":"2026-08-07T14:49:09.109243Z","published":"2016-04-26T14:59:01.207Z","database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"12.04"},{"last_affected":"12.04"},{"introduced":"14.04"},{"last_affected":"14.04"},{"introduced":"15.10"},{"last_affected":"15.10"},{"introduced":"16.04"},{"last_affected":"16.04"}],"source":"CPE_STRING","vendor_product":"canonical:ubuntu_linux","cpes":["cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*"]},{"cpes":["cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"},{"introduced":"8.0"},{"last_affected":"8.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux"},{"cpes":["cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"23"},{"last_affected":"23"},{"introduced":"24"},{"last_affected":"24"}],"source":"CPE_STRING","vendor_product":"fedoraproject:fedora"},{"cpes":["cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"13.2"},{"last_affected":"13.2"}],"source":"CPE_STRING","vendor_product":"opensuse:opensuse"}]},"references":[{"type":"ADVISORY","url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183263.html"},{"type":"ADVISORY","url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-May/183724.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00031.html"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3556"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3602"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/538160/100/0/threaded"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/87087"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1035659"},{"type":"ADVISORY","url":"http://www.slackware.com/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.383127"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-2987-1"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201607-04"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201611-22"},{"type":"FIX","url":"https://github.com/libgd/libgd/commit/2bb97f407c1145c850416a3bfbcc8cf124e68a19"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/136757/libgd-2.1.1-Signedness.html"},{"type":"EVIDENCE","url":"http://seclists.org/fulldisclosure/2016/Apr/72"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/39736/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libgd/libgd","events":[{"introduced":"2912c0a2e0a246318f41bf1997f34ce1dc3e5e42"},{"last_affected":"2912c0a2e0a246318f41bf1997f34ce1dc3e5e42"},{"fixed":"2bb97f407c1145c850416a3bfbcc8cf124e68a19"}],"database_specific":{"extracted_events":[{"introduced":"2.1.1"},{"last_affected":"2.1.1"}],"source":["CPE_STRING","REFERENCES"],"cpe":"cpe:2.3:a:libgd:libgd:2.1.1:*:*:*:*:*:*:*"}}],"versions":["2.1.1","gd-2.1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-3074.json","vanir_signatures_modified":"2026-08-07T14:49:09Z","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/libgd/libgd/commit/2bb97f407c1145c850416a3bfbcc8cf124e68a19","target":{"file":"src/gd_gd2.c","function":"_gd2GetHeader"},"deprecated":false,"digest":{"function_hash":"163878100595225240009372061331328833043","length":2523},"id":"CVE-2016-3074-081b5b6d"},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["308632048764262319325349404959904373833","156654908032796698564829210861782091210","87643980687445443250260216682085309841","74748855092100787267051943652936968299"]},"id":"CVE-2016-3074-8c2aa4db","signature_type":"Line","signature_version":"v1","source":"https://github.com/libgd/libgd/commit/2bb97f407c1145c850416a3bfbcc8cf124e68a19","target":{"file":"src/gd_gd2.c"}}]}},{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"2c2d0de09e522fe097bfcebfb758171eb6aa5270"},{"fixed":"9d10b0109258e8ea797c8977c5932d162d6c6004"},{"introduced":"fc1df8e7a6886e29a6ed5bef3f674ac61164e847"},{"fixed":"50a8b9527a2317ba861ad0b660ff981f69941cfd"},{"introduced":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"fixed":"734a5fca2c4731e34eca551f28be9a10ffc3f3c9"}],"database_specific":{"cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"5.5.0"},{"fixed":"5.5.35"},{"introduced":"5.6.0"},{"fixed":"5.6.21"},{"introduced":"7.0.0"},{"fixed":"7.0.6"}],"source":"CPE_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-3074.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}