{"schemaVersion":3,"id":"CVE-2020-3118","aliases":[],"status":"published","duplicateOf":null,"title":"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).","dates":{"published":"2020-02-05T17:40:16.080Z","modified":"2025-10-21T23:35:52.708Z","reserved":null,"kevAdded":["2021-11-03T00:00:00.000Z"],"kevDue":["2022-05-03T00:00:00.000Z"]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":8.3,"severity":"high","vector":"AV:A/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.11685,"percentile":0.96029,"severity":"medium","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.11685},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.11685,"percentile":0.96029}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.11685,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.11685,"percentile":0.96029}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2021-11-03T00:00:00.000Z","dueDate":"2022-05-03T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Cisco IOS XR Software Discovery Protocol Format String Vulnerability","description":"Cisco IOS XR improperly validates string input from certain fields in Cisco Discovery Protocol messages. Exploitation could allow an unauthenticated, adjacent attacker to execute code with administrative privileges or cause a reload on an affected device.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2020-3118","label":"nvd.nist.gov/vuln/detail/CVE-2020-3118"}],"vendor":"Cisco","product":"IOS XR","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2021-11-03T00:00:00.000Z","dueDate":"2022-05-03T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Cisco IOS XR Software Discovery Protocol Format String Vulnerability","description":"Cisco IOS XR improperly validates string input from certain fields in Cisco Discovery Protocol messages. Exploitation could allow an unauthenticated, adjacent attacker to execute code with administrative privileges or cause a reload on an affected device.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2020-3118","label":"nvd.nist.gov/vuln/detail/CVE-2020-3118"}],"vendor":"Cisco","product":"IOS XR","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-134","name":"Use of Externally-Controlled Format String","description":"The product uses a function that accepts a format string as an argument, but the format string originates from an external source.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/134.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"cisco","product":"cisco ios xr software","name":"Cisco IOS XR Software","label":"cisco ios xr software","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 6.6.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 6.6.3","eol":null,"hubHref":"/vendor/cisco/cisco_ios_xr_software"},{"vendor":"cisco","product":"ios_xr","name":"ios xr","label":"ios_xr","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"≥ 6.6.0, < 6.6.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0.0, < 7.0.2","noFixRecorded":false,"fixedIn":null},{"text":"6.5.3","noFixRecorded":false,"fixedIn":null},{"text":"5.2.5","noFixRecorded":false,"fixedIn":null},{"text":"6.4.2","noFixRecorded":false,"fixedIn":null},{"text":"6.6.25","noFixRecorded":false,"fixedIn":null},{"text":"7.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.6.0, < 6.6.12 | ≥ 7.0.0, < 7.0.2 | 6.5.3 | 5.2.5 | 6.4.2 | 6.6.25 | 7.0.1","eol":null,"hubHref":"/vendor/cisco/ios_xr"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20200205-iosxr-cdp-rce","label":"tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20200205-iosxr-cdp-rce","hostname":"tools.cisco.com","tags":["Vendor Advisory","X Refsource CISCO"]},{"url":"http://packetstormsecurity.com/files/156203/Cisco-Discovery-Protocol-CDP-Remote-Device-Takeover.html","label":"packetstormsecurity.com/files/156203/Cisco-Discovery-Protocol-CDP-Remote-Device-Takeover.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Third Party Advisory","VDB Entry"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-3118","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-3118","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-02-05T17:40:16.080Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2021-11-03T00:00:00.000Z","label":"Added to CISA KEV","detail":"Cisco IOS XR Software Discovery Protocol Format String Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2022-05-03T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:35:52.708Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T02:04:07.457Z","stale":false,"partial":false}}