CVE catalog

CVE-2016-7127

libgd2: CVE-2016-7127

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
6.84% · Oct 25, 2026

The imagegammacorrect function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate gamma values, which allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact by providing different signs for the second and third arguments.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibgd2sid2.3.3-14not affected
Debianlibgd2forky2.3.3-14not affected
Debianlibgd2trixie2.3.3-14~deb13u1not affected
Debianlibgd2trixie-security2.3.3-14~deb13u1not affected
Debianlibgd2bookworm2.3.3-9not affected
Debianlibgd2bookworm-security2.3.3-9+deb12u1not affected
Ubuntuphp514.045.5.3+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.3+dfsg-1ubuntu3vulnerable
Ubuntuphp514.045.5.6+dfsg-1ubuntu1vulnerable
Ubuntuphp514.045.5.6+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.8+dfsg-2ubuntu1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu3vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.2vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.3vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.4vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.5vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.6vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.7vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.9vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.11vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.12vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.13vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.14vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.16vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.17vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.19vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.20fixed
Ubuntuphp7.016.047.0.1-5vulnerable
Ubuntuphp7.016.047.0.1-6vulnerable
Ubuntuphp7.016.047.0.2-1vulnerable
Ubuntuphp7.016.047.0.2-3vulnerable
Ubuntuphp7.016.047.0.2-4vulnerable
Ubuntuphp7.016.047.0.2-5vulnerable
Ubuntuphp7.016.047.0.3-2vulnerable
Ubuntuphp7.016.047.0.3-3vulnerable
Ubuntuphp7.016.047.0.3-9ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2.1vulnerable
Ubuntuphp7.016.047.0.8-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.8-0ubuntu0.16.04.2vulnerable
Ubuntuphp7.016.047.0.8-0ubuntu0.16.04.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgd2sourcesidNot affectedunimportantNot reportedNot reported
Debianlibgd2sourceforkyNot affectedunimportantNot reportedNot reported
Debianlibgd2sourcetrixieNot affectedunimportantNot reportedNot reported
Debianlibgd2sourcebookwormNot affectedunimportantNot reportedNot reported
Ubuntuphp5deb14.045.5.9+dfsg-1ubuntu4.20Not reportedUBUNTU-CVE-2016-7127Not reported
Ubuntuphp7.0deb16.047.0.8-0ubuntu0.16.04.3Not reportedUBUNTU-CVE-2016-7127Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libgd3]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-9 · amd64 · bookworm

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9 · arm64 · bookworm

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · libgd2 · debian · bookworm

  • [libgd-dev]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-9 · amd64 · bookworm

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9 · arm64 · bookworm

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · libgd2 · debian · bookworm

  • [libgd-tools]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-9 · amd64 · bookworm

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9 · arm64 · bookworm

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · libgd2 · debian · bookworm

    • 2.3.3-9+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · libgd2 · debian · bookworm

Observed:

References