CVSS2
Attack Vector
LOCAL
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:L/AC:L/Au:N/C:C/I:C/A:C
CVSS3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
Percentile
5.2%
According to its self-reported version, Cisco NX-OS Software is affected by a command injection vulnerability due to insufficient validation of arguments passed to a specific CLI command. An authenticated, local attacker can exploit these vulnerabilities by including malicious input as the argument of an affected command in order to execute arbitrary commands on the underlying Linux operating system with root privileges.
Please see the included Cisco BID and Cisco Security Advisory for more information.
Note that Nessus has not tested for this issue but has instead relied only on the application’s self-reported version number.
#TRUSTED 80ae9d46abe3430c2c95b59013b2b9a6635155702ef371dfc8ed8eb1631203159708f4952f09246116768c3d94e09057cd74be57529a15a633042a772e6343f2b73a0973776c0d22cd846751eb1c589ed5d62c2623a9118d3a53613ed3dab87e39edc5b8f8560ccce3fa241950cc4b793373e98feaa92051ea1c4e9b6879db63122fa30c923ebddcd31bebdb9d453658bdca299b4739c33a27ca4974c80c1285d833b98bc93d65835f8345c2e7a0ec2af18f6c35e280691256a59d3728b24c3ecc7dac6975b9b653cb6f8412c4322258cf10a6f05ee1e5745094dc64f6a9557100d31cb6183a25d61adb3dbd68df8ae8b23d0424064207519f22913444fbe231ae2b287a7db90ba51f4ad52be9684f233d546c71db8c05858b0a287e260b973b5b3939c1f4c9fd494103e42bc675a0f8eaf6cb27c71220b5a0c97d6cc4455ac98209cf80e00bfc8802c8b467b26364fdcbb500c0c0315b17f5c929c12b51ae10d45b4bf319e667dc27263857ca515801cb81f8a0ad48b3538517155ae9ac79eefabb26e6ce01324376026446564d388169c609862ee195b453e09711b51efdcaee180925a76e0a3cb8853bb021f72cc84478e344b090b6ccc423bb89e7e2b1717b34ec15e1cb8673d4e3e8f736b13a4135ed5e3f910e6f3d27ac2be3df66de391fd0d6a1b949f7ec880e0d96c21297a3383c23c4573264467609af0abda00738
#
# (C) Tenable Network Security, Inc.
#
include('compat.inc');
if (description)
{
script_id(130972);
script_version("1.6");
script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/25");
script_cve_id("CVE-2019-1770");
script_bugtraq_id(108376);
script_xref(name:"CISCO-BUG-ID", value:"CSCvh75867");
script_xref(name:"CISCO-BUG-ID", value:"CSCvh75958");
script_xref(name:"CISCO-BUG-ID", value:"CSCvi92239");
script_xref(name:"CISCO-BUG-ID", value:"CSCvi92240");
script_xref(name:"CISCO-BUG-ID", value:"CSCvi92242");
script_xref(name:"CISCO-BUG-ID", value:"CSCvi92243");
script_xref(name:"CISCO-BUG-ID", value:"CSCvk36294");
script_xref(name:"CISCO-SA", value:"cisco-sa-20190515-nxos-cmdinj-1770");
script_name(english:"Cisco NX-OS Software Command Injection (cisco-sa-20190515-nxos-cmdinj-1770)");
script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch");
script_set_attribute(attribute:"description", value:
"According to its self-reported version, Cisco NX-OS Software is affected by a command injection vulnerability due to
insufficient validation of arguments passed to a specific CLI command. An authenticated, local attacker can exploit
these vulnerabilities by including malicious input as the argument of an affected command in order to execute arbitrary
commands on the underlying Linux operating system with root privileges.
Please see the included Cisco BID and Cisco Security Advisory for more information.
Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
# https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190515-nxos-cmdinj-1770
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?71c6a1b0");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvh75867");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvh75958");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92239");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92240");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92242");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92243");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvk36294");
script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco bug IDs CSCvh75867, CSCvh75958, CSCvi92239, CSCvi92240,
CSCvi92242, CSCvi92243, and CSCvk36294.");
script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-1770");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"vuln_publication_date", value:"2019/05/15");
script_set_attribute(attribute:"patch_publication_date", value:"2019/05/15");
script_set_attribute(attribute:"plugin_publication_date", value:"2019/11/14");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:nx-os");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CISCO");
script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("cisco_nxos_version.nasl");
script_require_keys("Host/Cisco/NX-OS/Version", "Host/Cisco/NX-OS/Model", "Host/Cisco/NX-OS/Device");
exit(0);
}
include('audit.inc');
include('cisco_workarounds.inc');
include('ccf.inc');
product_info = cisco::get_product_info(name:'Cisco NX-OS Software');
cbi = '';
if ('Nexus' >< product_info.device)
{
if (product_info.model =~ '^7[07][0-9]{2}')
cbi = 'CSCvh75867';
else if (product_info.model =~ '^(30|35|90)[0-9]{2}')
cbi = 'CSCvh75958, CSCvi92242';
else if (product_info.model =~ '^36[0-9]{2}' || product_info.model =~ '^95[0-9]{2}R')
cbi = 'CSCvi92239';
else if (product_info.model =~ '^(55|56|60)[0-9]{2}')
cbi = 'CSCvi92243';
else if (product_info.model =~ '^10[0-9]{2}V')
cbi = 'CSCvi92240, CSCvk36294';
}
if (cbi == '')
audit(AUDIT_HOST_NOT, 'affected');
version_list=make_list(
'5.2(1)',
'5.2(3a)',
'5.2(4)',
'5.2(5)',
'5.2(7)',
'5.2(9)',
'5.2(3)',
'5.2(9a)',
'5.2(2)',
'5.2(2a)',
'5.2(2d)',
'5.2(2s)',
'5.2(6)',
'5.2(6b)',
'5.2(8)',
'5.2(8a)',
'5.2(6a)',
'5.2(8b)',
'5.2(8c)',
'5.2(8d)',
'5.2(8e)',
'5.2(8f)',
'5.2(8g)',
'5.2(8h)',
'5.2(8i)',
'5.2(1)N1(1)',
'5.2(1)N1(1a)',
'5.2(1)N1(1b)',
'5.2(1)N1(2)',
'5.2(1)N1(2a)',
'5.2(1)N1(3)',
'5.2(1)N1(4)',
'5.2(1)N1(5)',
'5.2(1)N1(6)',
'5.2(1)N1(7)',
'5.2(1)N1(8a)',
'5.2(1)N1(8)',
'5.2(1)N1(8b)',
'5.2(1)N1(9)',
'5.2(1)N1(9a)',
'5.2(1)N1(9b)',
'5.2(1)SM1(5.1)',
'5.2(1)SM1(5.2)',
'5.2(1)SM1(5.2a)',
'5.2(1)SM1(5.2b)',
'5.2(1)SM1(5.2c)',
'5.2(1)SM3(1.1)',
'5.2(1)SM3(1.1a)',
'5.2(1)SM3(1.1b)',
'5.2(1)SM3(1.1c)',
'5.2(1)SV3(1.4)',
'5.2(1)SV3(1.1)',
'5.2(1)SV3(1.3)',
'5.2(1)SV3(1.5a)',
'5.2(1)SV3(1.5b)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
'6.2(8b)',
'6.2(10)',
'6.2(12)',
'6.2(18)',
'6.2(16)',
'6.2(14b)',
'6.2(14)',
'6.2(14a)',
'6.2(6a)',
'6.2(20)',
'6.2(1)',
'6.2(3)',
'6.2(5)',
'6.2(5a)',
'6.2(5b)',
'6.2(7)',
'6.2(9)',
'6.2(9a)',
'6.2(9b)',
'6.2(9c)',
'6.2(11)',
'6.2(11b)',
'6.2(11c)',
'6.2(11d)',
'6.2(11e)',
'6.2(13)',
'6.2(13a)',
'6.2(13b)',
'6.2(15)',
'6.2(17)',
'6.2(19)',
'6.2(21)',
'6.2(20a)',
'7.0(3)',
'7.0(0)N1(1)',
'7.0(1)N1(1)',
'7.0(1)N1(3)',
'7.0(2)I2(2c)',
'7.0(2)N1(1)',
'7.0(2)N1(1a)',
'7.0(3)F1(1)',
'7.0(3)F2(1)',
'7.0(3)F2(2)',
'7.0(3)F3(1)',
'7.0(3)F3(2)',
'7.0(3)F3(3)',
'7.0(3)F3(3a)',
'7.0(3)F3(4)',
'7.0(3)F3(3c)',
'7.0(3)F3(3b)',
'7.0(3)I1(1)',
'7.0(3)I1(1a)',
'7.0(3)I1(1b)',
'7.0(3)I1(2)',
'7.0(3)I1(3)',
'7.0(3)I1(3a)',
'7.0(3)I1(3b)',
'7.0(3)I2(2a)',
'7.0(3)I2(2b)',
'7.0(3)I2(2c)',
'7.0(3)I2(2d)',
'7.0(3)I2(2e)',
'7.0(3)I2(3)',
'7.0(3)I2(4)',
'7.0(3)I2(5)',
'7.0(3)I2(1)',
'7.0(3)I2(1a)',
'7.0(3)I2(2)',
'7.0(3)I3(1)',
'7.0(3)I4(1)',
'7.0(3)I4(2)',
'7.0(3)I4(3)',
'7.0(3)I4(4)',
'7.0(3)I4(5)',
'7.0(3)I4(6)',
'7.0(3)I4(7)',
'7.0(3)I4(8)',
'7.0(3)I4(8a)',
'7.0(3)I4(8b)',
'7.0(3)I4(8z)',
'7.0(3)I7(5a)',
'7.3(0.2)',
'7.3(0)D1(1)',
'7.3(0)DX(1)',
'7.3(0)DY(1)',
'7.3(0)N1(1)',
'7.3(0)N1(1b)',
'7.3(0)N1(1a)',
'7.3(1)D1(1B)',
'7.3(1)D1(1)',
'7.3(1)DY(1)',
'7.3(1)N1(0.1)',
'7.3(1)N1(1)',
'7.3(2)D1(1A)',
'7.3(2)D1(1)',
'7.3(2)D1(2)',
'7.3(2)D1(3)',
'7.3(2)D1(3a)',
'7.3(2)N1(0.296)',
'7.3(2)N1(1)',
'7.3(3)N1(1)',
'8.2(1)',
'8.2(2)'
);
reporting = make_array(
'port' , 0,
'severity' , SECURITY_HOLE,
'version' , product_info.version,
'bug_id' , cbi,
'disable_caveat', TRUE
);
cisco::check_and_report(
product_info:product_info,
reporting:reporting,
vuln_versions:version_list
);
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1770
www.nessus.org/u?71c6a1b0
bst.cloudapps.cisco.com/bugsearch/bug/CSCvh75867
bst.cloudapps.cisco.com/bugsearch/bug/CSCvh75958
bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92239
bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92240
bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92242
bst.cloudapps.cisco.com/bugsearch/bug/CSCvi92243
bst.cloudapps.cisco.com/bugsearch/bug/CSCvk36294
CVSS2
Attack Vector
LOCAL
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:L/AC:L/Au:N/C:C/I:C/A:C
CVSS3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
Percentile
5.2%