CVE-2024-20399
CONFIRMED EXPLOITEDCisco NX-OS Command Injection Vulnerability
Is Cisco NX-OS affected by CVE-2024-20399?
Cisco NX-OS is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2024-20399, added on 2024-07-02. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (40 vulnerable CPE entries): cisco nx-os.
Published CPE data pins the vulnerable releases as 6.2\(10\), 6.2\(12\), 6.2\(14\), 6.2\(16\), 6.2\(18\), 6.2\(20\), 6.2\(20a\), 6.2\(22\), 6.2\(24\), 6.2\(24a\), 6.2\(2\), 6.2\(2a\), 6.2\(6\), 6.2\(6a\), 6.2\(6b\), 6.2\(8\), 6.2\(8a\), 6.2\(8b\), 7.2\(0\)d1\(1\), 7.2\(1\)d1\(1\), 7.2\(2\)d1\(1\), 7.2\(2\)d1\(2\), 7.3\(0\)d1\(1\), 7.3\(0\)dx\(1\), 7.3\(1\)d1\(1\), 7.3\(2\)d1\(1\), 7.3\(2\)d1\(2\), 7.3\(2\)d1\(3\), 7.3\(2\)d1\(3a\), 7.3\(3\)d1\(1\), 7.3\(4\)d1\(1\), 7.3\(5\)d1\(1\), 7.3\(6\)d1\(1\), 7.3\(7\)d1\(1\), 7.3\(8\)d1\(1\), 7.3\(9\)d1\(1\), 8.0\(1\), 8.1\(1\), 8.1\(2\) and 8.1\(2a\). Check the vendor advisory below for the fixed release and for any other affected build.
The CISA remediation deadline for this entry is 2024-07-23.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-76466Same vendorCisco Expressway Series
Cisco Expressway Series Use of Hard-coded Credentials Vulnerability
- CVE-2026-20320Same vendorCisco BroadWorks
Cisco BroadWorks Improper Restriction of XML External Entity Reference Vulnerability
- CVE-2026-76418Same vendorCisco Secure Firewall ASA Software and Cisco Secure FTD Software
Cisco Secure Firewall ASA Software and Cisco Secure FTD Software Unchecked Return Value to NULL Pointer Dereference Vulnerability
- CVE-2026-76519Same vendorCisco Secure Email Gateway
Cisco Secure Email Gateway Relative Path Traversal Vulnerability
- CVE-2024-6387Neighboring entryOpenBSD OpenSSH
OpenSSH Server (sshd) Signal Handler Race Condition (regreSSHion)
- CVE-2024-23692Neighboring entryRejetto HTTP File Server
Rejetto HTTP File Server Improper Neutralization of Special Elements Used in a Template Engine Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Cisco NX-OS contains a command injection vulnerability in the command line interface (CLI) that could allow an authenticated, local attacker to execute commands as root on the underlying operating system of an affected device.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2024-07-02. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of NX-OS has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Kernel / local privilege surface (Cisco NX-OS): monitor endpoint syscall and process telemetry (`Linux auditd`, `Tetragon` eBPF LSM/kprobe policies, Windows Security Event IDs 4672/4688 & Sysmon, `Velociraptor` VQL) for unexpected UID/token elevation, namespace escapes, or unauthorized child processes.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Inventory all hosts running Cisco NX-OS and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOPVendor Advisory
- https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOPVendor Advisory
- https://www.sygnia.co/threat-reports-and-advisories/china-nexus-threat-group-velvet-ant-exploits-cisco-0-day/Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-20399US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting