CVE-2008-5498 json
Array index error in the imageRotate function in PHP 5.2.8 and earlier allows context-dependent attackers to read the contents of arbitrary…
published 2008-12-26 17 y ago modified 2026-06-16 4 mo ago also EUVD-2008-5475
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 8.8%
- EPSS 8.8% chance of exploitation in 30 days, percentile 95%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- php RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-gd RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-cli RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-dba RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-pdo RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-xml RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-imap RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-ldap RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
red hat advisories RHSA-2009:0350RHSA-2009:0338RHSA-2009:0337
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-5498 updated
php: libgd imagerotate() array index error memory disclosure
-
Red Hat Desktop version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.entfixed: vendor fix RHSA-2009:0337
-
Red Hat Enterprise Linux (v. 5 server) php 5.1.6-23.2.el5_3, php-gd 5.1.6-23.2.el5_3, php-cli 5.1.6-23.2.el5_3, php-dba 5.1.6-23.2.el5_3, php-pdo 5.1.6-23.2.el5_3, php-xml 5.1.6-23.2.el5_3, +12 morefixed: vendor fix RHSA-2009:0338
-
Red Hat Enterprise Linux AS version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.ent Red Hat Enterprise Linux AS version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 morefixed: vendor fix RHSA-2009:0337
-
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-23.2.el5_3, php-gd 5.1.6-23.2.el5_3, php-cli 5.1.6-23.2.el5_3, php-dba 5.1.6-23.2.el5_3, php-pdo 5.1.6-23.2.el5_3, php-xml 5.1.6-23.2.el5_3, +12 morefixed: vendor fix RHSA-2009:0338
-
Red Hat Enterprise Linux ES version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.ent Red Hat Enterprise Linux ES version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 more Red Hat Enterprise Linux WS version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.ent Red Hat Enterprise Linux WS version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 morefixed: vendor fix RHSA-2009:0337
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-7646)
Exploit prediction
8.85% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-7646 PHP 5.2.8 gd library - 'imageRotate()' Information Leak local, 2009-01-02
- downloads.securityfocus.com http://downloads.securityfocus.com/vulnerabilities/exploits/33002-2.php referenced PoC, tagged "exploit" by a source, unverified
- downloads.securityfocus.com http://downloads.securityfocus.com/vulnerabilities/exploits/33002.php referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- Technology feeds
References
-
downloads.securityfocus.com
/vulnerabilities/exploits/33002-2.php
exploit
-
downloads.securityfocus.com
/vulnerabilities/exploits/33002.php
exploit
-
marc.info
/?l=bugtraq&m=125631037611762&w=2
vendor-advisory
-
marc.info
/?l=bugtraq&m=124654546101607&w=2
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2009-May/msg01451.html
vendor-advisory
-
lists.apple.com
/archives/security-announce/2009/Sep/msg00004.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:023
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:022
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2009-04/msg00003.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2009-0350.html
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2009-May/msg01465.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:021
vendor-advisory
-
securitytracker.com
/id?1021494
vdb-entry
-
osvdb.org
/51031
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/47635
vdb-entry
-
secunia.com
/advisories/34642
third-party-advisory
- php.net /releases/5_2_9.php
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9667
vdb-entry, signature
- support.apple.com /kb/HT3865
- cvs.php.net /viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1360&r2=1.2027.2.547.2.1361&diff_format=u
-
secunia.com
/advisories/36701
third-party-advisory
-
secunia.com
/advisories/35306
third-party-advisory
-
secunia.com
/advisories/35650
third-party-advisory
-
securityfocus.com
/bid/33002
vdb-entry
Sources
- CVE List CVE-2008-5498
- NVD CVE-2008-5498
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.