Description
A vulnerability in the Cisco Cluster Management Protocol (CMP) processing code in Cisco IOS and Cisco IOS XE Software could allow an unauthenticated, remote attacker to cause a reload of an affected device or remotely execute code with elevated privileges. The Cluster Management Protocol utilizes Telnet internally as a signaling and command protocol between cluster members. The vulnerability is due to the combination of two factors: (1) the failure to restrict the use of CMP-specific Telnet options only to internal, local communications between cluster members and instead accept and process such options over any Telnet connection to an affected device; and (2) the incorrect processing of malformed CMP-specific Telnet options. An attacker could exploit this vulnerability by sending malformed CMP-specific Telnet options while establishing a Telnet session with an affected Cisco device configured to accept Telnet connections. An exploit could allow an attacker to execute arbitrary code and obtain full control of the device or cause a reload of the affected device. This affects Catalyst switches, Embedded Service 2020 switches, Enhanced Layer 2 EtherSwitch Service Module, Enhanced Layer 2/3 EtherSwitch Service Module, Gigabit Ethernet Switch Module (CGESM) for HP, IE Industrial Ethernet switches, ME 4924-10GE switch, RF Gateway 10, and SM-X Layer 2/3 EtherSwitch Service Module. Cisco Bug IDs: CSCvd48893.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Cisco IOS and IOS XE Software | Cisco IOS and IOS XE Software | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Cisco IOS Telnet Denial of Service
auxiliary/dos/cisco/ios_telnet_rocem
Exploit-DB 2
- Cisco Catalyst 2960 IOS 12.2(55)SE11 - 'ROCEM' Remote Code Execution EDB-41872 · remote · Apr 12, 2017
- Cisco Catalyst 2960 IOS 12.2(55)SE1 - 'ROCEM' Remote Code Execution EDB-42122 · remote · Apr 12, 2017
GitHub 5 repositories
-
artkond/cisco-rce ★ 213 · Apr 10, 2017
CVE-2017-3881 Cisco Catalyst Remote Code Execution PoC
-
1337g/CVE-2017-3881 ★ 2 · Jan 2, 2018
credit to artkond
-
homjxi0e/CVE-2017-3881-exploit-cisco- ★ 2 · Apr 20, 2017
-
mzakyz666/PoC-CVE-2017-3881 ★ 1 · May 11, 2017
Cisco Catalyst Remote Code Execution PoC
-
homjxi0e/CVE-2017-3881-Cisco ★ 0 · May 2, 2017
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Cisco IOS 12.2(55)SE11 - Remote Code Execution network/cves/2017/CVE-2017-3881.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 1
- ICSA-17-094-03 Rockwell Automation Allen-Bradley Stratix and Allen-Bradley ArmorStratix CISA ICS & IT advisories · Apr 4, 2017