6.7 Medium
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
6.9 Medium
AI Score
Confidence
High
0.023 Low
EPSS
Percentile
89.7%
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 86b10fcc83898c7ae5c8239edeffe337e54512cc7227d48f3192a21ba162d4bbad40f835d6f66eaca39d53a6900a2d76711a5cdce2cb004ed2aba03ee0f512351cdbdd299e2cfc608c8736bcad5d2f9997e799ad0575727e8fb23d795a8109d169981e143ee8e7b417ec73419ad56b3936bdab4223d6ed8381af8b7c459a5a49d5420f66116d95fbd2373f221c868b6eac58851a4b34006ecee62a02e2e797b5214f426f1accc706a602061fbf6bc9cce732d371be149375f02d17d787816d26e9ab9f64084f90c4fac1dcc3feee7bed09afc3137ccebbb863873d62ab72bebd7dc21dd182209c6b307f15c18588daa1fc465e9edec63a50ae44e18d70d604882bfa5401ff3d35c6c548968bd55a0360772a99a3bf07b8f5482b69571eb35f6116d642af4ba93f7af3915a7f1761d74b4a519dfad939d52092db971a126678408879583acb188523659c35029151f037eeaa2af5411e8ac4af29847ed9fb41cc14811232eb45b62be0dc0a4ee2afa3c719614dddca2045885fa8c169ba1dbea9974caa5425de3f8ffbed63b68e91dbef5c8ca544fa538af20d961f79b4dc530b5bc86dbc87eda26b33fb25de1c5682aca212b896416a55d53d3ecac926c646dd440d3b7783858b429d784eb3ee12bdd2a212692466dccfe2b5115057067089e1966e32a2a6b6d672006fbf3ae36b868782b5efca42d77634c60381faac5f150c
#TRUST-RSA-SHA256 137848171453eeb5998549744fd1087560e584270618e6d2107418724567224587f8ea76b9c946159d0b0384aa837cf2e22fb91206e4795ddbdf9d40946a1dfd4349a7c3794cc135332e559e5e8ef201923e7536577e03ff2d19041615db747e291bbd0fbad9f2ba91afffd2f03aaf0d2cae7b71f4039a8ddbade446c2fd069c666b4f8fa88b6fad42d3620d4f75661eee5c8bb19c930223068f942ab81e5836a0b9be627e178daa2bae612e6feadf4c4db0b7b81d4116377b6689dc42a75e12bd2a2dfcc5cb7af9eebde226aba387e0ca88848848fad62c3cbfb28032a47e5a8543f1839da5ca3728c7eaa8e517d12d41c038416513990cafd4e57680066f1a76abaa5962e79f2d9cc5e2a4ec0a7e7464f6c4f475c2d698c347caaa10ee5596ec784d9be03e70501cb950097f6a7efa59bcddfad00e9cc0b798a0c2acb255930d02ad539591bb06fc2cb47801eddeebc19056e478eac4c97454b01278dd4c6f5c73641083116521ddeba8d78defac852f605bc29772e6a6a7d682d3abeb17625a90f17be5fdf3b37e44c6aa4294c0ff95596cc51764a5127234092679813ba4521a8371b6301e2ffb81ffacdafdeb2e44e54c81010e313111ccef643f6f9daed714c8172ac0f133d89cdef4155e840c57b89f9de5725e01018bc76f32162034937e2a0083ad976e48f2fb45b0a85c3c35417273fec5a2e75cdb077d6b11ade4
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(201218);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/07/03");
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_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:F/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:F/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_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 = [];
if ('Nexus' >< product_info.device && product_info.model =~ "^3[0-9]{2,3}")
{
version_list = make_list(
'6.0(2)A6(1)',
'6.0(2)A6(1a)',
'6.0(2)A6(2)',
'6.0(2)A6(2a)',
'6.0(2)A6(3)',
'6.0(2)A6(3a)',
'6.0(2)A6(4)',
'6.0(2)A6(4a)',
'6.0(2)A6(5a)',
'6.0(2)A6(5b)',
'6.0(2)A6(6)',
'6.0(2)A6(7)',
'6.0(2)A6(8)',
'6.0(2)A8(1)',
'6.0(2)A8(2)',
'6.0(2)A8(3)',
'6.0(2)A8(4)',
'6.0(2)A8(4a)',
'6.0(2)A8(5)',
'6.0(2)A8(6)',
'6.0(2)A8(7)',
'6.0(2)A8(7a)',
'6.0(2)A8(7b)',
'6.0(2)A8(8)',
'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(2)',
'9.3(1)',
'9.3(2)',
'9.3(3)',
'9.3(4)',
'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)'
);
}
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)',
'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)'
);
}
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
);
6.7 Medium
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
6.9 Medium
AI Score
Confidence
High
0.023 Low
EPSS
Percentile
89.7%