GLSA 200806-10: FreeType: User-assisted execution of arbitrary code

Title:FreeType: User-assisted execution of arbitrary code
Bugs: #225851


Font parsing vulnerabilities in FreeType might lead to user-assisted execution of arbitrary code.


FreeType is a font rendering library for TrueType Font (TTF) and Printer Font Binary (PFB).

Affected packages

Package Vulnerable Unaffected Architecture(s)
media-libs/freetype < 2.3.6 >= 2.3.6 All supported architectures


Regenrecht reported multiple vulnerabilities in FreeType via iDefense:

  • An integer overflow when parsing values in the Private dictionary table in a PFB file, leading to a heap-based buffer overflow (CVE-2008-1806).
  • An invalid free() call related to parsing an invalid "number of axes" field in a PFB file (CVE-2008-1807).
  • Multiple off-by-one errors when parsing PBF and TTF files, leading to heap-based buffer overflows (CVE-2008-1808).


A remote attacker could entice a user to open a specially crafted TTF or PBF file, possibly resulting in the execution of arbitrary code with the privileges of the user running an application linked against FreeType (such as the X server, running as root).


There is no known workaround at this time.


All FreeType users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=media-libs/freetype-2.3.6"



This GLSA and any updates to it are available for viewing at the Gentoo Security Website:


Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to or alternatively, you may file a bug at


Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!