Skip to content
OpenAdvisories
Unscored Public exploit CVE-2008-5498 EUVD-2008-5475GHSA-8c7c-9pp7-6933

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 Dec 26, 2008 · Updated Aug 7, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
RHEL 5 php +18 5.1.6-23.2.el5_3 RHSA-2009:0338
RHEL 4 php +13 4.3.9-3.22.15 RHSA-2009:0337
RHEL 3 php +6 4.3.2-51.ent RHSA-2009:0337
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Application Stack 2 php +18 5.2.6-4.el5s2 RHSA-2009:0350

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References