CVE catalog

CVE-2016-7126

libgd2: CVE-2016-7126

[CVE catalog]

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

The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate the number of colors, which allows remote attackers to cause a denial of service (select_colors allocation error and out-of-bounds write) or possibly have unspecified other impact via a large value in the third argument.

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

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgd2sourcesidNot affectedunimportantNot reportedNot reported
Debianlibgd2sourceforkyNot affectedunimportantNot reportedNot reported
Debianlibgd2sourcetrixieNot affectedunimportantNot reportedNot reported
Debianlibgd2sourcebookwormNot affectedunimportantNot reportedNot 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