{"id":"CVE-2008-5498","published":"2008-12-26T20:00:00Z","modified":"2024-08-07T10:56:46Z","title":"Array index error in the imageRotate function in PHP 5.2.8 and earlier allows context-dependent attackers to read the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.08845,"percentile":0.95321,"provenance":"source"},"cwes":[],"references":[{"url":"http://downloads.securityfocus.com/vulnerabilities/exploits/33002-2.php","tags":["x_refsource_MISC"]},{"url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://securitytracker.com/id?1021494","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://osvdb.org/51031","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47635","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://secunia.com/advisories/34642","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://lists.apple.com/archives/security-announce/2009/Sep/msg00004.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://www.php.net/releases/5_2_9.php","tags":["x_refsource_CONFIRM"]},{"url":"http://downloads.securityfocus.com/vulnerabilities/exploits/33002.php","tags":["x_refsource_MISC"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:023","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:022","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9667","tags":["vdb-entry","signature","x_refsource_OVAL"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.redhat.com/support/errata/RHSA-2009-0350.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:021","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://support.apple.com/kb/HT3865","tags":["x_refsource_CONFIRM"]},{"url":"http://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","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/36701","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/35306","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/35650","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.securityfocus.com/bid/33002","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":19.06},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2009-01-02"},"first":{"date":"2009-01-02","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/7646"},"provenance":"source"},"summary":{"text":"The flaw is an array index error in the imageRotate function of PHP, affecting PHP 5.2.8 and earlier. The vulnerable code lives in PHP's image handling (GD) functionality, specifically in how imageRotate processes its third argument, the background colour value. An attacker can read the contents of arbitrary memory locations by supplying a crafted value for that third argument when rotating an indexed image. The attack is context-dependent, meaning it depends on the attacker being able to get such a call to run within the target application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:55:40Z"},"euvd":{"id":"EUVD-2008-5475","exploited":false,"provenance":"source"},"exploits":[{"id":7646,"url":"https://www.exploit-db.com/exploits/7646","title":"PHP 5.2.8 gd library - 'imageRotate()' Information Leak","date":"2009-01-02","verified":true,"provenance":"source"}]}