Bug 478425 - (CVE-2008-5498) CVE-2008-5498 php: libgd imagerotate() array index error memory disclosure
CVE-2008-5498 php: libgd imagerotate() array index error memory disclosure
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
http://nvd.nist.gov/nvd.cfm?cvename=C...
source=internet,public=20081224,repor...
: Security
Depends On: 487359 487360 487361 487368 487369 487370 487371
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-29 16:33 EST by Marc Schoenefeld
Modified: 2010-03-29 04:48 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-03-29 04:48:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Simple PoC (72 bytes, text/plain)
2009-01-15 10:47 EST, Tomas Hoger
no flags Details

  None (edit)
Description Marc Schoenefeld 2008-12-29 16:33:11 EST
Hamid Ebadi reported a boundary condition flaw in PHP:

Array index error in the imageRotate function in PHP 5.2.8 and earlier allows context-dependent attackers to read the contents of arbitrary memory locations via a crafted value of the third argument (aka the bgd_color or clrBack argument) for an indexed image. 

Upstream fix:  
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1.2.23&r2=1.90.2.1.2.24&sortby=date&diff_format=l

Reproducer: 
http://downloads.securityfocus.com/vulnerabilities/exploits/33002.php
http://downloads.securityfocus.com/vulnerabilities/exploits/33002-2.php
Comment 1 Tomas Hoger 2009-01-15 09:57:23 EST
Hamid Ebadi's advisory:

http://www.milw0rm.com/exploits/7646
http://www.securiteam.com/unixfocus/6G00Y0ANFU.html
Comment 2 Tomas Hoger 2009-01-15 10:47:00 EST
Created attachment 329104 [details]
Simple PoC

A local copy of:
  http://downloads.securityfocus.com/vulnerabilities/exploits/33002-2.php
Comment 6 errata-xmlrpc 2009-04-06 12:38:15 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2009:0338 https://rhn.redhat.com/errata/RHSA-2009-0338.html
Comment 7 errata-xmlrpc 2009-04-06 12:51:14 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3
  Red Hat Enterprise Linux 4

Via RHSA-2009:0337 https://rhn.redhat.com/errata/RHSA-2009-0337.html
Comment 8 errata-xmlrpc 2009-04-14 13:14:49 EDT
This issue has been addressed in following products:

  Red Hat Web Application Stack for RHEL 5

Via RHSA-2009:0350 https://rhn.redhat.com/errata/RHSA-2009-0350.html
Comment 9 Fedora Update System 2009-05-29 22:33:35 EDT
maniadrive-1.2-13.fc10, php-5.2.9-2.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 10 Fedora Update System 2009-05-29 22:37:33 EDT
maniadrive-1.2-13.fc9, php-5.2.9-2.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.