Description
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.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | php5 | 5.2.0-8+etch13 | DSA-1647-1 |
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 |
Advisories 4
- 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
- DSA-1647-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- RHSA-2009:0350 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- 30649 vdb-entry
- 32746 third-party-advisory
- HPSBUX02465 vendor-advisory
- http://support.apple.com/kb/HT3549
- GLSA-200811-05 vendor-advisory
- 31982 third-party-advisory
- FEDORA-2009-3768 vendor-advisory
- 20090302 rPSA-2009-0035-1 php php-cgi php-imap php-mcrypt php-mysql php-mysqli php-pgsql php-soap php-xsl php5 php5-cgi php5-imap php5-mcrypt php5-mysql php5-mysqli php5-pear php5-pgsql php5-soap php5-xsl mailing-list
- MDVSA-2009:024 vendor-advisory
- ADV-2008-3275 vdb-entry
- http://wiki.rpath.com/Advisories:rPSA-2009-0035
- SSRT080132 vendor-advisory
- 35074 third-party-advisory
- 32148 third-party-advisory
- APPLE-SA-2009-05-12 vendor-advisory
- [oss-security] 20080808 CVE request: php-5.2.6 overflow issues mailing-list
- SUSE-SR:2008:018 vendor-advisory
- SUSE-SR:2008:021 vendor-advisory
- ADV-2009-0320 vdb-entry
- MDVSA-2009:023 vendor-advisory
- MDVSA-2009:022 vendor-advisory
- 47484 vdb-entry
- 33797 third-party-advisory
- http://news.php.net/php.cvs/51219
- RHSA-2009:0350 vendor-advisory
- FEDORA-2009-3848 vendor-advisory
- TA09-133A third-party-advisory
- [oss-security] 20080813 Re: CVE request: php-5.2.6 overflow issues mailing-list
- ADV-2009-1297 vdb-entry
- http://bugs.gentoo.org/show_bug.cgi?id=234102
- MDVSA-2009:021 vendor-advisory
- DSA-1647 vendor-advisory
- ADV-2008-2336 vdb-entry
- HPSBUX02401 vendor-advisory
- http://www.php.net/archive/2008.php#id2008-08-07-1
- 35306 third-party-advisory
- oval:org.mitre.oval:def:9724 vdb-entry signature
- 32316 third-party-advisory
- 32884 third-party-advisory
- php-imageloadfont-dos(44401) vdb-entry