Actively exploited in the wild. This CVE is on the CISA Known Exploited Vulnerabilities list — treat remediation as urgent. Federal remediation due by 24 Mar 2022.
iOSOperating system · Cisco

CVE-2017-12240

CRITICAL · 9.8 CVSS v3.1 Published 2017-09-29
Fix available
A fix is available. Upgrade to after 15.6 or later.
See remediation →
100/100
Remediation priority · Urgent
In the wild Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Buffer overflow vulnerability in Cisco IOS and IOS XE DHCP relay subsystem allows unauthenticated remote attackers to execute arbitrary code or cause device reload by sending crafted DHCPv4 packets. This is a critical pre-authentication remote code execution flaw affecting DHCP relay functionality.

MitigationApply Cisco security patches for affected IOS/IOS XE versions; if patching is not immediately possible, disable DHCP relay feature if not required and implement network access controls to limit DHCP traffic to trusted sources.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
iOSOperating system
Affected:>= 12.2, <= 15.6

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Determine the Cisco iOS version
    Execute the 'show version' command on the device console or via SSH. Locate the version number in the output (typically in the first few lines, shown as something like 'Version 15.2(4)E' or similar).
    Affected if The version falls within the range 12.2 to 15.6 (inclusive)
  2. Verify DHCP relay is configured
    Execute 'show running-config | include ip helper-address' or 'show running-config | include dhcp relay' to check for DHCP relay configuration. Also check 'show ip interface' for helper addresses on relevant interfaces.
    Affected if DHCP relay is enabled (ip helper-address commands are present or 'ip dhcp relay' is configured)
  3. Confirm DHCP functionality is active
    Execute 'show ip dhcp relay statistics' or check if DHCP relay is listed in 'show ip interface' output for any interface.
    Affected if The device is actively functioning as a DHCP relay agent
  4. Identify exposed interfaces
    Review the interface configurations with 'show running-config' and identify which interfaces have 'ip helper-address' configured, as these are the entry points for crafted DHCPv4 packets.
    Affected if Any interface has ip helper-address configured and the iOS version is within the affected range

The device is affected if it runs Cisco iOS versions 12.2 through 15.6 and has DHCP relay (ip helper-address) enabled on any interface.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 15.6
Interim mitigation

Apply Cisco security patches for affected IOS/IOS XE versions; if patching is not immediately possible, disable DHCP relay feature if not required and implement network access controls to limit DHCP traffic to trusted sources.

Recommended fix Moderate confidence

Cisco IOS 16.x or later (specific version depends on hardware platform; consult Cisco IOS version 16.x or 17.x train for your device)

  1. Check Cisco Security Advisory for CVE-2017-12240 at tools.cisco.com or cisco.com/security-center for specific fixed IOS/IOS XE releases
  2. Identify the specific Cisco IOS or IOS XE version currently running on affected devices using 'show version'
  3. Consult Cisco Bug IDs CSCsm45390 and CSCuw77959 in the Cisco Bug Search Tool for patch availability
  4. Upgrade to the Cisco recommended fixed release for your IOS/IOS XE train (16.x or later typically contains the fix)
  5. Verify the upgrade in a lab environment before deploying to production
  6. Apply the upgrade during a maintenance window and have a rollback plan
  7. After upgrade, verify the DHCP relay functionality is operational
Caveat Major IOS upgrades may require configuration review and could introduce new CLI behaviors; ensure compatibility with existing network designs and test thoroughly

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in iOS Exploited in the wild — priority engagement
  • Consultation6.0 h
  • Implementation12.0 h
  • Testing6.0 h
  • Review / QA3.0 h
27.0 hours of engineering $4,800
Get it fixed fast

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,680.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2017-12240 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2017-12240 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data