CVE-2008-3658 json
Buffer overflow in the imageloadfont function in ext/gd/gd.c in PHP 4.4.x before 4.4.9 and PHP 5.2 before 5.2.6-r6 allows context-dependent…
published 2008-08-15 18 y ago modified 2026-06-16 4 mo ago also EUVD-2008-3644
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.8%
- EPSS 6.8% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
Buffer overflow in the imageloadfont function in ext/gd/gd.c in PHP 4.4.x before 4.4.9 and PHP 5.2 before 5.2.6-r6 allows context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted font file.
Patch / fix
- php RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-gd RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-cli RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-dba RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-pdo RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-xml RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-imap RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
- php-ldap RHEL 2 APPLICATION_STACK 5.2.6-4.el5s2
red hat advisories RHSA-2009:0350RHSA-2009:0338RHSA-2009:0337
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-3658 updated
php: buffer overflow in the imageloadfont function in gd extension
-
Red Hat Desktop version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.entfixed: vendor fix RHSA-2009:0337
-
Red Hat Enterprise Linux (v. 5 server) php 5.1.6-23.2.el5_3, php-gd 5.1.6-23.2.el5_3, php-cli 5.1.6-23.2.el5_3, php-dba 5.1.6-23.2.el5_3, php-pdo 5.1.6-23.2.el5_3, php-xml 5.1.6-23.2.el5_3, +12 morefixed: vendor fix RHSA-2009:0338
-
Red Hat Enterprise Linux AS version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.ent Red Hat Enterprise Linux AS version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 morefixed: vendor fix RHSA-2009:0337
-
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-23.2.el5_3, php-gd 5.1.6-23.2.el5_3, php-cli 5.1.6-23.2.el5_3, php-dba 5.1.6-23.2.el5_3, php-pdo 5.1.6-23.2.el5_3, php-xml 5.1.6-23.2.el5_3, +12 morefixed: vendor fix RHSA-2009:0338
-
Red Hat Enterprise Linux ES version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.ent Red Hat Enterprise Linux ES version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 more Red Hat Enterprise Linux WS version 3 php 4.3.2-51.ent, php-imap 4.3.2-51.ent, php-ldap 4.3.2-51.ent, php-odbc 4.3.2-51.ent, php-mysql 4.3.2-51.ent, php-pgsql 4.3.2-51.ent Red Hat Enterprise Linux WS version 4 php 4.3.9-3.22.15, php-gd 4.3.9-3.22.15, php-imap 4.3.9-3.22.15, php-ldap 4.3.9-3.22.15, php-odbc 4.3.9-3.22.15, php-pear 4.3.9-3.22.15, +7 morefixed: vendor fix RHSA-2009:0337
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
6.85% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- news.php.net http://news.php.net/php.cvs/51219 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- Technology feeds
References
-
news.php.net
/php.cvs/51219
exploit
-
marc.info
/?l=bugtraq&m=125631037611762&w=2
vendor-advisory
-
security.gentoo.org
/glsa/glsa-200811-05.xml
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2009-May/msg01451.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:024
vendor-advisory
-
securityfocus.com
/archive/1/498647/100/0/threaded
vendor-advisory
-
lists.apple.com
/archives/security-announce/2009/May/msg00002.html
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2008-09/msg00004.html
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2008-10/msg00006.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:023
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:022
vendor-advisory
-
redhat.com
/support/errata/RHSA-2009-0350.html
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2009-May/msg01465.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:021
vendor-advisory
-
debian.org
/security/2008/dsa-1647
vendor-advisory
-
marc.info
/?l=bugtraq&m=123376588623823&w=2
vendor-advisory
-
securityfocus.com
/bid/30649
vdb-entry
-
secunia.com
/advisories/32746
third-party-advisory
- support.apple.com /kb/HT3549
-
secunia.com
/advisories/31982
third-party-advisory
-
securityfocus.com
/archive/1/501376/100/0/threaded
mailing-list
-
vupen.com
/english/advisories/2008/3275
vdb-entry
- wiki.rpath.com /Advisories:rPSA-2009-0035
-
secunia.com
/advisories/35074
third-party-advisory
-
secunia.com
/advisories/32148
third-party-advisory
-
openwall.com
/lists/oss-security/2008/08/08/2
mailing-list
-
vupen.com
/english/advisories/2009/0320
vdb-entry
-
osvdb.org
/47484
vdb-entry
-
secunia.com
/advisories/33797
third-party-advisory
-
us-cert.gov
/cas/techalerts/TA09-133A.html
third-party-advisory, us-government-resource
-
openwall.com
/lists/oss-security/2008/08/13/8
mailing-list
-
vupen.com
/english/advisories/2009/1297
vdb-entry
- bugs.gentoo.org /show_bug.cgi?id=234102
-
vupen.com
/english/advisories/2008/2336
vdb-entry
- php.net /archive/2008.php#id2008-08-07-1
-
secunia.com
/advisories/35306
third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9724
vdb-entry, signature
-
secunia.com
/advisories/32316
third-party-advisory
-
secunia.com
/advisories/32884
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/44401
vdb-entry
Sources
- CVE List CVE-2008-3658
- NVD CVE-2008-3658
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.