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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
Exploit-DB 1
- PHP 5.2.8 gd library - 'imageRotate()' Information Leak EDB-7646 · local · Jan 2, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- RHSA-2009:0338 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2009:0337 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2009:0350 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- http://downloads.securityfocus.com/vulnerabilities/exploits/33002-2.php
- HPSBUX02465 vendor-advisory
- 1021494 vdb-entry
- SSRT090085 vendor-advisory
- 51031 vdb-entry
- FEDORA-2009-3768 vendor-advisory
- php-imagerotate-info-disclosure(47635) vdb-entry
- 34642 third-party-advisory
- APPLE-SA-2009-09-10-2 vendor-advisory
- http://www.php.net/releases/5_2_9.php
- http://downloads.securityfocus.com/vulnerabilities/exploits/33002.php
- MDVSA-2009:023 vendor-advisory
- MDVSA-2009:022 vendor-advisory
- oval:org.mitre.oval:def:9667 vdb-entry signature
- SUSE-SR:2009:008 vendor-advisory
- RHSA-2009:0350 vendor-advisory
- FEDORA-2009-3848 vendor-advisory
- MDVSA-2009:021 vendor-advisory
- http://support.apple.com/kb/HT3865
- 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
- 36701 third-party-advisory
- 35306 third-party-advisory
- 35650 third-party-advisory
- 33002 vdb-entry