The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-3118

CVE-2020-3118: Cisco IOS XR RCE Vulnerability

CVE-2020-3118 is a remote code execution flaw in Cisco IOS XR Software that allows adjacent attackers to execute arbitrary code via malicious CDP packets. This post explains its impact, affected versions, and mitigation steps.

Published: March 11, 2026

CVE-2020-3118 Overview

A vulnerability in the Cisco Discovery Protocol (CDP) 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 stems from improper validation of string input from certain fields in Cisco Discovery Protocol messages. An attacker could exploit this vulnerability by sending a malicious CDP packet to an affected device. A successful exploit could allow the attacker to cause a stack overflow, enabling arbitrary code execution with administrative privileges on the affected device.

Critical Impact

This vulnerability allows unauthenticated attackers within the same broadcast domain (Layer 2 adjacent) to achieve full administrative code execution or cause device reloads, potentially disrupting critical network infrastructure. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, indicating confirmed exploitation in the wild.

Affected Products

  • Cisco IOS XR Software (versions 5.2.5, 6.4.2, 6.5.3, 6.6.25, 7.0.1 and related versions)
  • Cisco ASR 9000 Series (including ASR 9000, 9000V, 9001, 9006, 9010, 9901, 9903, 9904, 9906, 9910, 9912, 9920, 9922)
  • Cisco NCS 540 Series (including NCS 540-12Z20G-SYS-A/D, 540-24Z8Q2C-SYS, 540-28Z4C-SYS-A/D, 540-ACC-SYS, 540L)
  • Cisco NCS 540X Series (including NCS 540X-12Z16G-SYS-A/D, 540X-16Z4G8Q2C-A/D, 540X-ACC-SYS)
  • Cisco NCS 5500 Series (including NCS 5501, 5501-SE, 5502, 5502-SE, 5508, 5516)
  • Cisco NCS 560 and NCS 6000 Series (including NCS 6008)
  • Cisco XRv 9000 and CRS-X

Discovery Timeline

  • 2020-02-05 - CVE-2020-3118 published to NVD
  • 2025-10-28 - Last updated in NVD database

Technical Details for CVE-2020-3118

Vulnerability Analysis

This vulnerability affects the Cisco Discovery Protocol implementation in IOS XR Software, enabling remote code execution through a stack overflow condition. Cisco Discovery Protocol is a Layer 2 protocol used for device discovery and neighbor identification in Cisco network environments. The vulnerability arises when the CDP parsing routines process specially crafted protocol messages containing malformed string data.

The attack requires the adversary to be positioned within the same broadcast domain as the target device, meaning they must have Layer 2 adjacency. This constraint limits remote exploitation over the internet but makes the vulnerability particularly dangerous in compromised network segments or environments with insider threats. Once exploitation is successful, the attacker gains administrative-level code execution privileges on the affected device.

The vulnerability has been classified under CWE-134 (Use of Externally-Controlled Format String) and CWE-787 (Out-of-bounds Write), reflecting both the format string manipulation vector and the memory corruption outcome.

Root Cause

The root cause of this vulnerability is improper validation of string input from certain fields within CDP messages. The CDP parsing code fails to adequately validate the length and content of string data before copying it to stack-based buffers. This insufficient input validation allows an attacker to supply oversized or specially crafted strings that overflow the allocated buffer space on the stack.

When the overflow occurs, the attacker can overwrite critical stack data including return addresses and function pointers. By carefully constructing the malicious CDP packet payload, an attacker can redirect program execution to attacker-controlled code, achieving arbitrary code execution with the privileges of the CDP processing daemon.

Attack Vector

The attack is carried out by transmitting malicious Cisco Discovery Protocol packets to vulnerable devices. CDP operates at Layer 2, meaning packets are not routed and exploitation requires the attacker to be within the same broadcast domain as the target. The attack does not require authentication or user interaction, making it particularly dangerous in shared network environments.

Attack scenarios include:

  • An attacker with physical access to the network connecting a rogue device to send malicious CDP frames
  • A compromised endpoint within the network being used to transmit crafted CDP packets
  • An attacker leveraging VLAN hopping or other Layer 2 attacks to reach the target broadcast domain

The exploitation can result in either arbitrary code execution with administrative privileges or a device reload causing denial of service. Given the critical nature of the affected devices (ASR, NCS routers), successful exploitation could have significant impact on network availability and security.

For detailed technical information on the exploitation mechanism, refer to the Packet Storm Exploit Report.

Detection Methods for CVE-2020-3118

Indicators of Compromise

  • Unusual or unexpected CDP packets with abnormally long field values observed on network interfaces
  • Device reloads or crashes without apparent cause, particularly on CDP-enabled interfaces
  • Unexpected processes or administrative sessions on affected Cisco IOS XR devices
  • Anomalous memory consumption or stack-related errors in device logs

Detection Strategies

  • Deploy network intrusion detection systems (NIDS) with signatures for malformed CDP packets
  • Monitor for CDP frames with field lengths exceeding normal specifications
  • Implement packet capture on critical network segments to identify suspicious Layer 2 traffic
  • Review device crash logs and core dumps for evidence of stack overflow conditions

Monitoring Recommendations

  • Enable CDP packet logging and inspection on network monitoring infrastructure
  • Configure SIEM rules to alert on device crashes or unexpected reloads of affected Cisco platforms
  • Monitor CDP neighbor tables for unexpected or unauthorized device entries
  • Implement network segmentation monitoring to detect potential Layer 2 attack vectors

How to Mitigate CVE-2020-3118

Immediate Actions Required

  • Apply Cisco security patches to all affected IOS XR Software installations immediately
  • Disable CDP on interfaces where it is not required to reduce attack surface
  • Implement Layer 2 network segmentation to limit broadcast domain exposure
  • Monitor the CISA Known Exploited Vulnerabilities Catalog for updated guidance

Patch Information

Cisco has released software updates that address this vulnerability. Organizations should consult the Cisco Security Advisory for specific fixed software versions applicable to their deployment. The advisory provides detailed version information and upgrade guidance for all affected platforms.

Workarounds

  • Disable Cisco Discovery Protocol globally or on specific interfaces where it is not operationally required
  • Implement access control lists (ACLs) at Layer 2 to restrict which devices can participate in CDP exchanges
  • Use network access control (NAC) solutions to prevent unauthorized devices from connecting to the network
  • Deploy 802.1X port-based authentication to verify device identity before granting network access
bash
# Disable CDP on a specific interface (IOS XR)
interface GigabitEthernet0/0/0/0
 no cdp

# Disable CDP globally (IOS XR)
cdp
 no cdp

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCisco Ios Xr

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-134

  • CWE-787
  • Technical References
  • Packet Storm Exploit Report

  • CISA Known Exploited Vulnerabilities
  • Vendor Resources
  • Cisco Security Advisory
  • Related CVEs
  • CVE-2026-20118: Cisco IOS XR Software DoS Vulnerability

  • CVE-2026-20074: Cisco IOS XR IS-IS DoS Vulnerability

  • CVE-2026-20046: Cisco IOS XR Privilege Escalation Flaw

  • CVE-2026-20040: Cisco IOS XR Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English