Lucene search
K

Ghostscript Arbitrary Command Execution Vulnerability

🗓️ 26 Jul 2010 00:00:00Reported by Copyright (c) 2010 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 47 Views

Ghostscript Arbitrary Command Execution Vulnerability. Successful exploitation allows attackers to execute arbitrary postscript commands via 'gs_init.ps' file, user tricked into opening file using '-P-' option in attacker controlled directory. Affects Ghostscript version 8.71 and prior. The flaw is due to application reading certain postscript files in current working directory although '-P-' command line option is set. Upgrade Ghostscript to version 9.0 or later, For updates refer to http://www.ghostscript.com. Host is installed with Ghostscript and is prone to arbitrary command execution vulnerability

Related
Refs
Code
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ghostscript_cmd_exec_vuln.nasl 5306 2017-02-16 09:00:16Z teissa $
#
# Ghostscript Arbitrary Command Execution Vulnerability.
#
# Authors:
# Madhuri D <[email protected]>
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_impact = "Successful exploitation allows the attackers to execute arbitrary
postscript commands via the 'gs_init.ps' file, if a user is tricked into opening
a file using the '-P-' option in an attacker controlled directory.

Impact Level: Application";

tag_affected = "Ghostscript version 8.71 and prior";

tag_insight = "The flaw is due to, application reading certain postscript files
in the current working directory although the '-P-' command line option is set.";

tag_solution = "Upgrade Ghostscript to version 9.0 or later,
For updates refer to http://www.ghostscript.com";

tag_summary = "This host is installed with Ghostscript and is prone to
arbitrary command execution vulnerability.";

if(description)
{
  script_id(801412);
  script_version("$Revision: 5306 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-16 10:00:16 +0100 (Thu, 16 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-07-26 16:14:51 +0200 (Mon, 26 Jul 2010)");
  script_cve_id("CVE-2010-2055");
  script_tag(name:"cvss_base", value:"7.2");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:C/I:C/A:C");
  script_name("Ghostscript Arbitrary Command Execution Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/40452");
  script_xref(name : "URL" , value : "http://www.vupen.com/english/advisories/2010/1757");

  script_tag(name:"qod_type", value:"registry");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
  script_family("General");
  script_dependencies("secpod_ghostscript_detect_win.nasl");
  script_mandatory_keys("Ghostscript/Win/Ver");
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}


include("version_func.inc");

## Get the version from KB
ghostVer = get_kb_item("Ghostscript/Win/Ver");
if(!ghostVer){
  exit(0);
}

## Check for the Ghostscript version <= 8.71
if(version_is_less_equal(version:ghostVer, test_version:"8.71")){
   security_message(0);
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

16 Feb 2017 00:00Current
0.5Low risk
Vulners AI Score0.5
EPSS0.00064
47