Security Advisory

CVE-2017-6740: Cisco IOS SNMP Overflow RCE

Last updated:
  • CVE-2017-6740

CVE-2017-6740 is a buffer overflow in the SNMP subsystem of Cisco IOS and IOS XE routers and switches. An attacker who knows the read-only community string, or has SNMPv3 credentials, can reload the device or run code on it with a crafted SNMP packet. NVD scores it 8.8 and CISA KEV lists it as exploited. Upgrade, or exclude the affected MIBs.

Vulnerability summary

CVSS base score

8.8

High severity

EPSS score (FIRST)

11.1%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2017-6740 · Source: NVD

Affected components

ComponentCPEVersion range
Cisco IOS and IOS XE Software with SNMP enabledcpe:2.3:o:cisco:ios:*:*:*:*:*:*:*:*NVD: IOS 12.0-12.4 and 15.0-15.6, IOS XE 2.2.0-3.17; Cisco CSAF: 90 affected products. Fixed release per the Cisco IOS Software Checker

What does this mean for affected devices?

CVE-2017-6740 is one of nine buffer overflows in the SNMP subsystem of Cisco IOS and IOS XE that Cisco published together on 2017-06-29. A crafted SNMP packet sent over IPv4 or IPv6 to the device itself can make it reload or let the attacker "execute arbitrary code and obtain full control of the affected system". The attacker needs the SNMP read-only community string (SNMP v1 or v2c) or SNMPv3 user credentials. NVD scores it 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), NVD CVSS v2 9.0, with CWE-119; Cisco, the CNA, also scores 8.8 under CVSS v3.0 (NVD, CVE record). NVD's configuration covers IOS 12.0 through 12.4 and 15.0 through 15.6, and IOS XE 2.2.0 through 3.17.

Which Cisco devices are affected?

Cisco's advisory cisco-sa-20170629-snmp covers routers and switches running a vulnerable IOS or IOS XE release with any SNMP version enabled: "All devices that have enabled SNMP and have not explicitly excluded the affected MIBs or OIDs should be considered vulnerable." The affected MIBs, such as ADSL-LINE-MIB, CISCO-AUTH-FRAMEWORK-MIB, CISCO-BSTUN-MIB and TN3270E-RT-MIB, are enabled by default whenever SNMP is on, and show snmp mib does not list all of them. Cisco's CSAF lists 90 affected products for this CVE, tracked as Cisco bug CSCve66601 (Cisco CSAF).

How do I fix CVE-2017-6740?

Upgrade to the first fixed release that the Cisco IOS Software Checker returns for your image. Until you can, Cisco's workaround is to give SNMP access only to trusted users, check show snmp host, and exclude the full list of affected MIBs with an snmp-server view applied to every community and SNMPv3 group; advisory revision 1.11 of 2025-07-30 added a MIB to that list, so recheck views built earlier. A failed or successful attempt reloads the device and writes a crashinfo file that Cisco TAC can review. Keep SNMP off internet-facing interfaces, as in our CISA BOD 23-02 management interface guide; the SNMP agent guide and how to fix memory corruption in embedded firmware cover the agent and the bug class.

Is CVE-2017-6740 exploited?

Yes. Cisco states that a researcher published functional exploit code for these bugs on 2017-01-06 and that its PSIRT is aware of exploitation of CVE-2017-6740 and seven sibling CVEs, among them CVE-2017-6742, and CVE-2017-6739. CISA added CVE-2017-6740 to the KEV catalog on 2022-03-03 with the action "Apply updates per vendor instructions." (due 2022-03-24; known ransomware campaign use: Unknown); it is still listed as of 2026-11-25 in catalog version 2026.11.24. FIRST EPSS gives 0.111, the 96.00th percentile, in the 2026-11-24 dataset (FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: Analyzed; SNMP buffer overflow, SNMP v1/v2c/v3, read-only community or SNMPv3 credentials; NVD Primary CVSS v3.1 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, NVD Primary CVSS v2 9.0; Cisco Secondary CVSS v3.0 8.8; CWE-119; CPE ios 12.0-12.4, 15.0-15.6, ios_xe 2.2.0-3.17; published 2017-07-17; read 2026-11-25. — NVD
  • Cisco advisory v1.11 (2025-07-30): nine SNMP CVEs; IOS and IOS XE; all SNMP versions; devices with SNMP enabled and affected MIBs not excluded are vulnerable; MIBs on by default, not all shown by show snmp mib; workaround: trusted users only, show snmp host, exclude MIBs via snmp-server view; v1.11 added a MIB; crashinfo file; exploit code published 2017-01-06; PSIRT aware of exploitation of CVE-2017-6736 to -6740, -6742, -6743, -6744. — Cisco Security Advisory cisco-sa-20170629-snmp
  • Cisco CSAF 1.11.0: CVE-2017-6740 bug(s) CSCve66601, 90 known-affected products, CVSS 3.0 8.8. — Cisco CSAF
  • KEV catalog 2026.11.24: dateAdded 2022-03-03, due 2022-03-24, 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Unknown, CWE-119; checked 2026-11-25. — CISA KEV
  • EPSS 0.111, percentile 0.95998, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Cisco Security Advisory: SNMP Remote Code Execution Vulnerabilities in Cisco IOS and IOS XE Software
  3. Cisco CSAF: cisco-sa-20170629-snmp
  4. CVE.org record CVE-2017-6740 (CNA: Cisco)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

What does an attacker need to exploit CVE-2017-6740?

Network reach to the device's SNMP service and either the SNMP read-only community string (SNMP v1 or v2c) or valid SNMPv3 user credentials. Only packets addressed to the device itself can trigger the overflow, not traffic passing through it (per Cisco's advisory and NVD).

Is there a workaround for CVE-2017-6740?

Yes. Cisco advises allowing SNMP only from trusted users and excluding every affected MIB with an snmp-server view applied to each community and SNMPv3 group. Cisco added one more MIB to the list on 2025-07-30, so older views need a recheck. The lasting fix is an upgrade to a fixed IOS or IOS XE release.

Is CVE-2017-6740 exploited in the wild?

Yes. Cisco's PSIRT says it is aware of exploitation of CVE-2017-6740, and CISA KEV has listed it since 2022-03-03. FIRST EPSS gives 0.111 (96.00th percentile) in the 2026-11-24 dataset, as of 2026-11-25.

Which Cisco release fixes CVE-2017-6740?

Cisco does not print a single fixed version in the advisory; it points to the Cisco IOS Software Checker, which returns the first fixed release for the exact IOS or IOS XE image you run (taken from show version). The same fix covers all nine SNMP CVEs in cisco-sa-20170629-snmp.