Skip to content
OpenAdvisories
Unscored USN-2987-1 5 CVEs

libgd2 vulnerabilities

Published May 31, 2016 · Updated Apr 22, 2026

Summary

It was discovered that the GD library incorrectly handled certain color
tables in XPM images. If a user or automated system were tricked into
processing a specially crafted XPM image, an attacker could cause a denial
of service. This issue only affected Ubuntu 12.04 LTS and Ubuntu 14.04 LTS.
(CVE-2014-2497)

It was discovered that the GD library incorrectly handled certain malformed
GIF images. If a user or automated system were tricked into processing a
specially crafted GIF image, an attacker could cause a denial of service.
This issue only affected Ubuntu 12.04 LTS and Ubuntu 14.04 LTS.
(CVE-2014-9709)

It was discovered that the GD library incorrectly handled memory when using
gdImageFillToBorder(). A remote attacker could possibly use this issue to
cause a denial of service. (CVE-2015-8874)

It was discovered that the GD library incorrectly handled memory when using
gdImageScaleTwoPass(). A remote attacker could possibly use this issue to
cause a denial of service. This issue only applied to Ubuntu 14.04 LTS,
Ubuntu 15.10 and Ubuntu 16.04 LTS. (CVE-2015-8877)

Hans Jerry Illikainen discovered that the GD library incorrectly handled
certain malformed GD images. If a user or automated system were tricked
into processing a specially crafted GD image, an attacker could cause a
denial of service or possibly execute arbitrary code. (CVE-2016-3074)

Fixed packages 2

ReleasePackageFixed in
Ubuntu · 14.04 LTS 14.04:LTS libgd2 2.1.0-3ubuntu0.1
Ubuntu · 16.04 LTS 16.04:LTS libgd2 2.1.1-4ubuntu0.16.04.1

Vulnerabilities 5

  • Unscored —
    CVE-2014-2497 EPSS 20%

    The gdImageCreateFromXpm function in gdxpm.c in libgd, as used in PHP 5.4.26 and earlier, allows remote attackers to ca…

  • Unscored —
    CVE-2014-9709 EPSS 15%

    The GetCode_ function in gd_gif_in.c in GD 2.1.1 and earlier, as used in PHP before 5.5.21 and 5.6.x before 5.6.5, allo…

  • Unscored —

    Stack consumption vulnerability in GD in PHP before 5.6.12 allows remote attackers to cause a denial of service via a c…

  • Unscored —

    The gdImageScaleTwoPass function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.0, as used in …

  • Unscored —
    CVE-2016-3074 Public exploit EPSS 36%

    Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial o…

References

  • report
    https://ubuntu.com/security/CVE-2014-2497
  • report
    https://ubuntu.com/security/CVE-2014-9709
  • report
    https://ubuntu.com/security/CVE-2015-8874
  • report
    https://ubuntu.com/security/CVE-2015-8877
  • report
    https://ubuntu.com/security/CVE-2016-3074