10 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:L/Au:N/C:C/I:C/A:C
0.184 Low
EPSS
Percentile
96.2%
According to its version, the clamd antivirus daemon on the remote host is earlier than 0.95.1. Such versions are affected by multiple vulnerabilities :
ClamAV might crash while scanning certain malicious files packed with UPack. (Bug #1552)
ClamAV might crash while using βcli_url_canonβ. (Bug #1553)
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(36131);
script_version("1.16");
script_cvs_date("Date: 2018/07/06 11:26:07");
script_cve_id("CVE-2009-1371", "CVE-2009-1372");
script_bugtraq_id(34446);
script_name(english:"ClamAV < 0.95.1 Multiple Vulnerabilities");
script_summary(english:"Sends a VERSION command to clamd");
script_set_attribute(attribute:"synopsis", value:"The remote antivirus service is affected by multiple vulnerabilities.");
script_set_attribute(attribute:"description", value:
"According to its version, the clamd antivirus daemon on the remote
host is earlier than 0.95.1. Such versions are affected by multiple
vulnerabilities :
- ClamAV might crash while scanning certain malicious
files packed with UPack. (Bug #1552)
- ClamAV might crash while using 'cli_url_canon'. (Bug
#1553)");
script_set_attribute(attribute:"see_also", value:"https://bugzilla.clamav.net/show_bug.cgi?id=1552");
script_set_attribute(attribute:"see_also", value:"https://bugzilla.clamav.net/show_bug.cgi?id=1553" );
script_set_attribute(attribute:"solution", value:"Upgrade to ClamAV 0.95.1 or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
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_cwe_id(20, 119);
script_set_attribute(attribute:"plugin_publication_date", value:"2009/04/10");
script_set_attribute(attribute:"potential_vulnerability", value:"true");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:clamav:clamav");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Misc.");
script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
script_dependencies("find_service2.nasl");
script_require_keys("Settings/ParanoidReport");
script_require_ports("Services/clamd", 3310);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
# nb: banner checks of open source software are prone to false-
# positives so only run the check if reporting is paranoid.
if (report_paranoia < 2) audit(AUDIT_PARANOID);
port = get_kb_item("Services/clamd");
if (!port) port = 3310;
if (!get_port_state(port)) exit(0);
# Establish a connection.
soc = open_sock_tcp(port);
if (!soc) exit(0);
# Send a VERSION command.
req = "VERSION";
send(socket:soc, data:req+'\r\n');
res = recv_line(socket:soc, length:128);
if (!strlen(res) || "ClamAV " >!< res) exit(0);
# Check the version.
version = strstr(res, "ClamAV ") - "ClamAV ";
if ("/" >< version) version = version - strstr(version, "/");
if (version =~ "^0\.(([0-9]|[0-8][0-9]|9[0-4])($|[^0-9])|95($|[^0-9.]))")
{
if (report_verbosity > 0)
{
report = string(
"\n",
"ClamAV version ", version, " appears to be running on the remote host based on\n",
"the following response to a 'VERSION' command :\n",
"\n",
" ", res, "\n"
);
security_warning(port:port, extra:report);
}
else security_warning(port);
}