CVE-2008-5498: PHP

Medium severity, CVSS 5.0. EPSS: 8.8% chance of exploitation in the next 30 days.

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.

Affected products

  • PHP PHP: up to and including 5.2.8; version 5 only; version 5.0 only; version 5.0.0 only; version 5.0.1 only; version 5.0.2 only; …

Published 2008-12-26. Last modified 2026-06-16.