ID CVE-2010-4820
Summary Untrusted search path vulnerability in Ghostscript 8.62 allows local users to execute arbitrary PostScript code via a Trojan horse Postscript library file in Encoding/ under the current working directory, a different vulnerability than CVE-2010-2055.
References
Vulnerable Configurations
  • cpe:2.3:a:ghostscript:ghostscript:8.62:*:*:*:*:*:*:*
    cpe:2.3:a:ghostscript:ghostscript:8.62:*:*:*:*:*:*:*
CVSS
Base: 4.4 (as of 02-11-2014 - 00:59)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:M/Au:N/C:P/I:P/A:P
redhat via4
advisories
  • bugzilla
    id 771853
    title CVE-2010-4820 ghostscript: CWD included in the default library search path
    oval
    OR
    • AND
      • comment Red Hat Enterprise Linux 5 is installed
        oval oval:com.redhat.rhba:tst:20070331001
      • OR
        • AND
          • comment ghostscript is earlier than 0:8.70-6.el5_7.6
            oval oval:com.redhat.rhsa:tst:20120095002
          • comment ghostscript is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20080155015
        • AND
          • comment ghostscript-devel is earlier than 0:8.70-6.el5_7.6
            oval oval:com.redhat.rhsa:tst:20120095006
          • comment ghostscript-devel is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20080155017
        • AND
          • comment ghostscript-gtk is earlier than 0:8.70-6.el5_7.6
            oval oval:com.redhat.rhsa:tst:20120095004
          • comment ghostscript-gtk is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20080155019
    • AND
      • OR
        • comment Red Hat Enterprise Linux 6 Client is installed
          oval oval:com.redhat.rhba:tst:20111656001
        • comment Red Hat Enterprise Linux 6 Server is installed
          oval oval:com.redhat.rhba:tst:20111656002
        • comment Red Hat Enterprise Linux 6 Workstation is installed
          oval oval:com.redhat.rhba:tst:20111656003
        • comment Red Hat Enterprise Linux 6 ComputeNode is installed
          oval oval:com.redhat.rhba:tst:20111656004
      • OR
        • AND
          • comment ghostscript is earlier than 0:8.70-11.el6_2.6
            oval oval:com.redhat.rhsa:tst:20120095012
          • comment ghostscript is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20120095013
        • AND
          • comment ghostscript-devel is earlier than 0:8.70-11.el6_2.6
            oval oval:com.redhat.rhsa:tst:20120095016
          • comment ghostscript-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20120095017
        • AND
          • comment ghostscript-doc is earlier than 0:8.70-11.el6_2.6
            oval oval:com.redhat.rhsa:tst:20120095018
          • comment ghostscript-doc is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20120095019
        • AND
          • comment ghostscript-gtk is earlier than 0:8.70-11.el6_2.6
            oval oval:com.redhat.rhsa:tst:20120095014
          • comment ghostscript-gtk is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20120095015
    rhsa
    id RHSA-2012:0095
    released 2012-02-02
    severity Moderate
    title RHSA-2012:0095: ghostscript security update (Moderate)
  • bugzilla
    id 771853
    title CVE-2010-4820 ghostscript: CWD included in the default library search path
    oval
    AND
    • comment Red Hat Enterprise Linux 4 is installed
      oval oval:com.redhat.rhba:tst:20070304001
    • OR
      • AND
        • comment ghostscript is earlier than 0:7.07-33.13.el4
          oval oval:com.redhat.rhsa:tst:20120096002
        • comment ghostscript is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20080155003
      • AND
        • comment ghostscript-devel is earlier than 0:7.07-33.13.el4
          oval oval:com.redhat.rhsa:tst:20120096006
        • comment ghostscript-devel is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20080155005
      • AND
        • comment ghostscript-gtk is earlier than 0:7.07-33.13.el4
          oval oval:com.redhat.rhsa:tst:20120096004
        • comment ghostscript-gtk is signed with Red Hat master key
          oval oval:com.redhat.rhsa:tst:20080155011
    rhsa
    id RHSA-2012:0096
    released 2012-02-02
    severity Moderate
    title RHSA-2012:0096: ghostscript security update (Moderate)
rpms
  • ghostscript-0:8.70-6.el5_7.6
  • ghostscript-devel-0:8.70-6.el5_7.6
  • ghostscript-gtk-0:8.70-6.el5_7.6
  • ghostscript-0:8.70-11.el6_2.6
  • ghostscript-devel-0:8.70-11.el6_2.6
  • ghostscript-doc-0:8.70-11.el6_2.6
  • ghostscript-gtk-0:8.70-11.el6_2.6
  • ghostscript-0:7.07-33.13.el4
  • ghostscript-devel-0:7.07-33.13.el4
  • ghostscript-gtk-0:7.07-33.13.el4
refmap via4
bid 51847
bugtraq 20100522 Ghostscript 8.64 executes random code at startup
confirm https://bugzilla.redhat.com/show_bug.cgi?id=771853
misc
mlist [oss-security] 20120104 Re: CVE request: ghostscript: system initialization file uncontrolled search path element
Last major update 02-11-2014 - 00:59
Published 27-10-2014 - 01:55
Back to Top