GD Graphics Library PNG image integer overflow

gd-png-bo (17866) The risk level is classified as HighHigh Risk

Description:

GD Graphics Library (gd) is vulnerable to an integer overflow in the gdImageCreateFromPngCtx function in the gd_png.c file. By creating a specially-crafted PNG image, a remote attacker could overflow a buffer and possibly execute arbitrary code on the system, once the image is processed by gd.

Platforms Affected:

  • Boutell, GD Graphics Library 2.0.28
  • Canonical, Ubuntu 4.10
  • Debian, Debian Linux 3.0
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 10.0
  • MandrakeSoft, Mandrake Linux 10.0 AMD64
  • MandrakeSoft, Mandrake Linux 10.1 X86_64
  • MandrakeSoft, Mandrake Linux 10.1
  • MandrakeSoft, Mandrake Linux 2006
  • MandrakeSoft, Mandrake Linux 2006 X86_64
  • MandrakeSoft, Mandrake Linux 9.2 AMD64
  • MandrakeSoft, Mandrake Linux 9.2
  • MandrakeSoft, Mandrake Linux LE2005 X86_64
  • MandrakeSoft, Mandrake Linux LE2005
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • MandrakeSoft, Mandrake Multi Network Firewall 2.0
  • OpenPKG, OpenPKG 2.1
  • OpenPKG, OpenPKG 2.2
  • OpenPKG, OpenPKG CURRENT
  • RedHat, Enterprise Linux 2.1 AW
  • RedHat, Enterprise Linux 2.1 WS
  • RedHat, Enterprise Linux 2.1 AS
  • RedHat, Enterprise Linux 2.1 ES
  • RedHat, Enterprise Linux 3 WS
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Linux Advanced Workstation 2.1 Itanium
  • Trustix, Secure Linux 2.2
  • Turbolinux, Turbolinux 10 Desktop
  • Turbolinux, Turbolinux 10 F...
  • Turbolinux, Turbolinux 10 Server
  • Turbolinux, Turbolinux 10 Server x64 Ed
  • Turbolinux, Turbolinux FUJI
  • Turbolinux, Turbolinux Home
  • Turbolinux, Turbolinux Appliance Server 2.0

Remedy:

For Turbolinux (GD):
Refer to TLSA-2007-16 for patch, upgrade, or suggested workaround information. See References.

For OpenPKG:
Upgrade to the latest gd package, as listed in OpenPKG Security Advisory OpenPKG-SA-2004.049. See References.

OpenPKG CURRENT: 2.0.29-20041030 or later
OpenPKG 2.2: 2.0.28-2.2.1 or later
OpenPKG 2.1: 2.0.27-2.1.2 or later

For Gentoo Linux:
Upgrade to the latest version of gd (2.0.32 or later), as listed in GLSA 200411-08. See References.

For Debian GNU/Linux 3.0 (alias woody):
Upgrade to the latest libgd2 package (1.8.4-17.woody4 or later), as listed in DSA-601-1. See References.

For Debian GNU/Linux 3.0 (alias woody):
Upgrade to the latest libgd2 package (2.0.1-10woody2 or later), as listed in DSA-602-1. See References.

For Ubuntu Linux containing the libgd1-noxpm or libgd1-xpm package:
Upgrade to the latest libgd1-noxpm or libgd1-xpm package (1.8.4-36ubuntu0.1 or later), as listed in USN-21-1 November 09, 2004. See References.

For Ubuntu Linux containing the libgd2-noxpm or libgd2-xpm package:
Upgrade to the latest libgd2-noxpm or libgd2-xpm package (2.0.23-2ubuntu0.2 or later), as listed in USN-25-1 November 15, 2004. See References./P>

For Trustix Secure Linux:
Upgrade to the latest gd package, as listed below. Refer to Trustix Secure Linux Security Advisory #2004-0058 for more information. See References.

Trustix Secure Linux 2.2: 2.0.33-3tr or later

For Mandrake Linux:
Upgrade to the latest gd package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:132 for more information. See References.

Mandrake Linux 10.1: 2.0.27-3.2.101mdk or later
Mandrake Linux 9.2: 2.0.15-3.2.92mdk or later
Mandrake Linux Corporate Server 2.1: 1.8.4-7.2.C21mdk or later
Mandrake Linux 10.0: 2.0.15-4.2.100mdk or later

For Debian GNU/Linux 3.0 (alias woody):
Upgrade to the latest libgd package (1.8.4-17.woody4 or later), as listed in DSA-601-1. See References.

For Red Hat Linux:
Upgrade to the latest gd package, as listed below. Refer to RHSA-2004:638-14 for more information. See References.

Red Hat Enterprise Linux AS, ES, WS (v. 3) and Desktop 3: 1.8.4-12.3.1 or later
Red Hat Enterprise Linux AS, ES, WS (v. 2.1) and Red Hat Linux Advanced Workstation 2.1: 1.8.4-4.21.1 or later

For other distributions:
Contact your vendor for upgrade or patch information.

Consequences:

Gain Access

References:

Reported:

Oct 26, 2004

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page