Security Resilience

CVE-2020-3118

Memory Safety in Cisco Ios Xr 6.6.0 – 6.6.12

CISA KEVActive ExploitationEUVD ExploitedPublic PoCMemory Safety
Published
05 February 2020
Modified
28 October 2025
KEV Added
03 November 2021
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.12 96th percentile
Risk Priority 90 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2020-3118 is a high-severity Use of Externally-Controlled Format String (CWE-134) vulnerability in Cisco Ios Xr. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 4% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

A vulnerability in the Cisco Discovery Protocol implementation within Cisco IOS XR Software stems from improper validation of string input in certain CDP message fields. This flaw, tracked under CWE-134 and CWE-787, can trigger a stack overflow when processing crafted packets. The affected component is the Layer 2 CDP handler on IOS XR devices, which runs with elevated privileges.

An unauthenticated attacker positioned on the same broadcast domain can exploit the issue by transmitting a single malicious CDP packet to an adjacent device. Successful exploitation yields arbitrary code execution with administrative rights or triggers a device reload, corresponding to the CVSS 8.8 vector AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

The Cisco Security Advisory cisco-sa-20200205-iosxr-cdp-rce details the flaw and available fixes, while the CISA Known Exploited Vulnerabilities catalog lists CVE-2020-3118 as actively used in the wild. Public exploit code has also appeared on Packet Storm.

EU & UK References

Vulnerability Data

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…

more

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).

CWE(s)
KEV Date Added
03 November 2021

Related Threats

Threat-Actor AttributionAI

Microsoft Corp. (Salesforce / Slack engineer recruitment claims)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
APT1 (G0006)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
Deep Panda (G0009)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
APT3 (G0022)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
Winnti Group (G0044)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
menuPass (G0045)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
Leviathan (G0065)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
APT19 (G0073)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
APT41 (G0096)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
AnonOps
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1189 Drive-by Compromise Initial Access
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-20109Same vendor: Ciscoboth on KEV
CVE-2018-0171Same vendor: Ciscoboth on KEV
CVE-2022-20700Same vendor: Ciscoboth on KEV
CVE-2022-20701Same vendor: Ciscoboth on KEV
CVE-2018-0172Same vendor: Ciscoboth on KEV
CVE-2024-20375Same vendor: Cisco
CVE-2024-20499Same vendor: Cisco
CVE-2024-20357Same vendor: Cisco
CVE-2023-20213Same vendor: Cisco
CVE-2024-20501Same vendor: Cisco

Affected Assets

cisco
ios xr
5.2.5, 6.4.2, 6.5.3, 6.6.25, 7.0.1 · 6.6.0 — 6.6.12 · 7.0.0 — 7.0.2

Mitigating Controls

Likely Mitigating Controls

Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-787

Out-of-bounds writes that corrupt control flow or inject shellcode are rendered non-executable by the same memory protections.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent external format strings via code review, static analysis, and safe APIs.

ID.RA-01 partial match
blocks

Vulnerability identification can discover existing format-string flaws but does not prevent their introduction.

PR.PS-02 partial match
blocks

Patching or replacing vulnerable software directly eliminates known instances of this coding weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development can detect format-string vulnerabilities before release.

prevents

Training developers about format string risks prevents some instances where the defect arises from a knowledge gap (e.g., writing printf(input) instead of printf("%s", input)), but the practice is fallible and a different control (A.8.29 security testing) carries the stronger effect, matching the A.8.28 -> CWE-502 and A.8.28 -> CWE-79 anchors.

prevents

Secure coding standards directly forbid the use of untrusted format strings and prescribe safe alternatives.

prevents

A.8.30's contractual requirement for secure design, coding and testing practices (item b, referencing 8.25–8.29) reaches the implementation defect that introduces CWE-134, but the mechanism is requiring a practice through contract — fallible, like A.8.28's grade of `partial` on CWE-502 and CWE-79 — so it moves a minority of instances rather than the bulk.

finds

A.8.8's reach is DISCLOSURE — it finds vulnerabilities via published advisories and component inventory. CWE-134 is a first-party code defect whose High-rated detection methods (source code analysis) belong to A.8.29, not A.8.8. A.8.8 finds format string bugs only where they appear as published CVEs in third-party components, which is a minority of instances, matching the A.8.8 -> CWE-89 anchor.

References