CVE-2017-12340
n/a Cisco Multilayer Director, Nexus 7000 Series, and Nexus 7700 Series Switches: Improper Access Control
Check your servers for CVE-2017-12340
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2017-12340 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
A vulnerability in Cisco NX-OS System Software running on Cisco MDS Multilayer Director Switches, Cisco Nexus 7000 Series Switches, and Cisco Nexus 7700 Series Switches could allow an authenticated, local attacker to access the Bash shell of an affected device's operating system, even if the Bash shell is disabled on the system. The vulnerability is due to insufficient sanitization of user-supplied parameters that are passed to certain functions of the Python scripting sandbox of the affected system. An attacker could exploit this vulnerability to escape the scripting sandbox and enter the Bash shell of the operating system with the privileges of the authenticated user for the affected system. To exploit this vulnerability, the attacker must have local access to the affected system and be authenticated to the affected system with administrative or Python execution privileges. Cisco Bug IDs: CSCvd86513.
Exploitation
EPSS 0.34%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.7% of all scored CVEs. Scores of 27 Nov 2026.
Weakness
- CWE-284 Improper Access Control
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Cisco Multilayer Director, Nexus 7000 Series, and Nexus 7700 Series Switches
n/a
|
affected Cisco Multilayer Director, Nexus 7000 Series, and Nexus 7700 Series Switches
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2017-12340 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2017-12340RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2017-12340Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2017-12340
trivy image --scanners vuln IMAGE | grep CVE-2017-12340
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the agent.
References
Advisories
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20171129-switch tools.cisco.com
Other references
- 102069 securityfocus.com · vdb entry
Source: the record CVE-2017-12340 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse