What is IKEv1 in Cisco IOS/IOS XE?
Internet Key Exchange version 1 (IKEv1) is the protocol used to negotiate and establish the security associations that underpin IPsec VPN tunnels. Any Cisco router or switch configured as a VPN endpoint runs an IKEv1 (or IKEv2) negotiation process reachable on UDP/500, making the correctness of that parsing code directly relevant to the availability of every VPN tunnel the device serves.
Overview
CVE-2018-0158 is a high-severity denial-of-service vulnerability caused by a memory leak in the IKEv1 implementation of Cisco IOS and IOS XE Software. An unauthenticated, remote attacker can send a stream of crafted IKEv1 packets to a VPN-terminating interface, causing the device to progressively leak memory until resources are exhausted and the device reloads, disrupting all VPN and non-VPN traffic it handles.
Technical Details
The vulnerability is classified under CWE-20 (improper input validation): malformed or unexpected content in received IKEv1 negotiation packets is not properly rejected or freed, causing allocated memory associated with each negotiation attempt to accumulate rather than being released. Because IKEv1 negotiation begins before any peer authentication is completed, an attacker needs no valid credentials or pre-shared key — only the ability to send UDP/500 traffic to the target interface, repeated over time to exhaust available memory. The Scope: Changed rating on the CVSS vector reflects that the resulting memory exhaustion can affect the device beyond the VPN subsystem itself.
Discovery
Cisco identified and fixed this issue internally as part of its March 2018 semiannual IOS/IOS XE security advisory bundle, alongside a companion IKEv1 crash vulnerability (CVE-2018-0159).
Exploitation Context
CISA's KEV catalog listing confirms this vulnerability has been used in real-world attacks. IKEv1/IKEv2 parsing flaws in VPN-terminating network gear have historically drawn sustained interest from both criminal DDoS-for-hire operators and more sophisticated actors, since disrupting a site's VPN connectivity can serve as either a standalone denial-of-service goal or a distraction while other intrusion activity occurs elsewhere on the network.
Remediation
- Identify Cisco IOS/IOS XE devices configured as IKEv1 VPN endpoints and confirm their current software version.
- Apply the Cisco-published fixed software release from the corresponding security advisory.
- Restrict which external hosts can reach UDP/500 on VPN-terminating interfaces using infrastructure ACLs where feasible.
- Monitor device memory utilization and reload history for signs of an ongoing memory-leak attack.
- Where practical, migrate legacy IKEv1 configurations to IKEv2, which has undergone more recent security scrutiny.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2018-0158 |
| Vendor / Product | Cisco — IOS Software and Cisco IOS XE Software |
| NVD Published | 2018-03-28 |
| NVD Last Modified | 2026-01-14 |
| CVSS 3.1 Score | 8.6 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H |
| Severity | HIGH |
| CWE | CWE-20 find similar ↗ |
| CISA KEV Added | 2022-03-03 |
| CISA KEV Deadline | 2022-03-17 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2018-03-28 | Cisco published a security advisory as part of its semiannual IOS/IOS XE bundle and released fixed software |
| 2022-03-03 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-03-17 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2018-0158 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |