CVE-2018-0171 — Cisco IOS and IOS XE Software Smart Install Remote Code Execution Vulnerability

CVE-2018-0171

Cisco Smart Install — Unauthenticated Pre-Auth RCE Exploited by VPNFilter-Era Attackers Against Network Infrastructure Worldwide

What is Cisco Smart Install?

Smart Install is a legacy Cisco IOS feature built to automate zero-touch provisioning of new switches: a "director" switch pushes configuration and firmware images to client switches joining the network, with no authentication required by design so that a factory-fresh device could bootstrap itself. That same design choice — an unauthenticated management protocol listening on TCP/4786 — has made Smart Install one of the most consequential attack surfaces in Cisco's history, and CVE-2018-0171 is its worst outcome.

Overview

CVE-2018-0171 is a critical remote code execution vulnerability in the Smart Install feature of Cisco IOS and IOS XE Software. An unauthenticated, remote attacker who can reach the Smart Install listening port can send a crafted Smart Install message that triggers a stack-based buffer overflow, allowing the attacker to execute arbitrary code, or at minimum crash and reload the device. Because Smart Install requires no credentials, this is a full pre-authentication compromise path into core network infrastructure.

Technical Details

The root cause (CWE-20, improper input validation) lies in how the Smart Install Client protocol handler parses incoming messages on TCP/4786: certain malformed messages overflow a fixed-size buffer, corrupting adjacent memory in a way that can be leveraged for arbitrary code execution rather than a simple crash. Because Smart Install is unauthenticated by architecture, the only prerequisite for an attacker is network reachability to port 4786 — no valid session, credential, or prior foothold is required, and the attack is a single crafted TCP payload.

Discovery

Smart Install's insecure-by-design exposure had already drawn scrutiny before this specific bug: security researchers at Embedi published detailed analysis of Smart Install protocol weaknesses, and Cisco had issued earlier advisories (including a 2017 warning) about internet-exposed Smart Install instances being scanned and abused. Cisco fixed the underlying buffer overflow as part of its March 2018 IOS/IOS XE security advisory.

Exploitation Context

CVE-2018-0171 became one of the most consequential network-infrastructure vulnerabilities of 2018. Weeks after the patch, US-CERT, the FBI, and the UK's National Cyber Security Centre issued a rare joint technical alert (TA18-106A) warning that Russian state-sponsored actors were actively exploiting Smart Install and related weaknesses to compromise routers, switches, firewalls, and other network infrastructure devices worldwide — targeting government, private-sector, and critical-infrastructure organizations for espionage and to stage further attacks. The same period saw mass internet scans finding hundreds of thousands of Smart Install-exposed devices, and the feature was separately implicated as an entry vector explored around the same time as the VPNFilter malware campaign against SOHO and small-business network equipment. CISA's KEV catalog entry confirms this specific CVE has continued to see exploitation well after initial disclosure, which is why it carries an unusually long remediation runway in BOD 22-01.

Remediation

  1. Disable Smart Install entirely with no vstack on every device that does not require it for active provisioning — Cisco's primary recommendation regardless of patch status.
  2. Apply the Cisco-published fixed IOS/IOS XE software release.
  3. Block TCP/4786 at the network perimeter and between internal segments using access control lists if the feature cannot be immediately disabled.
  4. Audit device configurations and running images for unauthorized changes, which could indicate a Smart Install-based compromise already occurred.
  5. Review TA18-106A's broader guidance on network infrastructure hardening, since Smart Install was one of several protocols (alongside SNMP, Telnet, and others) abused in the same campaign.

Key Details

PropertyValue
CVE ID CVE-2018-0171
Vendor / Product Cisco — IOS and IOS XE
NVD Published2018-03-28
NVD Last Modified2026-01-14
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-20 find similar ↗
CISA KEV Added2021-11-03
CISA KEV Deadline2022-05-03
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-05-03. Apply updates per vendor instructions.

Timeline

DateEvent
2018-03-28Cisco published a security advisory and fixed software addressing the Smart Install RCE vulnerability
2018-04-16US-CERT/CISA, FBI, and UK NCSC issued joint alert TA18-106A on Russian state-sponsored exploitation of Smart Install and related network device vulnerabilities
2021-11-03Added to CISA Known Exploited Vulnerabilities catalog
2022-05-03CISA BOD 22-01 remediation deadline