GLSA 200903-37: Ghostscript: User-assisted execution of arbitrary code

Title:Ghostscript: User-assisted execution of arbitrary code
Bugs: #261087


Multiple integer overflows in the Ghostscript ICC library might allow for user-assisted execution of arbitrary code.


Ghostscript is an interpreter for the PostScript language and the Portable Document Format (PDF).

Affected packages

Package Vulnerable Unaffected Architecture(s)
app-text/ghostscript-gpl < 8.64-r2 >= 8.64-r2 All supported architectures
app-text/ghostscript-gnu < 8.62.0 >= 8.62.0 All supported architectures
app-text/ghostscript-esp <= 8.15.4-r1 All supported architectures


Jan Lieskovsky from the Red Hat Security Response Team discovered the following vulnerabilities in Ghostscript's ICC Library:

  • Multiple integer overflows (CVE-2009-0583).
  • Multiple insufficient bounds checks on certain variable sizes (CVE-2009-0584).


A remote attacker could entice a user to open a specially crafted PostScript file containing images and a malicious ICC profile, possibly resulting in the execution of arbitrary code with the privileges of the user running the application.


There is no known workaround at this time.


All GPL Ghostscript users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=app-text/ghostscript-gpl-8.64-r2"

All GNU Ghostscript users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=app-text/ghostscript-gnu-8.62.0"

We recommend that users unmerge ESP Ghostscript and use GPL or GNU Ghostscript instead:

# emerge --unmerge "app-text/ghostscript-esp"

For installation instructions, see above.



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!