Bug 771853 (CVE-2010-4820) - CVE-2010-4820 ghostscript: CWD included in the default library search path
Summary: CVE-2010-4820 ghostscript: CWD included in the default library search path
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2010-4820
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 755923 755924 755925 755926 755928
Blocks: 733386
TreeView+ depends on / blocked
 
Reported: 2012-01-05 09:08 UTC by Ramon de C Valle
Modified: 2019-09-29 12:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-14 13:55:26 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ghostscript 691339 0 None None None Never
Novell 608071 0 None None None Never
Red Hat Product Errata RHSA-2012:0095 0 normal SHIPPED_LIVE Moderate: ghostscript security update 2012-02-03 03:42:16 UTC
Red Hat Product Errata RHSA-2012:0096 0 normal SHIPPED_LIVE Moderate: ghostscript security update 2012-02-03 03:29:11 UTC

Description Ramon de C Valle 2012-01-05 09:08:30 UTC
Ghostscript included the current working directory in its library search path by default. If a user ran Ghostscript without the "-P-" option in an attacker-controlled directory containing a specially-crafted PostScript library file, it could cause Ghostscript to execute arbitrary PostScript code. With this update, Ghostscript no longer searches the current working directory for library files by default. (CVE-2010-4820)

Note: The fix for CVE-2010-4820 could possibly break existing configurations. To use the previous, vulnerable behavior, run Ghostscript with the "-P" option (to always search the current working directory first).

Comment 1 Tomas Hoger 2012-01-08 13:24:21 UTC
This issue was originally tracked with CVE-2010-2055 via bug #599564.  It got a separate CVE id, as it is separate issue, see e.g.:
  http://thread.gmane.org/gmane.comp.security.oss.general/2973/focus=3354

Issue was tracked upstream in:
  http://bugs.ghostscript.com/show_bug.cgi?id=691339

Following upstream commit changes ghostscript's default to not include CWD in the library search path by default (SEARCH_HERE_FIRST=0 if the default now):
  http://svn.ghostscript.com/viewvc?view=rev&revision=11494

Flaw type:
  CWE-427: Uncontrolled Search Path Element
  http://cwe.mitre.org/data/definitions/427.html

Comment 2 errata-xmlrpc 2012-02-02 22:33:22 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2012:0096 https://rhn.redhat.com/errata/RHSA-2012-0096.html

Comment 3 errata-xmlrpc 2012-02-02 22:46:00 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 6

Via RHSA-2012:0095 https://rhn.redhat.com/errata/RHSA-2012-0095.html


Note You need to log in before you can comment on or make changes to this bug.