Security Advisory

CVE-2020-3118: Cisco IOS XR CDP Format String RCE

Last updated:
  • CVE-2020-3118

CVE-2020-3118 is a format string flaw in the Cisco Discovery Protocol (CDP) code of Cisco IOS XR: a crafted CDP packet from an attacker on the same network segment can run code with administrative privileges or reload carrier routers such as the ASR 9000 and NCS series. NVD scores it 8.8 and CISA KEV lists it. Upgrade to 6.6.3 or 7.0.2, or apply Cisco's SMU.

Vulnerability summary

CVSS base score

8.8

High severity

EPSS score (FIRST)

11.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2020-3118 · Source: NVD

Affected components

ComponentCPEVersion range
Cisco IOS XR Software (32-bit and 64-bit) with Cisco Discovery Protocol enabled: ASR 9000, CRS, IOS XRv 9000, NCS 540/560/1000/5000/5500/6000, white box routerscpe:2.3:o:cisco:ios_xr:*:*:*:*:*:*:*:*Cisco: earlier than 6.6 needs an SMU (CSCvr78185), 6.6 fixed in 6.6.3 (white box: 6.6.12 plus SMU), 7.0 fixed in 7.0.2, 7.1 not vulnerable. NVD CPE: 6.6.0 to before 6.6.12, 7.0.0 to before 7.0.2, plus 5.2.5, 6.4.2, 6.5.3, 6.6.25 and 7.0.1

What does this mean for affected devices?

NVD describes CVE-2020-3118 as "improper validation of string input from certain fields in Cisco Discovery Protocol messages" in Cisco IOS XR. A malicious CDP packet can "cause a stack overflow, which could allow the attacker to execute arbitrary code with administrative privileges". CDP is a Layer 2 protocol, so the attacker must be in the same broadcast domain. NVD's Primary score is CVSS v3.1 8.8 (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), with NVD CVSS v2 8.3; Cisco gives 8.8 under CVSS 3.0. NVD classifies it as CWE-787, out-of-bounds write; Cisco and the KEV entry use CWE-134, uncontrolled format string (NVD, CVE record).

Which Cisco routers are affected?

Cisco's advisory cisco-sa-20200205-iosxr-cdp-rce, bug CSCvr09190, lists ASR 9000 Series Aggregation Services Routers, the Carrier Routing System (CRS), IOS XRv 9000, and Network Convergence System 540, 560, 1000, 5000, 5500 and 6000 Series routers, plus third-party white box routers running IOS XR, in each case only with CDP enabled globally and on at least one interface. CDP is off by default in IOS XR; show running-config | include cdp shows whether it is on. The NCS 520, IOS, IOS XE, NX-OS, FXOS and UCS are not affected. Barak Hadad of Armis reported the flaw to Cisco.

How do I fix CVE-2020-3118?

Cisco says there are no workarounds. Upgrade IOS XR 6.6 to 6.6.3 (white box routers: 6.6.12 plus the SMU) and 7.0 to 7.0.2; 7.1 is not vulnerable. Releases earlier than 6.6 need the CSCvr78185 SMU, which Cisco lists for 5.2.5 (NCS 6000), 6.4.2 (ASR 9000, CRS), 6.5.3 (ASR 9000, NCS 540/5000/5500, XRv 9000), 6.6.25 (NCS 560) and 7.0.1 (NCS 540L). Where CDP is not needed, no cdp globally removes the attack vector, and disabling it per interface shrinks it. The bug class, a stack overflow in packet parsing, is covered in how to fix memory corruption in embedded firmware. Other exploited IOS XR flaws: the DVMRP memory exhaustion bugs CVE-2020-3566 and CVE-2020-3569.

Is CVE-2020-3118 exploited?

Yes. Cisco's revision of 2020-10-20 says that in October 2020 its PSIRT "received reports of attempted exploitation of this vulnerability in the wild". CISA added CVE-2020-3118 to the KEV catalog on 2021-11-03 with the action "Apply updates per vendor instructions." (due 2022-05-03; known ransomware campaign use: Unknown); it is still listed as of 2026-11-25 in catalog version 2026.11.24. FIRST EPSS gives 0.11685, the 96.13th percentile, in the 2026-11-24 dataset (FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: Analyzed; CDP in Cisco IOS XR, improper validation of string input, stack overflow, code exec with admin privileges or reload, Layer 2 adjacent; NVD Primary CVSS v3.1 8.8 AV:A, NVD Primary CVSS v2 8.3; Cisco CVSS 3.0 8.8; CWE-787 (NVD), CWE-134 (Cisco); CPE ios_xr 6.6.0-<6.6.12, 7.0.0-<7.0.2, 5.2.5, 6.4.2, 6.5.3, 6.6.25, 7.0.1; read 2026-11-25. — NVD
  • Cisco advisory v1.1 (2020-02-05, rev 2020-10-20): bug CSCvr09190; ASR 9000, CRS, IOS XRv 9000, NCS 540/560/1000/5000/5500/6000, white box routers with CDP enabled globally and on an interface; CDP off by default; NCS 520, FXOS, IOS, IOS XE, NX-OS, UCS not affected; no workarounds, no cdp reduces exposure; fixes <6.6 SMU, 6.6 -> 6.6.3 (white box 6.6.12 + SMU), 7.0 -> 7.0.2, 7.1 not vulnerable; SMU CSCvr78185 list; October 2020 attempted exploitation; credit Barak Hadad of Armis. — Cisco Security Advisory cisco-sa-20200205-iosxr-cdp-rce
  • KEV catalog 2026.11.24: dateAdded 2021-11-03, due 2022-05-03, 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Unknown, CWE-134; checked 2026-11-25. — CISA KEV
  • EPSS 0.11685, percentile 0.96133, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Cisco Security Advisory: Cisco IOS XR Software Cisco Discovery Protocol Format String Vulnerability
  3. Cisco CSAF: cisco-sa-20200205-iosxr-cdp-rce
  4. CVE.org record CVE-2020-3118 (CNA: Cisco)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which Cisco routers does CVE-2020-3118 affect?

ASR 9000, CRS, IOS XRv 9000 and NCS 540, 560, 1000, 5000, 5500 and 6000 Series routers, plus white box routers running Cisco IOS XR, when CDP is enabled globally and on at least one interface. NCS 520 and IOS, IOS XE and NX-OS devices are not affected (per Cisco's advisory).

Which IOS XR releases fix CVE-2020-3118?

6.6.3 for the 6.6 train (white box routers: 6.6.12 plus the SMU) and 7.0.2 for 7.0; 7.1 is not vulnerable. Releases earlier than 6.6 need the CSCvr78185 SMU listed for each platform in Cisco's advisory.

Is there a workaround for CVE-2020-3118?

Cisco says there is no workaround, but routers that do not use CDP can disable it with no cdp in global configuration mode, which closes the attack vector, or per interface to reduce exposure. CDP is disabled by default in IOS XR.

Can CVE-2020-3118 be exploited remotely?

Only from the same broadcast domain. CDP is a Layer 2 protocol, so NVD uses an adjacent attack vector. Cisco received reports of attempted exploitation in October 2020, and CISA added it to KEV on 2021-11-03; it is listed as of 2026-11-25 in catalog version 2026.11.24.