GLSA 200411-08: GD: Integer overflow

Severity:normal
Title:GD: Integer overflow
Date:11/03/2004
Bugs: #69070
ID:200411-08

Synopsis

The PNG image decoding routines in the GD library contain an integer overflow that may allow execution of arbitrary code with the rights of the program decoding a malicious PNG image.

Background

The GD graphics library is an open source library which allows programmers to easily generate PNG, JPEG, GIF and WBMP images from many different programming languages.

Affected packages

Package Vulnerable Unaffected Architecture(s)
media-libs/gd < 2.0.32 >= 2.0.32 All supported architectures

Description

infamous41md found an integer overflow in the memory allocation procedure of the GD routine that handles loading PNG image files.

Impact

A remote attacker could entice a user to load a carefully crafted PNG image file in a GD-powered application, or send a PNG image to a web application which uses GD PNG decoding functions. This could potentially lead to execution of arbitrary code with the rights of the program loading the image.

Workaround

There is no known workaround at this time.

Resolution

All GD users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=media-libs/gd-2.0.32"

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-200411-08.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!