The remote Windows host is running a version of ImageMagick earlier than 6.7.5-8 and is, therefore, affected by the following vulnerabilities :
The fix for CVE-2012-0247 was incomplete. An integer overflow error still exists and can lead to corrupted memory and arbitrary code execution when user-supplied input is not properly validated. (CVE-2012-1185)
The fix for CVE-2012-0248 was incomplete. An error in ‘profile.c’ still allows denial of service attacks when malformed executables are processed. (CVE-2012-1186)
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(59369);
script_version("1.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2023/07/07");
script_cve_id("CVE-2012-1185", "CVE-2012-1186");
script_bugtraq_id(51957);
script_name(english:"ImageMagick < 6.7.5-8 Multiple Vulnerabilities");
script_summary(english:"Checks the version of ImageMagick");
script_set_attribute(attribute:"synopsis", value:
"The remote Windows host contains an application that is affected by
multiple vulnerabilities.");
script_set_attribute(attribute:"description", value:
"The remote Windows host is running a version of ImageMagick earlier
than 6.7.5-8 and is, therefore, affected by the following
vulnerabilities :
- The fix for CVE-2012-0247 was incomplete. An integer
overflow error still exists and can lead to corrupted
memory and arbitrary code execution when user-supplied
input is not properly validated. (CVE-2012-1185)
- The fix for CVE-2012-0248 was incomplete. An error in
'profile.c' still allows denial of service attacks when
malformed executables are processed. (CVE-2012-1186)");
script_set_attribute(attribute:"see_also", value:"https://www.openwall.com/lists/oss-security/2012/03/19/5");
script_set_attribute(attribute:"see_also", value:"http://www.imagemagick.org/script/changelog.php");
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?36327a9d");
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8e40b798");
script_set_attribute(attribute:"solution", value:
"Upgrade to ImageMagick version 6.7.5-8 or later. Alternatively, apply
the patches provided by the vendor.
Note that you may need to manually uninstall the vulnerable version
from the system.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2012-1186");
script_set_attribute(attribute:"vuln_publication_date", value:"2012/03/19");
script_set_attribute(attribute:"patch_publication_date", value:"2012/02/29");
script_set_attribute(attribute:"plugin_publication_date", value:"2012/06/05");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/a:imagemagick:imagemagick");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Windows");
script_copyright(english:"This script is Copyright (C) 2012-2023 Tenable Network Security, Inc.");
script_dependencies("imagemagick_installed.nasl");
script_require_keys("installed_sw/ImageMagick");
exit(0);
}
include('vcf.inc');
include('vcf_extras.inc');
vcf::imagemagick::initialize();
var app_info = vcf::imagemagick::get_app_info();
var constraints = [
{'fixed_version' : '6.7.5-8'}
];
vcf::check_version_and_report(
app_info:app_info,
constraints:constraints,
severity:SECURITY_HOLE
);
Vendor | Product | Version | CPE |
---|---|---|---|
imagemagick | imagemagick | cpe:/a:imagemagick:imagemagick |