CVE-2024-20399: Cisco NX-OS Command Injection
Cisco NX-OS · listed in the CISA catalog of actively exploited vulnerabilities since 2024-07-02.
- CVSS v3.1 (CVE record)
- 6.0
- medium
- EPSS (exploit probability, 30 days)
- 4.3%
- higher than 91.3% of all CVEs
- Added to CISA KEV
- 2024-07-02
- US federal due date 2024-07-23
- Automatable (CISA SSVC)
- no
- technical impact: total
CVE-2024-20399 explained
CVE-2024-20399 is a command injection vulnerability in the CLI of Cisco NX-OS Software. A user with Administrator credentials can pass crafted arguments to specific configuration CLI commands and run arbitrary commands as root on the underlying operating system. CISA lists it as known to be exploited, so it deserves priority despite its medium severity rating.
Impact
An attacker who already holds Administrator credentials and local CLI access can run commands as root on the underlying operating system. This gives full control of the device's confidentiality and integrity. CISA rates the technical impact as total but not automatable, and attackers are known to use it. On Nexus 3000 Series, some Nexus 7000 Series releases and Nexus 9000 Series in standalone NX-OS mode, the bash-shell feature already grants this access, so the flaw adds no privileges there.
Who is affected
The CVE record lists Cisco NX-OS Software as affected, covering 318 listed versions in 27 groups. These are individual listed versions, not a continuous range. The CVE record names no fixed version. Check the Cisco vendor advisory to see whether your specific release and platform are affected and which release contains the fix.
Written with AI from the data on this page and checked against it automatically.
Official 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
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- Cisco NX-OS SoftwareAffectedFixed in
- 318 listed versions in 27 groups (6.0(2)A6(1) … 10.4(2))
all 318 listed versions
- 6.0A: 6.0(2)A6(1) … 6.0(2)A8(11b) (31 versions)
- 6.0U: 6.0(2)U6(1) … 6.0(2)U6(10a) (18 versions)
- 6.2: 6.2(1) … 6.2(33) (50 versions)
- 7.0F: 7.0(3)F1(1) … 7.0(3)F3(5) (10 versions)
- 7.0I: 7.0(3)I4(1) … 7.0(3)I7(10) (35 versions)
- 7.0IA: 7.0(3)IA7(1), 7.0(3)IA7(2)
- 7.0IC: 7.0(3)IC4(4)
- 7.0IM: 7.0(3)IM3(1) … 7.0(3)IM7(2) (6 versions)
- 7.1N: 7.1(0)N1(1) … 7.1(5)N1(1b) (19 versions)
- 7.2D: 7.2(0)D1(1) … 7.2(2)D1(4) (6 versions)
- 7.3D: 7.3(0)D1(1) … 7.3(9)D1(1) (14 versions)
- 7.3DX: 7.3(0)DX(1)
- 7.3DY: 7.3(0)DY(1), 7.3(1)DY(1)
- 7.3N: 7.3(0)N1(1) … 7.3(14)N1(1) (26 versions)
- 8.0: 8.0(1)
- 8.1: 8.1(1) … 8.1(2a) (5 versions)
- 8.2: 8.2(1) … 8.2(11) (12 versions)
- 8.3: 8.3(1), 8.3(2)
- 8.4: 8.4(1) … 8.4(9) (18 versions)
- 8.5: 8.5(1)
- 9.2: 9.2(1) … 9.2(4) (8 versions)
- 9.3: 9.3(1) … 9.3(13) (18 versions)
- 9.4: 9.4(1), 9.4(1a), 9.4(2)
- 10.1: 10.1(1), 10.1(2)
- 10.2: 10.2(1) … 10.2(8) (10 versions)
- 10.3: 10.3(1) … 10.3(99x) (15 versions)
- 10.4: 10.4(1), 10.4(2)
not stated
| Product | Affected | Fixed in |
|---|---|---|
| Cisco NX-OS Software |
all 318 listed versions
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: sec.cloudapps.cisco.com/security/center/content/CiscoSecu…
- CISA's deadline for US federal agencies: 2024-07-23 (passed) – a useful benchmark for everyone else, too.
What to do
- Check the Cisco advisory to confirm whether your NX-OS release and platform are affected.
- Upgrade to a fixed NX-OS release identified by Cisco for your platform.
- Apply Cisco's mitigations per vendor instructions, as CISA requires.
- Restrict Administrator accounts to trusted staff and review who holds these credentials.
- Limit management access to the CLI to trusted networks and keep management interfaces off the internet.
- Review device logs and configuration for signs of unexpected commands or compromise.
The CVE record names no fixed version. Follow the Cisco vendor advisory for fixed releases and mitigations. CISA's required action is to apply mitigations per vendor instructions, or discontinue use of the product if mitigations are unavailable. Meanwhile, tightly control Administrator credentials, restrict CLI and management access, and monitor devices for signs of compromise.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Questions about CVE-2024-20399
- Is CVE-2024-20399 being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2024-07-02, with a US federal due date of 2024-07-23. Whether it is used in ransomware campaigns is unknown.
- Can an unauthenticated attacker exploit this?
- No. The attacker must have Administrator credentials and local CLI access. The risk is that a compromised or misused admin account can gain root on the underlying operating system.
- Does it matter on devices with the bash-shell feature?
- On Nexus 3000 Series, some Nexus 7000 Series releases and Nexus 9000 Series in standalone NX-OS mode, administrators can already reach the underlying operating system, so the flaw grants no additional privileges there. Follow the vendor advisory regardless.
Written with AI from the data on this page and checked against it automatically.
References
Government
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.