Skip to main content
Mallory
MediumExploited in the wildCISA KEVVulnerability

CVE-2024-20399: Cisco NX-OS CLI Command Injection

Published Jul 1, 2024 · Updated 15 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.7Medium · v3.1
EPSS4.3%91st percentile
CISA KEVYesAdded Jul 2, 2024
In the wildActivePer CISA KEV
Vendor
Cisco Systems
IdentifiersCVE-2024-20399CWE-78 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

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.

VendorProductType
Cisco SystemsNx-Os Softwareoperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence6Every report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.