Skip to content
Fencer Vulns
medium 5.0

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.ent
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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

  1. Published
  2. 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

Sources

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.