Cyber Resilience

CVE-2024-20399

Command Injection in Cisco Nx-Os 10.1\(1\) … 9.4\(2\)

CISA KEVActive ExploitationEUVD ExploitedCommand Injection
Published
01 July 2024
Modified
28 October 2025
KEV Added
02 July 2024
Patch / advisory
CVSS Score v3.1 6.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
EPSS Score 0.043 90th percentile
Risk Priority 75 floored blend · peak EPSS

Summary

CVE-2024-20399 is a medium-severity OS Command Injection (CWE-78) vulnerability in Cisco Nx-Os. Its CVSS base score is 6.0 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Command and Scripting Interpreter (T1059); ranked in the top 10% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

A vulnerability in the CLI of Cisco NX-OS Software allows an authenticated user possessing Administrator credentials to execute arbitrary commands as root on the underlying operating system. The issue stems from insufficient validation of arguments supplied to specific configuration CLI commands and is tracked as CWE-78. It affects multiple Cisco Nexus switch platforms running vulnerable NX-OS releases, although the listed Nexus 3000, 7000 (8.1(1) and later), and 9000 standalone devices already permit administrative users to reach the underlying OS via the bash-shell feature and therefore receive no additional capability from this flaw. The CVSS 3.1 base score is 6.0 with the vector AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N.

An attacker must already hold Administrator credentials on an affected device. By supplying crafted input to an impacted configuration command, the attacker can run arbitrary commands on the host OS with root privileges. On devices that do not expose the bash-shell feature by default, this constitutes an escalation from CLI-restricted administrative access to full root control of the underlying system.

The Cisco Security Advisory cisco-sa-nxos-cmd-injection-xD9OhyOP describes the vulnerability and provides fixed software releases. CISA has added the CVE to its Known Exploited Vulnerabilities catalog, indicating confirmed in-the-wild use.

Public reporting attributes exploitation of the issue to the China-nexus threat group Velvet Ant. The EPSS score rose from a low baseline to a peak of 0.0225 on 2024-07-03 shortly after disclosure before receding to the current value of 0.0066, indicating a transient increase in observed exploitation interest following publication.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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

CWE(s)
KEV Date Added
02 July 2024

Related Threats

Threat-Actor AttributionAI

Velvet Ant (G1047)
Sygnia report attributes exploitation of this Cisco NX-OS zero-day to China-nexus group Velvet Ant.

MITRE ATT&CK Enterprise Techniques

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1059.003 Windows Command Shell Execution
Adversaries may abuse the Windows command shell for execution.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1059.001 PowerShell Execution
Adversaries may abuse PowerShell commands and scripts for execution.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2021-1497Same vendor: Ciscoboth on KEV
CVE-2023-20273Same vendor: Ciscoboth on KEV
CVE-2023-20050Same product: Cisco Mds 9000
CVE-2019-1652Same vendor: Ciscoboth on KEV
CVE-2022-20708Same vendor: Ciscoboth on KEV
CVE-2024-20458Same vendor: Cisco
CVE-2024-20277Same vendor: Cisco
CVE-2026-24699Same vendor: Cisco
CVE-2024-20424Same vendor: Cisco
CVE-2024-20483Same vendor: Cisco

Affected Assets

cisco
nx-os
10.1\(1\), 10.1\(2\), 10.2\(1\), 10.2\(1q\), 10.2\(2\)

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.5
  • V1.2.8
  • V15.2.5

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation can discover missing or incorrect command sanitization during development.

Input validation directly neutralizes or rejects special characters that would otherwise alter OS command structure.

Least privilege reduces the permissions available to any process that could be subverted by injected commands.

Least functionality restricts available OS commands and interpreters, limiting the blast radius of injection.

Secure engineering principles require proper neutralization of untrusted input before command construction.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

PR.PS-06's SDLC practices directly require secure coding and input handling that blocks command-injection defects, yet the single broad outcome leaves many specific neutralization vectors and verification gaps unaddressed.

PR.PS-02 partial match
prevents

Routine patching/maintenance can remediate known command-injection CVEs in dependencies (partial forward) but does nothing to stop developers from introducing improper neutralization in custom code (none reverse).

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing and code review target insecure use of operating-system command interfaces, catching command-injection flaws introduced during development.

References