---
id: "CVE-2024-20399"
kind: "vulnerability"
aliases: ["CVE-2024-20399"]
title: "A vulnerability in the CLI of Cisco NX-OS Software could allow an authenticated user in possession of Administrator\u2026"
severity: "high"
cvss: 6.7
epss: null
exploited: true
status: "open"
category: "infrastructure"
products: [{"name": "Cisco NX-OS", "fixed": [], "affected": "", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(2\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(2a\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(6\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(6a\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(6b\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(8\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(8a\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(8b\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(10\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(12\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(14\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(16\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(18\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(20\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(20a\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(22\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(24\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 6.2\\(24a\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.2\\(0\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.2\\(1\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.2\\(2\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.2\\(2\\)d1\\(2\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(0\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(0\\)dx\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(1\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(2\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(2\\)d1\\(2\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(2\\)d1\\(3\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(2\\)d1\\(3a\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(3\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(4\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(5\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(6\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(7\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(8\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 7.3\\(9\\)d1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 8.0\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 8.1\\(1\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 8.1\\(2\\)", "ecosystem": "vendor"}, {"name": "cisco nx-os", "fixed": [], "affected": "= 8.1\\(2a\\)", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["cisco", "exploited", "infrastructure", "nexus", "nx-os"]
not_affected_if: ["no-cli-local-users"]
published_at: "2024-07-01T17:15:04+00:00"
first_seen_at: "2026-10-23T19:11:51+00:00"
updated_at: "2026-10-23T22:29:05+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-20399", "first_seen_at": "2026-10-23T19:11:51+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-20399", "first_seen_at": "2026-10-23T22:29:05+00:00"}]
---

# A vulnerability in the CLI of Cisco NX-OS Software could allow an authenticated user in possession of Administrator…

Cisco NX-OS, the network operating system on Cisco Nexus switches, has a command injection flaw in its command line interface. An attacker with valid local credentials can run arbitrary commands as root on the underlying device.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Cisco NX-OS affected ? fixed ?
- vendor:cisco nx-os affected = 6.2\(2\) fixed ?
- vendor:cisco nx-os affected = 6.2\(2a\) fixed ?
- vendor:cisco nx-os affected = 6.2\(6\) fixed ?
- vendor:cisco nx-os affected = 6.2\(6a\) fixed ?
- vendor:cisco nx-os affected = 6.2\(6b\) fixed ?
- vendor:cisco nx-os affected = 6.2\(8\) fixed ?
- vendor:cisco nx-os affected = 6.2\(8a\) fixed ?
- vendor:cisco nx-os affected = 6.2\(8b\) fixed ?
- vendor:cisco nx-os affected = 6.2\(10\) fixed ?
- vendor:cisco nx-os affected = 6.2\(12\) fixed ?
- vendor:cisco nx-os affected = 6.2\(14\) fixed ?
- vendor:cisco nx-os affected = 6.2\(16\) fixed ?
- vendor:cisco nx-os affected = 6.2\(18\) fixed ?
- vendor:cisco nx-os affected = 6.2\(20\) fixed ?
- vendor:cisco nx-os affected = 6.2\(20a\) fixed ?
- vendor:cisco nx-os affected = 6.2\(22\) fixed ?
- vendor:cisco nx-os affected = 6.2\(24\) fixed ?
- vendor:cisco nx-os affected = 6.2\(24a\) fixed ?
- vendor:cisco nx-os affected = 7.2\(0\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.2\(1\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.2\(2\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.2\(2\)d1\(2\) fixed ?
- vendor:cisco nx-os affected = 7.3\(0\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(0\)dx\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(1\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(2\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(2\)d1\(2\) fixed ?
- vendor:cisco nx-os affected = 7.3\(2\)d1\(3\) fixed ?
- vendor:cisco nx-os affected = 7.3\(2\)d1\(3a\) fixed ?
- vendor:cisco nx-os affected = 7.3\(3\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(4\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(5\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(6\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(7\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(8\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 7.3\(9\)d1\(1\) fixed ?
- vendor:cisco nx-os affected = 8.0\(1\) fixed ?
- vendor:cisco nx-os affected = 8.1\(1\) fixed ?
- vendor:cisco nx-os affected = 8.1\(2\) fixed ?
- vendor:cisco nx-os affected = 8.1\(2a\) fixed ?

## Fix

Apply the mitigations in Cisco's vendor advisory, or stop using the affected product if no mitigation exists. Sources do not name the fixed versions.

## Timeline

- 2026-10-23T19:11:51+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-20399
- 2026-10-23T22:29:05+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-20399

## From the sources

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

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
