Lucene search

K
openvasCopyright (c) 2010 Greenbone Networks GmbHOPENVAS:801411
HistoryJul 26, 2010 - 12:00 a.m.

Ghostscript 'iscan.c' PDF Handling Remote Buffer Overflow Vulnerability

2010-07-2600:00:00
Copyright (c) 2010 Greenbone Networks GmbH
plugins.openvas.org
21

0.77 High

EPSS

Percentile

97.9%

This host is installed with Ghostscript and is prone to
buffer overflow vulnerability.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ghostscript_bof_vuln.nasl 5306 2017-02-16 09:00:16Z teissa $
#
# Ghostscript 'iscan.c' PDF Handling Remote Buffer Overflow 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 code or
  cause a denial of service (memory corruption) via a crafted PDF document
  containing a long name.
  Impact Level: Application";
tag_affected = "Ghostscript version 8.64 and prior";
tag_insight = "The flaw is due to improper bounds checking by 'iscan.c' when
  processing malicious 'PDF' files, which leads to open a specially-crafted
  PDF file.";
tag_solution = "Upgrade to Ghostscript version 8.71 or later,
  For updates refer to http://www.ghostscript.com/";
tag_summary = "This host is installed with Ghostscript and is prone to
  buffer overflow vulnerability.";

if(description)
{
  script_id(801411);
  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_bugtraq_id(41593);
  script_cve_id("CVE-2009-4897");
  script_tag(name:"cvss_base", value:"9.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_name("Ghostscript 'iscan.c' PDF Handling Remote Buffer Overflow Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/40580");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/60380");

  script_tag(name:"qod_type", value:"registry");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
  script_family("Buffer overflow");
  script_dependencies("secpod_ghostscript_detect_win.nasl");
  script_require_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.64
if(version_is_less_equal(version:ghostVer, test_version:"8.64")){
   security_message(0);
}