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…
Noroxi assessment
Priority: Monitor (action score 23/100)
- Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 8.8% (FIRST EPSS); higher than 95.2% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: php (Red Hat:enterprise_linux:3::as) 0:4.3.2-51.ent; php-debuginfo (Red Hat:enterprise_linux:3::as) 0:4.3.2-51.ent; php-devel (Red Hat:enterprise_linux:3::as) 0:4.3.2-51.ent.
Low priority for now. Upgrade to php (Red Hat:enterprise_linux:3::as) 0:4.3.2-51.ent; php-debuginfo (Red Hat:enterprise_linux:3::as) 0:4.3.2-51.ent; php-devel (Red Hat:enterprise_linux:3::as) 0:4.3.2-51.ent or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Dec 26, 2008
- Updated
- Jun 16, 2026
- EPSS
- 8.8% · 95th percentile
- CWE
- CWE-200
Report tools
Action score
23
Low priority for now.
- CVSS
- 20 / 40 · 5.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 3 / 30 · 8.8%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php phpup to 5.2.8 inclusive
- php php5
- php php5.0
- php php5.0.0
- php php5.0.1
- php php5.0.2
- php php5.0.3
- php php5.0.4
+12 more rows
- php php5.0.5
- php php5.1.0
- php php5.1.1
- php php5.1.2
- php php5.1.3
- php php5.1.4
- php php5.1.5
- php php5.1.6
- php php5.2.0
- php php5.2.1
- php php5.2.2
- php php5.2.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:enterprise_linux:3::as | php | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:3::as | php-debuginfo | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:3::as | php-devel | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:3::as | php-imap | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:3::as | php-ldap | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:3::as | php-mysql | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:3::as | php-odbc | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:3::as | php-pgsql | before 0:4.3.2-51.ent | 0:4.3.2-51.ent |
| Red Hat:enterprise_linux:4::as | php | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-debuginfo | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-devel | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-domxml | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-gd | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-imap | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-ldap | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-mbstring | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-mysql | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-ncurses | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-odbc | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-pear | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-pgsql | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-snmp | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:4::as | php-xmlrpc | before 0:4.3.9-3.22.15 | 0:4.3.9-3.22.15 |
| Red Hat:enterprise_linux:5::client_workstation | php | before 0:5.1.6-23.2.el5_3 | 0:5.1.6-23.2.el5_3 |
+39
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2008-5658Dec 17, 2008 · Directory traversal vulnerability in the ZipArchive::extractTo function in PHP 5.2.6 and earlier allows context-dependent attackers to…31Monitor
- ← EarlierCVE-2008-5557Dec 23, 2008 · Heap-based buffer overflow in ext/mbstring/libmbfl/filters/mbfilter_htmlent.c in the mbstring extension in PHP 4.3.0 through 5.2.6 allows…42Plan
- Later →CVE-2008-5814Jan 2, 2009 · Cross-site scripting (XSS) vulnerability in PHP, possibly 5.2.7 and earlier, when display_errors is enabled, allows remote attackers to…11Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| red hat:php | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-debuginfo | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-devel | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-domxml | 0:4.3.9-3.22.15 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-gd | 0:4.3.9-3.22.15 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-imap | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ldap | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-mbstring | 0:4.3.9-3.22.15 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-mysql | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ncurses | 0:4.3.9-3.22.15 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-odbc | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-pgsql | 0:4.3.2-51.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | local | 2009-01-02 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+6 d
- TodayNov 16, 2026+6533 d
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- none
- Availability
- none
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-200 · Exposure of Sensitive Information to an Unauthorized ActorCVSS vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
nvd-primary
Root cause
The extension requests broader permissions than its function needs and sends the data it collects out for purposes beyond its stated function.
The bug in code
The whole CWE-200 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
{
"permissions": ["tabs", "<all_urls>"],
"background": { "service_worker": "analytics.js" }
}Fixed
{
"permissions": ["activeTab"],
"host_permissions": ["https://yildiz.example/*"]
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- ExcavationCAPEC-116likelihood: High · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
- FootprintingCAPEC-169likelihood: High · Very Low
- Exploiting Trust in ClientCAPEC-22likelihood: High · High
- FingerprintingCAPEC-224likelihood: High · Very Low
- ICMP Echo Request PingCAPEC-285likelihood: Medium · Low
- TCP SYN ScanCAPEC-287Low
- Enumerate Mail Exchange (MX) RecordsCAPEC-290Low
ATT&CK techniques
- System Service DiscoveryT1007
- System Network Configuration DiscoveryT1016
- Remote System DiscoveryT1018
- System Owner/User DiscoveryT1033
- Masquerading: Match Legitimate Name or LocationT1036.005
- Network Service ScanningT1046
- System Network Connections DiscoveryT1049
- Process DiscoveryT1057
- Permission Groups DiscoveryT1069
- System Information DiscoveryT1082
- File and Directory DiscoveryT1083
- Account DiscoveryT1087
- Multi-Factor Authentication InterceptionT1111
- Peripheral Device DiscoveryT1120
- System Time DiscoveryT1124
- Access Token Manipulation:Token Impersonation/TheftT1134.001
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- lists.apple.com/archives/security-announce/2009/Sep/msg00004.html
- lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html
- marc.info/?l=bugtraq&m=124654546101607&w=2
- marc.info/?l=bugtraq&m=125631037611762&w=2
- osvdb.org/51031
- secunia.com/advisories/34642
- secunia.com/advisories/35306
- secunia.com/advisories/35650
- secunia.com/advisories/36701
- securitytracker.com/id?1021494
- support.apple.com/kb/HT3865
- www.mandriva.com/security/advisories?name=MDVSA-2009:021
- www.mandriva.com/security/advisories?name=MDVSA-2009:022
- www.mandriva.com/security/advisories?name=MDVSA-2009:023
- www.php.net/releases/5_2_9.php
- www.redhat.com/support/errata/RHSA-2009-0350.html
- www.securityfocus.com/bid/33002
- exchange.xforce.ibmcloud.com/vulnerabilities/47635
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9667
Vendor advisories and official records. Exploit/PoC links are deliberately left out.