SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   GD Library Vendors:   Boutell.com
(Gentoo Issues Fix) GD Library Integer Overflow May Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1012093
SecurityTracker URL:  http://securitytracker.com/id/1012093
CVE Reference:   CVE-2004-0990   (Links to External Site)
Date:  Nov 5 2004
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 2.0.28
Description:   An integer overflow vulnerability was reported in the GD graphics library. A remote user may be able to execute arbitrary code on the target system.

sean reported that a remote user can create a specially crafted PNG image file to trigger the memory allocation error and subsequently overwrite the heap.

The flaw resides in the gdImageCreateFromPngCtx() function in 'gd_png.c', where user-supplied rowbytes and height values are multiplied and used to incorrectly allocate a pointer array.

The vendor has been notified.

Impact:   A remote user may be able to execute arbitrary code on the target system. The specific impact depends on the application using the library.
Solution:   Gentoo has released a fix and indicates that all GD users should upgrade to the latest version:

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

Vendor URL:  www.boutell.com/gd/ (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Gentoo)

Message History:   This archive entry is a follow-up to the message listed below.
Oct 26 2004 GD Library Integer Overflow May Let Remote Users Execute Arbitrary Code



 Source Message Contents

Subject:  [gentoo-announce] [ GLSA 200411-08 ] GD: Integer overflow


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigAD21F5385B3D4F4BA3C1FDE2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200411-08
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: GD: Integer overflow
      Date: November 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
    -------------------------------------------------------------------
  1  media-libs/gd      < 2.0.32                             >= 2.0.32

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
==========

  [ 1 ] Original BugTraq advisory
        http://www.securityfocus.com/archive/1/379382
  [ 2 ] CAN-2004-0990
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0990

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
http://bugs.gentoo.org.

License
=======

Copyright 2004 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.

http://creativecommons.org/licenses/by-sa/1.0


--------------enigAD21F5385B3D4F4BA3C1FDE2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBiU/qvcL1obalX08RAt4GAJ0T6j99iOMP0qSofJM0IZBu3MMqVACfexFT
I7SXDlW1O0cvG1GNYBTrnDc=
=s1lm
-----END PGP SIGNATURE-----

--------------enigAD21F5385B3D4F4BA3C1FDE2--

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC