CVE-2020-3118
Cisco IOS XR Software Discovery Protocol Format String Vulnerability
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).
Description as published by the source, in English.
Key facts
- Published
- 2020-02-05
- Last modified
- 2026-06-17
- Assigned by
- psirt@cisco.com
- CVSS vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
11.7 %
higher than 96 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2021-11-03, with a remediation deadline of 2022-05-03 for US federal agencies.
Required action: Apply updates per vendor instructions.
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Cisco | Asr 9000 | all versions listed | Not affected |
| Cisco | Asr 9000v | all versions listed | Not affected |
| Cisco | Asr 9001 | all versions listed | Not affected |
| Cisco | Asr 9006 | all versions listed | Not affected |
| Cisco | Asr 9010 | all versions listed | Not affected |
| Cisco | Asr 9901 | all versions listed | Not affected |
| Cisco | Asr 9903 | all versions listed | Not affected |
| Cisco | Asr 9904 | all versions listed | Not affected |
| Cisco | Asr 9906 | all versions listed | Not affected |
| Cisco | Asr 9910 | all versions listed | Not affected |
| Cisco | Asr 9912 | all versions listed | Not affected |
| Cisco | Asr 9920 | all versions listed | Not affected |
| Cisco | Asr 9922 | all versions listed | Not affected |
| Cisco | Crs-x | all versions listed | Not affected |
| Cisco | Ios Xr | 5.2.5 | Affected |
| Cisco | Ios Xr | 6.4.2 | Affected |
| Cisco | Ios Xr | 6.5.3 | Affected |
| Cisco | Ios Xr | 6.6.25 | Affected |
| Cisco | Ios Xr | 7.0.1 | Affected |
| Cisco | Ios Xr | ≥ 6.6.0, < 6.6.12 | Affected |
| Cisco | Ios Xr | ≥ 7.0.0, < 7.0.2 | Affected |
| Cisco | Ncs 540-12z20g-sys-a | all versions listed | Not affected |
| Cisco | Ncs 540-12z20g-sys-d | all versions listed | Not affected |
| Cisco | Ncs 540-24z8q2c-sys | all versions listed | Not affected |
| Cisco | Ncs 540-28z4c-sys-a | all versions listed | Not affected |
| Cisco | Ncs 540-28z4c-sys-d | all versions listed | Not affected |
| Cisco | Ncs 540-acc-sys | all versions listed | Not affected |
| Cisco | Ncs 540l | all versions listed | Not affected |
| Cisco | Ncs 540x-12z16g-sys-a | all versions listed | Not affected |
| Cisco | Ncs 540x-12z16g-sys-d | all versions listed | Not affected |
| Cisco | Ncs 540x-16z4g8q2c-a | all versions listed | Not affected |
| Cisco | Ncs 540x-16z4g8q2c-d | all versions listed | Not affected |
| Cisco | Ncs 540x-acc-sys | all versions listed | Not affected |
| Cisco | Ncs 5501 | all versions listed | Not affected |
| Cisco | Ncs 5501-se | all versions listed | Not affected |
| Cisco | Ncs 5502 | all versions listed | Not affected |
| Cisco | Ncs 5502-se | all versions listed | Not affected |
| Cisco | Ncs 5508 | all versions listed | Not affected |
| Cisco | Ncs 5516 | all versions listed | Not affected |
| Cisco | Ncs 560 | all versions listed | Not affected |
| Cisco | Ncs 6000 | all versions listed | Not affected |
| Cisco | Ncs 6008 | all versions listed | Not affected |
| Cisco | Xrv 9000 | all versions listed | Not affected |
Weakness type
-
CWE-787: Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
-
CWE-134: Use of Externally-Controlled Format String
The product uses a function that accepts a format string as an argument, but the format string originates from an external source.
References
- http://packetstormsecurity.com/files/156203/Cisco-Discovery-Protocol-CDP-Remote-Device-Ta…
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20200205-i…
- http://packetstormsecurity.com/files/156203/Cisco-Discovery-Protocol-CDP-Remote-Device-Ta…
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20200205-i…
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-3118
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.