CVE-2024-20399

Cisco NX-OS Software CLI Command Injection Vulnerability

Published 1 Jul 2024 Updated 21 Oct 2025 CNA: cisco

Known exploited

CISA added this CVE to its list of known exploited vulnerabilities on 2 Jul 2024. US federal agencies had to act by 23 Jul 2024.

Name
Cisco NX-OS Command Injection Vulnerability
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Ransomware
Use in ransomware campaigns is not known
Notes
https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOP https://nvd.nist.gov/vuln/detail/CVE-2024-20399

Description

A vulnerability in the CLI of Cisco NX-OS Software could allow an authenticated user in possession of Administrator credentials 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. The following Cisco devices already allow administrative users to access the underlying operating system through the bash-shell feature, so, for these devices, this vulnerability does not grant any additional privileges:

Nexus 3000 Series Switches Nexus 7000 Series Switches that are running Cisco NX-OS Software releases 8.1(1) and later Nexus 9000 Series Switches in standalone NX-OS mode

Severity (CVSS)

6.0 medium CVSS 3.1 from cisco (CNA)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
high: the attacker needs an administrative account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 4.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 91.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 2 Jul 2024):

Exploitation
active: CISA has reliable evidence of exploitation in the wild
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

Affected products

As the CNA lists them.

ProductVersions
Cisco NX-OS Software
affected 8.2(5)
affected 7.3(6)N1(1a)
affected 7.3(5)D1(1)
affected 8.4(2)
affected 7.3(6)N1(1)
affected 6.2(2)
affected 8.4(3)
affected 9.2(3)
affected 7.0(3)I5(2)
affected 8.2(1)
affected 6.0(2)A8(7a)
affected 7.0(3)I4(5)
affected 6.0(2)A6(1)
affected 7.3(1)D1(1)
affected 6.2(14a)
affected 7.0(3)I4(6)
affected 7.3(4)N1(1)
affected 7.0(3)I4(3)
affected 9.2(2v)
affected 6.0(2)A6(5b)
affected 7.3(0)D1(1)
affected 6.2(17a)
affected 7.0(3)I4(7)
affected 6.0(2)U6(1a)
affected 7.1(5)N1(1b)
and 293 more entries
Other versions: unknown

Is my server affected?

This CVE is in Cisco NX-OS Software of Cisco, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Advisories

  • CISA KEV cisa.gov · government resource

Other references

Source: the record CVE-2024-20399 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.