ImageMagick CVE-2017-14224 Heap Buffer Overflow Vulnerability

2017-09-12T00:00:00
ID OPENVAS:1361412562310107241
Type openvas
Reporter Copyright (C) 2017 Greenbone Networks GmbH
Modified 2019-10-23T00:00:00

Description

ImageMagick is prone to a heap-based buffer-overflow vulnerability

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# ImageMagick CVE-2017-14224 Heap Buffer Overflow Vulnerability
#
# Authors:
# Tameem Eissa <tameem.eissa@greenbone.net>
#
# Copyright:
# Copyright (C) 2017 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.
###############################################################################

CPE = "cpe:/a:imagemagick:imagemagick";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.107241");
  script_version("2019-10-23T10:55:06+0000");
  script_tag(name:"last_modification", value:"2019-10-23 10:55:06 +0000 (Wed, 23 Oct 2019)");
  script_tag(name:"creation_date", value:"2017-09-12 14:49:44 +0200 (Tue, 12 Sep 2017)");
  script_cve_id("CVE-2017-14224");
  script_bugtraq_id(100702);

  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");

  script_tag(name:"qod_type", value:"remote_banner");
  script_name("ImageMagick CVE-2017-14224 Heap Buffer Overflow Vulnerability");
  script_tag(name:"summary", value:"ImageMagick is prone to a heap-based buffer-overflow vulnerability");
  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
  script_tag(name:"insight", value:"ImageMagick is prone to a heap-based buffer-overflow vulnerability
  because it fails to adequately bounds-check user-supplied data before copying it into an insufficiently
  sized buffer.");
  script_tag(name:"impact", value:"Attackers can exploit this issue to execute arbitrary code within the
  context of the affected application. Failed exploit attempts will likely cause a denial-of-service condition.");
  script_tag(name:"affected", value:"ImageMagick version 7.0.6-8");

  script_tag(name:"solution", value:"Updates are available.");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/100702");
  script_tag(name:"solution_type", value:"VendorFix");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2017 Greenbone Networks GmbH");

  script_family("General");

  script_dependencies("secpod_imagemagick_detect_win.nasl");
  script_mandatory_keys("ImageMagick/Win/Installed");

  script_xref(name:"URL", value:"http://www.imagemagick.org/download/beta/");
  exit(0);
}

include("host_details.inc");
include("version_func.inc");

if(!Ver = get_app_version(cpe:CPE)){
  exit(0);
}

if(version_is_equal(version: Ver, test_version:"7.0.6-8"))
{
  report = report_fixed_ver(installed_version:Ver, fixed_version:"See Vendor");
  security_message(data:report);
  exit(0);
}

exit (99);