CVE-2024-20399: Cisco NX-OS CLI Command Injection
- Vendor
- Cisco Systems
CVE-2024-20399 is an authenticated OS command-injection vulnerability in the Cisco NX-OS configuration CLI. Insufficient validation of arguments passed to specific configuration commands allows an attacker with Administrator credentials to submit crafted input and execute arbitrary commands as root on the underlying operating system. Affected product families include Cisco Nexus 3000, 5500, 5600, 6000, and 7000 Series switches, Nexus 9000 Series switches in standalone NX-OS mode, and MDS 9000 Series switches running vulnerable releases. Exploitation permits escape from the NX-OS management interface into the underlying Linux environment. Velvet Ant exploited the vulnerability as a zero-day to deploy VelvetShell on compromised switches. Cisco released patches on July 1, 2024, and CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on July 2, 2024.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation provides root-level command execution and can compromise the confidentiality, integrity, and availability of the affected device. Attackers can install backdoors and use compromised switches for persistent remote access, file transfers, command execution, and network tunneling or proxying. Nexus 3000 Series switches, Nexus 7000 Series switches running NX-OS 8.1(1) or later, and Nexus 9000 Series switches in standalone NX-OS mode already permit administrators to access the underlying operating system through the bash-shell feature; exploitation therefore grants no additional privileges on these platforms. It can nevertheless enable OS command execution without enabling bash-shell or generating the syslog event associated with invoking that shell, although a configuration-change syslog event still occurs.
Mitigation
If you can’t patch tonight, do this now.
No workaround is available. Until upgrades are completed, restrict and monitor Administrator-level CLI access and access to affected configuration commands. Monitor administrative accounts, including network-admin and vdc-admin roles, rotate administrative credentials as appropriate, and investigate unexpected configuration changes and associated syslog events. These compensating controls do not eliminate the vulnerability.
Remediation
Patch, then assume compromise.
Upgrade affected devices to a Cisco NX-OS release that fixes CVE-2024-20399. Use Cisco Software Checker to determine whether each platform and installed release is vulnerable and identify its First Fixed or Combined First Fixed release. Select the appropriate fixed release for the platform; specific fixed-version numbers are not available here.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-20399 exploited in the wild?
- Yes. As of Nov 2, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 2, 2024.
- Is there a public exploit for CVE-2024-20399?
- As of Nov 2, 2026, Mallory has found no public exploit for CVE-2024-20399.
- Is there a patch for CVE-2024-20399?
- Upgrade affected devices to a Cisco NX-OS release that fixes CVE-2024-20399. Use Cisco Software Checker to determine whether each platform and installed release is vulnerable and identify its First Fixed or Combined First Fixed release.
- What products are affected by CVE-2024-20399?
- Cisco Systems Nx-Os Software.
- How severe is CVE-2024-20399?
- CVE-2024-20399 has a CVSS v3.1 score of 6.7 (Medium) and an EPSS score of 4.3% (91st percentile) as of Nov 2, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.