CVE-2016-3074

Source
https://cve.org/CVERecord?id=CVE-2016-3074
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-3074.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-3074
Downstream
Published
2016-04-26T14:59:01Z
Modified
2026-08-07T14:49:09Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

Database specific
{
    "unresolved_ranges":  [
        {
            "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:*:*:*"
            ],
            "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: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

Affected packages

Git / github.com/libgd/libgd

Affected ranges

Type
GIT
Repo
https://github.com/libgd/libgd
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:libgd:libgd:2.1.1:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "2.1.1"
        },
        {
            "last_affected":  "2.1.1"
        }
    ],
    "source":  [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

2.*
2.1.1
gd-2.*
gd-2.1.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-3074.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "163878100595225240009372061331328833043",
            "length":  2523
        },
        "id":  "CVE-2016-3074-081b5b6d",
        "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":  {
            "line_hashes":  [
                "308632048764262319325349404959904373833",
                "156654908032796698564829210861782091210",
                "87643980687445443250260216682085309841",
                "74748855092100787267051943652936968299"
            ],
            "threshold":  0.9
        },
        "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"
        }
    }
]
vanir_signatures_modified
"2026-08-07T14:49:09Z"

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
Show details
{
    "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"