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
AI Score
Confidence
High
EPSS
Percentile
65.5%
According to its self-reported version, Cisco NX-OS Software is affected by a vulnerability.
Please see the included Cisco BIDs and Cisco Security Advisory for more information.
#TRUSTED a934f0462c9ad105510bf9a0a872ea916ce461ffeaa020727e37a095e72d13dc9da88dada494e8e81a4965c532e0ab0d8ad4fc271728afb1a5751e139106118fce36c5983dce6f6b68d70630cdf105d253bd64d208685b71da94a4d5f97d8927561f4889170cf6455f858f78f20fbcba2a7ce29fab5f90c68806375ef4d2f66ffe9a84a1f010a76309a70d762fbe0c797d10eee3b301b5b6d18d33cdf7747ead15a9ec8ae7ed40aa4c167c26c78d746e03e95c03a36b71288063a23eb2f0a0522c8211424508537884bfa885f238c7a5313e8460f1a21010f6a808cd8ca20a2c0ac988b089420c7c8838c283a0c5717fbeae8209cff64a407fb6ea7b0f92802c166b77163d8ba3bd60bb1830bb0bea26dbedfbfd0116f5bd45950809be76c577254d3b651ab1ae621a5b15d81a4a54c770daab506348b7963b5acccd534a8ab5fad6cd0fac6f76fd8d949334c8fbe5f9179643a36b366de3038b2e82ed43358b12aba5593094b9b1ae706b6e361f16b2283c674de65fb54664a1a2aa6042cca47e297c7338647890b6ee2c71671941a8afe4e6541e7d2a7f64ae4cfc137116a525113e901e4746e1c8940f0c4c62e454aee5c36a25faab8039c49f56364709636efa69a6674a44afcd47a9d6470e5d7b1f1624abea998e669f770d06519ec538b5031c9b087fb91931602967b57b1a3feaab479493fb67994e91a0db883d418e
#TRUST-RSA-SHA256 461d7f92fb5270f37a30262ae64ecd1b387cf97587e7ea1a9dfc3e15e5f67af25ad7819e46214aca6d59d6c59d8504b80e00e46c92d2d9036adeb148a6ca1e37de4f0a4e2abc988f5553603115b9234f841ef0f6ad36616d44197e0edcb416f910c19e81587bec6ac6dc7232b529092ed3e2b53fbea20b7aa42ef8538256a30ae28877c4c1fe36d4b651e8fba819781c42e6c2961668cd7d028ef7d88fd3ebd6d767c34612c5692c0dd0fa9668f2015e136b6d155d88fc43cb21a034fe5a2b10ebfd3cefa053449cb1512f8e421d7158d4dac6ac927b14b9d9eeaa094eb951bad9ccc8a6904f1a9459ea4cb340bba00a5763d12886ba10c744e152c9c83afcebeae4e152769b2c0bdcab9cda2bc266a280737619b3e070797b0eed70d4ed6593a785da09cc60cea2d23bb4c88716c6c1fe954f281214540af92dab2ef5ff41f449c1c6e78feea8c156ace91d29173dfb320f055d8aca0818cda2cc7c36ef1210222470761c85d82a2fe073ab72296f276b0914729db52ced2735d1685ddd49ca2cc5941c112775590a626001a5745c06eff8a82f376bc6b5b7cbfcdd7f3dc58bca5efd82dc1e46cf597a544d94855224d1a47d2c733bc8087c83943e55fa5cfb44067dea118891a51bcb2618e17dfc68ecd4eb7f25f660c1e6a91b7252607c9aa09e3f1ea4724c5a19a6fda6f087dc4f371020ae771ed9c7bd13db5124fcc38f
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(201218);
script_version("1.5");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/08/23");
script_cve_id("CVE-2024-20399");
script_xref(name:"CISCO-BUG-ID", value:"CSCwj94682");
script_xref(name:"CISCO-BUG-ID", value:"CSCwj97007");
script_xref(name:"CISCO-BUG-ID", value:"CSCwj97009");
script_xref(name:"CISCO-BUG-ID", value:"CSCwj97011");
script_xref(name:"CISCO-SA", value:"cisco-sa-nxos-cmd-injection-xD9OhyOP");
script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2024/07/23");
script_xref(name:"IAVA", value:"2024-A-0377");
script_name(english:"Cisco NX-OS Software CLI Comm Injection (cisco-sa-nxos-cmd-injection-xD9OhyOP)");
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 vulnerability.
- A vulnerability in the CLI of Cisco NX-OS Software could allow an authenticated, local attacker to execute
arbitrary commands as root on the underlying operating system of an affected device. This vulnerability is
due to insufficient validation of arguments that are passed to specific configuration CLI commands. An
attacker could exploit this vulnerability by including crafted input as the argument of an affected
configuration CLI command. A successful exploit could allow the attacker to execute arbitrary commands on
the underlying operating system with the privileges of root. Note: To successfully exploit this
vulnerability on a Cisco NX-OS device, an attacker must have Administrator credentials. (CVE-2024-20399)
Please see the included Cisco BIDs and Cisco Security Advisory for more information.");
# https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOP
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a106946b");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwj94682");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwj97007");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwj97009");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwj97011");
script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco bug IDs CSCwj94682, CSCwj97007, CSCwj97009, CSCwj97011");
script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:M/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:H/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:H/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2024-20399");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_cwe_id(78);
script_set_attribute(attribute:"vuln_publication_date", value:"2024/07/01");
script_set_attribute(attribute:"patch_publication_date", value:"2024/07/01");
script_set_attribute(attribute:"plugin_publication_date", value:"2024/07/01");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:nx-os");
script_set_attribute(attribute:"generated_plugin", value:"former");
script_set_attribute(attribute:"stig_severity", value:"II");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CISCO");
script_copyright(english:"This script is Copyright (C) 2024 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('ccf.inc');
var product_info = cisco::get_product_info(name:'Cisco NX-OS Software');
if (('Nexus' >!< product_info.device || product_info.model !~ "(^|[^0-9])3[0-9]{2,3}") &&
('Nexus' >!< product_info.device || product_info.model !~ "(^|[^0-9])7[0-9]{2,3}") &&
('MDS' >!< product_info.device || product_info.model !~ "^9[0-9]{2,3}") &&
('Nexus' >!< product_info.device || product_info.model !~ "(^|[^0-9])9[0-9]{2,3}") &&
('Nexus' >!< product_info.device || product_info.model !~ "(^|[^0-9])5[5-6][0-9]{1,2}"))
audit(AUDIT_HOST_NOT, 'affected');
var version_list;
var version_list_2;
var vuln_model = FALSE;
# From advisory:
# Cisco NX-OS Software releases 9.3(5) and later are not affected by this vulnerability, with the exception of the following Cisco platforms:
var model_list = make_list(
"N3K-C3264C-E(\s|$)",
"N3K-C3172PQ-10GE(\s|$)",
"N3K-C3172PQ-10GE-XL(\s|$)",
"N3K-C3172TQ-10GT(\s|$)",
"N3K-C3548P-10GX(\s|$)",
"N9K-C92348GC-X(\s|$)"
);
var m_model = cisco_command_kb_item('Host/Cisco/Config/show_module', 'show module');
foreach var model (model_list)
{
if(m_model =~ model)
vuln_model = TRUE;
}
if ('Nexus' >< product_info.device && product_info.model =~ "^3[0-9]{2,3}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(3)I5(3)',
'7.0(3)I5(3a)',
'7.0(3)I5(3b)',
'7.0(3)I6(1)',
'7.0(3)I6(2)',
'7.0(3)I7(1)',
'7.0(3)I7(2)',
'7.0(3)I7(3)',
'7.0(3)I7(4)',
'7.0(3)I7(5)',
'7.0(3)I7(5a)',
'7.0(3)I7(3z)',
'7.0(3)I7(6)',
'7.0(3)I7(6z)',
'7.0(3)I7(7)',
'7.0(3)I7(8)',
'7.0(3)I7(9)',
'7.0(3)I7(9w)',
'7.0(3)I7(10)',
'9.2(1)',
'9.2(2)',
'9.2(2t)',
'9.2(3)',
'9.2(3y)',
'9.2(4)',
'9.2(2v)',
'7.0(3)IC4(4)',
'7.0(3)IM7(2)',
'9.3(1)',
'9.3(2)',
'9.3(3)',
'9.3(4)'
);
# Only specific models of Nexus 3000 are affected by 9.3(5) or later
version_list_2 = make_list(
'9.3(5)',
'9.3(6)',
'9.3(7)',
'9.3(7k)',
'9.3(7a)',
'9.3(8)',
'9.3(9)',
'9.3(10)',
'9.3(11)',
'9.3(12)',
'9.3(13)'
);
# Combine the version lists
if (vuln_model)
version_list = make_list(version_list, version_list_2);
}
if ('Nexus' >< product_info.device && product_info.model =~ "^7[0-9]{2,3}")
{
version_list = make_list(
'6.2(2)',
'6.2(2a)',
'6.2(6)',
'6.2(6b)',
'6.2(8)',
'6.2(8a)',
'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(20a)',
'6.2(22)',
'6.2(24)',
'6.2(24a)',
'6.2(26)',
'7.2(0)D1(1)',
'7.2(1)D1(1)',
'7.2(2)D1(2)',
'7.2(2)D1(1)',
'7.2(2)D1(3)',
'7.2(2)D1(4)',
'7.3(0)D1(1)',
'7.3(0)DX(1)',
'7.3(1)D1(1)',
'7.3(2)D1(1)',
'7.3(2)D1(2)',
'7.3(2)D1(3)',
'7.3(2)D1(3a)',
'7.3(2)D1(1d)',
'8.0(1)',
'8.1(1)',
'8.1(2)',
'8.1(2a)',
'8.2(1)',
'8.2(2)',
'8.2(3)',
'8.2(4)',
'8.2(5)',
'8.2(6)',
'8.2(7)',
'8.2(7a)',
'8.2(8)',
'8.2(9)',
'8.2(10)',
'8.2(11)',
'8.3(1)',
'8.3(2)',
'7.3(3)D1(1)',
'7.3(4)D1(1)',
'8.4(1)',
'8.4(2)',
'8.4(3)',
'8.4(4)',
'8.4(4a)',
'8.4(5)',
'8.4(6)',
'8.4(6a)',
'8.4(7)',
'8.4(8)',
'8.4(9)',
'7.3(5)D1(1)',
'7.3(6)D1(1)',
'7.3(7)D1(1)',
'7.3(8)D1(1)',
'7.3(9)D1(1)'
);
}
if ('MDS' >< product_info.device && product_info.model =~ "^9[0-9]{2,3}")
{
version_list = make_list(
'6.2(1)',
'6.2(5b)',
'6.2(9)',
'6.2(9a)',
'6.2(9b)',
'6.2(11)',
'6.2(13a)',
'6.2(13b)',
'6.2(17)',
'6.2(17a)',
'6.2(27)',
'6.2(29)',
'6.2(33)',
'7.3(0)D1(1)',
'7.3(1)D1(1)',
'8.1(1)',
'8.1(1b)',
'8.2(1)',
'8.2(2)',
'8.3(1)',
'8.3(2)',
'9.2(1)',
'9.2(2)',
'8.4(1)',
'8.4(2)',
'8.4(2b)',
'8.4(2c)',
'8.4(2f)',
'9.3(1)',
'9.3(2)',
'9.3(2a)',
'8.5(1)'
);
}
if ('Nexus' >< product_info.device && product_info.model =~ "^9[0-9]{2,3}")
{
version_list = make_list(
'7.0(3)F1(1)',
'7.0(3)F2(1)',
'7.0(3)F2(2)',
'7.0(3)F3(1)',
'7.0(3)F3(3)',
'7.0(3)F3(3a)',
'7.0(3)F3(4)',
'7.0(3)F3(3c)',
'7.0(3)F3(5)',
'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)I4(1t)',
'7.0(3)I4(6t)',
'7.0(3)I4(9)',
'7.0(3)I5(1)',
'7.0(3)I5(2)',
'7.0(3)I5(3)',
'7.0(3)I5(3a)',
'7.0(3)I5(3b)',
'7.0(3)I6(1)',
'7.0(3)I6(2)',
'7.0(3)I7(1)',
'7.0(3)I7(2)',
'7.0(3)I7(3)',
'7.0(3)I7(4)',
'7.0(3)I7(5)',
'7.0(3)I7(5a)',
'7.0(3)I7(3z)',
'7.0(3)I7(6)',
'7.0(3)I7(7)',
'7.0(3)I7(8)',
'7.0(3)I7(9)',
'7.0(3)I7(9w)',
'7.0(3)I7(10)',
'9.2(1)',
'9.2(2)',
'9.2(3)',
'9.2(3y)',
'9.2(4)',
'7.0(3)IA7(1)',
'7.0(3)IA7(2)',
'7.0(3)IC4(4)',
'7.0(3)IM3(2)',
'7.0(3)IM3(2a)',
'7.0(3)IM3(2b)',
'7.0(3)IM3(3)',
'9.3(1)',
'9.3(2)',
'9.3(3)',
'9.3(1z)',
'9.3(4)'
);
# Only specific models of Nexus 9000 are affected by 9.3(5) or later
version_list_2 = make_list(
'9.3(5)',
'9.3(6)',
'9.3(5w)',
'9.3(7)',
'9.3(7k)',
'9.3(7a)',
'9.3(8)',
'9.3(9)',
'9.3(10)',
'9.3(11)',
'9.3(12)',
'9.3(13)',
'10.2(1q)',
'10.2(2a)',
'10.3(99w)',
'10.3(3w)',
'10.3(99x)',
'10.3(3o)',
'10.3(3p)',
'10.3(3q)',
'10.3(3x)'
);
# Combine the version lists
if (vuln_model)
version_list = make_list(version_list, version_list_2);
}
if ('Nexus' >< product_info.device && product_info.model =~ "^5[5-6][0-9]{1,2}")
{
version_list = make_list(
'7.1(0)N1(1a)',
'7.1(0)N1(1b)',
'7.1(0)N1(1)',
'7.1(1)N1(1)',
'7.1(1)N1(1a)',
'7.1(2)N1(1)',
'7.1(2)N1(1a)',
'7.1(3)N1(1)',
'7.1(3)N1(2)',
'7.1(3)N1(5)',
'7.1(3)N1(4)',
'7.1(3)N1(3)',
'7.1(3)N1(2a)',
'7.1(4)N1(1)',
'7.1(4)N1(1d)',
'7.1(4)N1(1c)',
'7.1(4)N1(1a)',
'7.1(5)N1(1)',
'7.1(5)N1(1b)',
'7.3(0)N1(1)',
'7.3(0)N1(1b)',
'7.3(0)N1(1a)',
'7.3(1)N1(1)',
'7.3(2)N1(1)',
'7.3(2)N1(1b)',
'7.3(2)N1(1c)',
'7.3(3)N1(1)',
'7.3(4)N1(1)',
'7.3(4)N1(1a)',
'7.3(5)N1(1)',
'7.3(6)N1(1)',
'7.3(6)N1(1a)',
'7.3(7)N1(1)',
'7.3(7)N1(1a)',
'7.3(7)N1(1b)',
'7.3(8)N1(1)',
'7.3(8)N1(1a)',
'7.3(8)N1(1b)',
'7.3(9)N1(1)',
'7.3(10)N1(1)',
'7.3(11)N1(1)',
'7.3(11)N1(1a)',
'7.3(12)N1(1)',
'7.3(13)N1(1)',
'7.3(14)N1(1)'
);
}
var reporting = make_array(
'port' , 0,
'severity' , SECURITY_WARNING,
'version' , product_info['version'],
'bug_id' , 'CSCwj94682, CSCwj97007, CSCwj97009, CSCwj97011',
'disable_caveat', TRUE
);
cisco::check_and_report(
product_info:product_info,
reporting:reporting,
vuln_versions:version_list
);
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
AI Score
Confidence
High
EPSS
Percentile
65.5%