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

Exploited in the wild High 8.8 Published Updated

An adjacent attacker can execute arbitrary code with administrative privileges on Cisco IOS XR devices by sending malicious CDP packets.

Exploited in the wild
Since 3 Nov 2021
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2020-3118?

CVE-2020-3118 is a high-severity memory corruption vulnerability in Cisco Ios Xr, published on 5 Feb 2020. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-787, CWE-134

Which versions are affected by CVE-2020-3118?

It affects 1 product.

Products include Cisco Ios Xr.

How do I fix CVE-2020-3118?

No fix has been published for CVE-2020-3118 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-3118 being exploited?

Yes. Attackers have exploited CVE-2020-3118 in the wild since at least 3 Nov 2021.

All Cisco Ios Xr vulnerabilities

Sources

Also known as GHSA-f7vj-6cqm-9xgc.

Is CVE-2020-3118 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free