Vulnerability record · CVE-2024-20399 · published 1 July 2024
CVE-2024-20399: Cisco NX-OS CLI command injection allows root command execution
Cisco · Nx Os
Cisco NX-OS fails to properly validate arguments passed to specific configuration CLI commands, allowing OS command injection. An attacker who already holds Administrator credentials can inject crafted input to run arbitrary commands as root on the underlying operating system. The flaw matters because it converts administrative CLI access into full root-level control of the device.
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
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Automated analysis
high priorityThe flaw requires Administrator credentials but yields root on network devices and is confirmed exploited in the wild per CISA KEV.
What it is
Cisco NX-OS fails to properly validate arguments passed to specific configuration CLI commands, allowing OS command injection. An attacker who already holds Administrator credentials can inject crafted input to run arbitrary commands as root on the underlying operating system. The flaw matters because it converts administrative CLI access into full root-level control of the device.
Impact
An attacker with Administrator credentials gains root-level command execution on the underlying NX-OS operating system, enabling full device compromise. On devices that already expose bash-shell to admins, the flaw grants no additional privilege.
Attack surface
Reached locally through the NX-OS CLI by supplying crafted arguments to affected configuration commands. Authentication is required at Administrator privilege level; no user interaction is needed.
Exploitation
CVE-2024-20399 is listed in CISA KEV with a due date of 2024-07-23, indicating known exploitation in the wild. EPSS is 0.04306 (90.6th percentile), and a third-party advisory links it to a China-nexus threat group exploiting it as a zero-day.
What to do
- Apply the Cisco NX-OS software updates referenced in the vendor advisory cisco-sa-nxos-cmd-injection-xD9OhyOP.
- If patching is not immediately possible, follow Cisco's documented workarounds or discontinue use of the affected product per CISA guidance.
- Restrict and audit Administrator-level CLI accounts; remove unnecessary admin credentials and enforce least privilege.
- Monitor and limit management-plane access to trusted networks and administrative hosts.
Detection
- Review NX-OS CLI command logs for configuration commands containing shell metacharacters or unexpected argument strings.
- Alert on Administrator account activity outside normal change windows or from unusual source addresses.
- Hunt for unexpected root-level processes or files on NX-OS devices that indicate command execution via the CLI.
- Correlate device logs with management-plane authentication events to spot credential misuse preceding command injection.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2024-20399 to the Known Exploited Vulnerabilities catalog on 2 July 2024 as "Cisco NX-OS Command Injection Vulnerability". Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. Federal deadline 23 July 2024.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2024-20399 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-20399), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.