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

SecurityTracker
Archives


 


Category:   Application (Generic)  >   GD Library Vendors:   Boutell.com
(Red Hat Issues Fix for gd) PHP Heap Overflows and Other Bugs Let Users Execute Arbitrary Code or Cause Denial of Service Conditions
SecurityTracker Alert ID:  1019519
SecurityTracker URL:  http://securitytracker.com/id/1019519
CVE Reference:   CVE-2006-4484   (Links to External Site)
Date:  Feb 28 2008
Impact:   Denial of service via local system, Denial of service via network, Execution of arbitrary code via local system, Execution of arbitrary code via network, User access via local system, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  

Description:   Several vulnerabilities were reported in PHP. A user may be able to execute arbitrary code on the target system. A user may be able to cause denial of service conditions. gd is affected.

In August 2006, the vendor reported several flaws in PHP that may allow a user or a remote user to execute arbitrary code on the target system.

A buffer overflow exists in the PHP sscanf() function [CVE-2006-4020]. A script that supplies specially crafted arguments to the sscanf() function to execute arbitrary code.

An integer overflow exists in the PHP wordwrap() and str_repeat() functions [CVE-2006-4482]. A script running on a 64-bit server can supply specially crafted data to either function to trigger a heap overflow and execute arbitrary code.

The 'ext/curl/interface.c' and 'ext/curl/streams.c' cURL extension files allow scripts to bypass certain safe_mode or open_basedir access restrictions [CVE-2006-4483]. This can be exploited via the CURLOPT_FOLLOWLOCATION option.

A buffer overflow exists in the PHP gd extension [CVE-2006-4484]. A user can supply a specially crafted GIF image to trigger a heap overflow and execute arbitrary code.

A buffer overread exists in the PHP stripos() function [CVE-2006-4485]. A script can supply specially crafted data to the stripos() function to cause PHP to read past the end of a buffer, which may cause denial of service conditions.

An integer overflow exists in the PHP memory allocation handling on 64-bit systems [CVE-2006-4486]. A script may be able to exceed the 'memory_limit' and cause denial of service conditions.

An integer overflow exists in the PHP memory handling routines [CVE-2006-4812]. A script may be able to execute arbitrary code.

Impact:   A user can execute arbitrary code on the target system.

A user can cause denial of service conditions on the target system.

Solution:   Red Hat has released a fix for gd, which is affected by CVE-2006-4484.

The Red Hat advisory is available at:

https://rhn.redhat.com/errata/RHSA-2008-0146.html

Cause:   Access control error, Boundary error, State error
Underlying OS:  Linux (Red Hat Enterprise)
Underlying OS Comments:  4, 5

Message History:   This archive entry is a follow-up to the message listed below.
Oct 5 2006 PHP Heap Overflows and Other Bugs Let Users Execute Arbitrary Code or Cause Denial of Service Conditions



 Source Message Contents

Subject:  [RHSA-2008:0146-01] Moderate: gd security update


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Moderate: gd security update
Advisory ID:       RHSA-2008:0146-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2008-0146.html
Issue date:        2008-02-28
CVE Names:         CVE-2006-4484 CVE-2007-0455 CVE-2007-2756 
                   CVE-2007-3472 CVE-2007-3473 CVE-2007-3475 
                   CVE-2007-3476 
=====================================================================

1. Summary:

Updated gd packages that fix multiple security issues are now available for
Red Hat Enterprise Linux 4 and 5.

This update has been rated as having moderate security impact by the Red
Hat Security Response Team.

2. Relevant releases/architectures:

Red Hat Enterprise Linux AS version 4 - i386, ia64, ppc, s390, s390x, x86_64
Red Hat Enterprise Linux Desktop version 4 - i386, x86_64
Red Hat Enterprise Linux ES version 4 - i386, ia64, x86_64
Red Hat Enterprise Linux WS version 4 - i386, ia64, x86_64
Red Hat Enterprise Linux Desktop (v. 5 client) - i386, x86_64
RHEL Desktop Workstation (v. 5 client) - i386, x86_64
Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64

3. Description:

The gd package contains a graphics library used for the dynamic creation of
images such as PNG and JPEG.

Multiple issues were discovered in the gd GIF image-handling code. A
carefully-crafted GIF file could cause a crash or possibly execute code
with the privileges of the application using the gd library.
(CVE-2006-4484, CVE-2007-3475, CVE-2007-3476)

An integer overflow was discovered in the gdImageCreateTrueColor()
function, leading to incorrect memory allocations. A carefully crafted
image could cause a crash or possibly execute code with the privileges of
the application using the gd library. (CVE-2007-3472)

A buffer over-read flaw was discovered. This could cause a crash in an
application using the gd library to render certain strings using a
JIS-encoded font. (CVE-2007-0455)

A flaw was discovered in the gd PNG image handling code. A truncated PNG
image could cause an infinite loop in an application using the gd library.
(CVE-2007-2756)

A flaw was discovered in the gd X BitMap (XBM) image-handling code. A
malformed or truncated XBM image could cause a crash in an application
using the gd library. (CVE-2007-3473)

Users of gd should upgrade to these updated packages, which contain
backported patches which resolve these issues.

4. Solution:

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.  

This update is available via Red Hat Network.  Details on how to use 
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/FAQ_58_10188

5. Bugs fixed (http://bugzilla.redhat.com/):

224607 - CVE-2007-0455 gd buffer overrun
242033 - CVE-2007-2756 gd / php-gd ImageCreateFromPng infinite loop caused by truncated PNG
276751 - CVE-2007-3472 libgd Integer overflow in TrueColor code
276791 - CVE-2007-3473 libgd NULL pointer dereference when reading a corrupt X bitmap
277181 - CVE-2007-3475 libgd Denial of service by GIF images without a global color map
277201 - CVE-2007-3476 libgd Denial of service by corrupted GIF images
431568 - CVE-2006-4484 gd: GIF handling buffer overflow

6. Package List:

Red Hat Enterprise Linux AS version 4:

Source:
ftp://updates.redhat.com/enterprise/4AS/en/os/SRPMS/gd-2.0.28-5.4E.el4_6.1.src.rpm

i386:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-devel-2.0.28-5.4E.el4_6.1.i386.rpm
gd-progs-2.0.28-5.4E.el4_6.1.i386.rpm

ia64:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-progs-2.0.28-5.4E.el4_6.1.ia64.rpm

ppc:
gd-2.0.28-5.4E.el4_6.1.ppc.rpm
gd-2.0.28-5.4E.el4_6.1.ppc64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.ppc.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.ppc64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.ppc.rpm
gd-progs-2.0.28-5.4E.el4_6.1.ppc.rpm

s390:
gd-2.0.28-5.4E.el4_6.1.s390.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.s390.rpm
gd-devel-2.0.28-5.4E.el4_6.1.s390.rpm
gd-progs-2.0.28-5.4E.el4_6.1.s390.rpm

s390x:
gd-2.0.28-5.4E.el4_6.1.s390.rpm
gd-2.0.28-5.4E.el4_6.1.s390x.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.s390.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.s390x.rpm
gd-devel-2.0.28-5.4E.el4_6.1.s390x.rpm
gd-progs-2.0.28-5.4E.el4_6.1.s390x.rpm

x86_64:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-progs-2.0.28-5.4E.el4_6.1.x86_64.rpm

Red Hat Enterprise Linux Desktop version 4:

Source:
ftp://updates.redhat.com/enterprise/4Desktop/en/os/SRPMS/gd-2.0.28-5.4E.el4_6.1.src.rpm

i386:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-devel-2.0.28-5.4E.el4_6.1.i386.rpm
gd-progs-2.0.28-5.4E.el4_6.1.i386.rpm

x86_64:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-progs-2.0.28-5.4E.el4_6.1.x86_64.rpm

Red Hat Enterprise Linux ES version 4:

Source:
ftp://updates.redhat.com/enterprise/4ES/en/os/SRPMS/gd-2.0.28-5.4E.el4_6.1.src.rpm

i386:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-devel-2.0.28-5.4E.el4_6.1.i386.rpm
gd-progs-2.0.28-5.4E.el4_6.1.i386.rpm

ia64:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-progs-2.0.28-5.4E.el4_6.1.ia64.rpm

x86_64:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-progs-2.0.28-5.4E.el4_6.1.x86_64.rpm

Red Hat Enterprise Linux WS version 4:

Source:
ftp://updates.redhat.com/enterprise/4WS/en/os/SRPMS/gd-2.0.28-5.4E.el4_6.1.src.rpm

i386:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-devel-2.0.28-5.4E.el4_6.1.i386.rpm
gd-progs-2.0.28-5.4E.el4_6.1.i386.rpm

ia64:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.ia64.rpm
gd-progs-2.0.28-5.4E.el4_6.1.ia64.rpm

x86_64:
gd-2.0.28-5.4E.el4_6.1.i386.rpm
gd-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.i386.rpm
gd-debuginfo-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-devel-2.0.28-5.4E.el4_6.1.x86_64.rpm
gd-progs-2.0.28-5.4E.el4_6.1.x86_64.rpm

Red Hat Enterprise Linux Desktop (v. 5 client):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/gd-2.0.33-9.4.el5_1.1.src.rpm

i386:
gd-2.0.33-9.4.el5_1.1.i386.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.i386.rpm
gd-progs-2.0.33-9.4.el5_1.1.i386.rpm

x86_64:
gd-2.0.33-9.4.el5_1.1.i386.rpm
gd-2.0.33-9.4.el5_1.1.x86_64.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.i386.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.x86_64.rpm
gd-progs-2.0.33-9.4.el5_1.1.x86_64.rpm

RHEL Desktop Workstation (v. 5 client):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/gd-2.0.33-9.4.el5_1.1.src.rpm

i386:
gd-debuginfo-2.0.33-9.4.el5_1.1.i386.rpm
gd-devel-2.0.33-9.4.el5_1.1.i386.rpm

x86_64:
gd-debuginfo-2.0.33-9.4.el5_1.1.i386.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.x86_64.rpm
gd-devel-2.0.33-9.4.el5_1.1.i386.rpm
gd-devel-2.0.33-9.4.el5_1.1.x86_64.rpm

Red Hat Enterprise Linux (v. 5 server):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/gd-2.0.33-9.4.el5_1.1.src.rpm

i386:
gd-2.0.33-9.4.el5_1.1.i386.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.i386.rpm
gd-devel-2.0.33-9.4.el5_1.1.i386.rpm
gd-progs-2.0.33-9.4.el5_1.1.i386.rpm

ia64:
gd-2.0.33-9.4.el5_1.1.ia64.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.ia64.rpm
gd-devel-2.0.33-9.4.el5_1.1.ia64.rpm
gd-progs-2.0.33-9.4.el5_1.1.ia64.rpm

ppc:
gd-2.0.33-9.4.el5_1.1.ppc.rpm
gd-2.0.33-9.4.el5_1.1.ppc64.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.ppc.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.ppc64.rpm
gd-devel-2.0.33-9.4.el5_1.1.ppc.rpm
gd-devel-2.0.33-9.4.el5_1.1.ppc64.rpm
gd-progs-2.0.33-9.4.el5_1.1.ppc.rpm

s390x:
gd-2.0.33-9.4.el5_1.1.s390.rpm
gd-2.0.33-9.4.el5_1.1.s390x.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.s390.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.s390x.rpm
gd-devel-2.0.33-9.4.el5_1.1.s390.rpm
gd-devel-2.0.33-9.4.el5_1.1.s390x.rpm
gd-progs-2.0.33-9.4.el5_1.1.s390x.rpm

x86_64:
gd-2.0.33-9.4.el5_1.1.i386.rpm
gd-2.0.33-9.4.el5_1.1.x86_64.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.i386.rpm
gd-debuginfo-2.0.33-9.4.el5_1.1.x86_64.rpm
gd-devel-2.0.33-9.4.el5_1.1.i386.rpm
gd-devel-2.0.33-9.4.el5_1.1.x86_64.rpm
gd-progs-2.0.33-9.4.el5_1.1.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and 
details on how to verify the signature are available from
https://www.redhat.com/security/team/key/#package

7. References:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4484
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0455
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2756
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-3472
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-3473
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-3475
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-3476
http://www.redhat.com/security/updates/classification/#moderate

8. Contact:

The Red Hat security contact is <secalert@redhat.com>.  More contact
details at https://www.redhat.com/security/team/contact/

Copyright 2008 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFHxolQXlSAg2UNWIIRAuiAAKCyMvTR6jeDsJxpLsG42TYNX0+w9ACgo1dV
4SPteBFBtGBNC9bACDW2wac=
=IEDd
-----END PGP SIGNATURE-----


-- 
Enterprise-watch-list mailing list
Enterprise-watch-list@redhat.com
https://www.redhat.com/mailman/listinfo/enterprise-watch-list

 
 


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