---
title: "CVE-2008-3658\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2008-3658?format=md
keywords: index, follow
---

# CVE-2008-3658

Publication date 14 August 2008

Last updated 24 July 2024

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php4 | 9.10 karmic | Not in release |
| 9.04 jaunty | Not in release |
| 8.10 intrepid | Not in release |
| 8.04 LTS hardy | Not in release |
| 7.10 gutsy | Not in release |
| 7.04 feisty | Not in release |
| 6.06 LTS dapper | Ignored end of life |
| php5 | 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Fixed 5.2.6-2ubuntu4.1 |
| 8.04 LTS hardy | Fixed 5.2.4-2ubuntu5.5 |
| 7.10 gutsy | Fixed 5.2.3-1ubuntu6.5 |
| 7.04 feisty | Ignored end of life, was needed |
| 6.06 LTS dapper | Fixed 5.1.2-1ubuntu3.13 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2008-3658?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| php5 | * Vendor:   <http://www.debian.org/security/2008/dsa-1647> * Vendor:   <http://patch-tracking.debian.net/patch/series/view/php5/5.2.0-8+etch13/140-CVE-2008-3658.patch> * Upstream:   <http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?hideattic=1&r1=1.312.2.20.2.35&r2=1.312.2.20.2.36> * Upstream:   <http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/imageloadfont_invalid.phpt?hideattic=1&r1=1.1.4.1&r2=1.1.4.2> * Upstream:   <http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/imageloadfont_invalid.phpt?hideattic=1&r1=1.1.4.2&r2=1.1.4.3> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-3658)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2008-3658)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2008-3658)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2008-3658)

### Related Ubuntu Security Notices (USN)

+ [USN-720-1](https://usn.ubuntu.com/USN-720-1)
+ PHP vulnerabilities
+ 12 February 2009

### Other references

* <https://bugs.launchpad.net/ubuntu/+source/php5/+bug/286851>
* <https://www.cve.org/CVERecord?id=CVE-2008-3658>
