CVE-2017-12240: Cisco IOS and IOS XE Software DHCP Remote Code Execution
Cisco IOS and IOS XE Software · listed in the CISA catalog of actively exploited vulnerabilities since 2022-03-03.
- CVSS v3.1 (CISA ADP)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 14%
- higher than 96.6% of all CVEs
- Added to CISA KEV
- 2022-03-03
- US federal due date 2022-03-24
- Automatable (CISA SSVC)
- yes
- technical impact: total
CVE-2017-12240 explained
CVE-2017-12240 is a buffer overflow in the DHCP relay subsystem of Cisco IOS and IOS XE Software. An unauthenticated, remote attacker who sends a crafted DHCPv4 packet could execute arbitrary code and take full control of the device, or force it to reload. CISA lists it as known to be exploited, so affected network devices need prompt patching.
Impact
An unauthenticated attacker on the network can send a crafted DHCPv4 packet to an affected device. No user interaction is needed. A successful exploit can run arbitrary code and give full control of the device, with high impact on confidentiality, integrity and availability. It can also make the device reload, causing a denial of service. CISA's SSVC assessment rates the issue as automatable with total technical impact, and CISA lists it as known exploited.
Who is affected
The description names Cisco IOS 12.2 through 15.6 and Cisco IOS XE Software. The CVE record lists the affected product only in free text as Cisco IOS and IOS XE, without specific version entries. The CVE record names no fixed version. Check the Cisco advisory and the bug IDs CSCsm45390 and CSCuw77959 to find the fixed release for your platform and train.
Written with AI from the data on this page and checked against it automatically.
Official description
The DHCP relay subsystem of Cisco IOS 12.2 through 15.6 and Cisco IOS XE Software contains a vulnerability that could allow an unauthenticated, remote attacker to execute arbitrary code and gain full control of an affected system. The attacker could also cause an affected system to reload, resulting in a denial of service (DoS) condition.
The vulnerability is due to a buffer overflow condition in the DHCP relay subsystem of the affected software. An attacker could exploit this vulnerability by sending a crafted DHCP Version 4 (DHCPv4) packet to an affected system. A successful exploit could allow the attacker to execute arbitrary code and gain full control of the affected system or cause the affected system to reload, resulting in a DoS condition.
Cisco Bug IDs: CSCsm45390, CSCuw77959.
CISA required action: Apply updates per vendor instructions.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- Cisco IOS and IOS XEAffectedFixed in
- Cisco IOS and IOS XE
not statedVersion statement as published by the CNA (free text).
| Product | Affected | Fixed in |
|---|---|---|
| Cisco IOS and IOS XEVersion statement as published by the CNA (free text). |
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: quickview.cloudapps.cisco.com/quickview/bug/CSCuw77959
- CISA's deadline for US federal agencies: 2022-03-24 (passed) – a useful benchmark for everyone else, too.
What to do
- Identify all Cisco IOS and IOS XE devices and check whether they run the DHCP relay function.
- Apply the fixed software release named in the Cisco advisory for your platform, as CISA's required action states.
- Until patched, limit which hosts and networks can send DHCPv4 traffic to the device's relay interfaces.
- Watch affected devices for unexpected reloads or configuration changes and investigate any signs of compromise.
- Keep device management interfaces off the internet and restricted to trusted administrative networks.
The CVE record names no fixed version, but this does not mean no fix exists. CISA's required action is to apply updates per vendor instructions. Use the Cisco advisory and bug IDs CSCsm45390 and CSCuw77959 to find the fixed release for each device. Until then, restrict DHCPv4 traffic reaching relay interfaces and monitor devices for unexpected reloads.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-20
Questions about CVE-2017-12240
- Is this vulnerability being exploited?
- Yes. CISA added CVE-2017-12240 to its Known Exploited Vulnerabilities catalog on 2022-03-03, with a US federal due date of 2022-03-24. Whether it has been used in ransomware campaigns is listed as unknown.
- Does an attacker need credentials?
- No. The attacker needs no authentication and no user interaction. Sending a crafted DHCPv4 packet over the network to an affected device is enough to trigger the flaw in the DHCP relay subsystem.
- Which versions fix the issue?
- The CVE record does not list fixed versions. Follow the Cisco advisory, referencing bug IDs CSCsm45390 and CSCuw77959, to determine the fixed release for your IOS or IOS XE platform.
Written with AI from the data on this page and checked against it automatically.
References
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.