# CVE-2020-3118: Cisco IOS XR Software Cisco Discovery Protocol Format String Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.0, CNA) `CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2021-11-03; federal due date 2022-05-03
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 11.68% (percentile 97, 2026-11-26)
- **CWE:** CWE-134
- **Published:** 2020-02-05T17:40:16.080Z
- **Modified:** 2026-06-17T03:17:23.013Z

## Who should check

- Anyone running Cisco IOS XR Software \>= unspecified, \< 6.6.3

## Description

A vulnerability in the Cisco Discovery Protocol implementation for Cisco IOS XR Software could allow an unauthenticated, adjacent attacker to execute arbitrary code or cause a reload on an affected device. The vulnerability is due to improper validation of string input from certain fields in Cisco Discovery Protocol messages. An attacker could exploit this vulnerability by sending a malicious Cisco Discovery Protocol packet to an affected device. A successful exploit could allow the attacker to cause a stack overflow, which could allow the attacker to execute arbitrary code with administrative privileges on an affected device. Cisco Discovery Protocol is a Layer 2 protocol. To exploit this vulnerability, an attacker must be in the same broadcast domain as the affected device (Layer 2 adjacent).

## Affected and fixed versions

- Cisco IOS XR Software: \>= unspecified, \< 6.6.3 (cvelist)

## Mitigation

- Upgrade Cisco IOS XR Software to 6.6.3 or later.

## Timeline

- 2020-02-05: Published
- 2021-11-03: Added to CISA KEV (exploited in the wild)
- 2022-05-03: CISA remediation due date for US federal agencies
- 2026-06-17: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-3118. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-3118.md
Affected: Cisco IOS XR Software >= unspecified, < 6.6.3
Fixed in: Cisco IOS XR Software 6.6.3

Steps:
1. Search this machine and project for Cisco IOS XR Software: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-3118 being exploited?

Yes. CISA lists CVE-2020-3118 in its Known Exploited Vulnerabilities catalog since 2021-11-03, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 11.68% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-3118?

High: CVSS 8.8 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2020-3118?

Cisco IOS XR Software \>= unspecified, \< 6.6.3.

### Is there a fix for CVE-2020-3118?

Yes. Fixed in Cisco IOS XR Software 6.6.3. Upgrade Cisco IOS XR Software to 6.6.3 or later.

### How do I check if I'm affected by CVE-2020-3118?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20200205-iosxr-cdp-rce>
- exploit: <http://packetstormsecurity.com/files/156203/Cisco-Discovery-Protocol-CDP-Remote-Device-Takeover.html>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-3118>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-3118>
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2020-3118> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-3118>
