CVE-2017-6740: Cisco IOS and IOS XE Software SNMP Remote Code Execution Vulnerability

Published Jul 17, 2017
·
Updated

The Simple Network Management Protocol (SNMP) subsystem of Cisco IOS 12.0 through 12.4 and 15.0 through 15.6 and IOS XE 2.2 through 3.17 contains multiple vulnerabilities that could allow an authenticated, remote attacker to remotely execute code on an affected system or cause an affected system to reload. An attacker could exploit these vulnerabilities by sending a crafted SNMP packet to an affected system via IPv4 or IPv6. Only traffic directed to an affected system can be used to exploit these vulnerabilities. The vulnerabilities are due to a buffer overflow condition in the SNMP subsystem of the affected software. The vulnerabilities affect all versions of SNMP: Versions 1, 2c, and 3. To exploit these vulnerabilities via SNMP Version 2c or earlier, the attacker must know the SNMP read-only community string for the affected system. To exploit these vulnerabilities via SNMP Version 3, the attacker must have user credentials for the affected system. All devices that have enabled SNMP and have not explicitly excluded the affected MIBs or OIDs should be considered vulnerable. Cisco Bug IDs: CSCve66601.

Other sources

The Simple Network Management Protocol (SNMP) subsystem of Cisco IOS and IOS XE contains a vulnerability that could allow an authenticated, remote attacker to remotely execute code on an affected system or cause an affected system to reload.

CISA

The Simple Network Management Protocol (SNMP) subsystem of Cisco IOS and IOS XE Software contains multiple vulnerabilities that could allow an authenticated, remote attacker to remotely execute code on an affected system or cause an affected system to reload. An attacker could exploit these vulnerabilities by sending a crafted SNMP packet to an affected system via IPv4 or IPv6. Only traffic directed to an affected system can be used to exploit these vulnerabilities. The vulnerabilities are due to a buffer overflow condition in the SNMP subsystem of the affected software. The vulnerabilities affect all versions of SNMP - Versions 1, 2c, and 3. To exploit these vulnerabilities via SNMP Version 2c or earlier, the attacker must know the SNMP read-only community string for the affected system. To exploit these vulnerabilities via SNMP Version 3, the attacker must have user credentials for the affected system. A successful exploit could allow the attacker to execute arbitrary code and obtain full control of the affected system or cause the affected system to reload. Customers are advised to apply the workaround as contained in the Workarounds section below. Fixed software information is available via the Cisco IOS Software Checker. All devices that have enabled SNMP and have not explicitly excluded the affected MIBs or OIDs should be considered vulnerable. There are workarounds that address these vulnerabilities.

NVD

Affected Software

110 affected components
cisco IOS=12.1\(13\)e3
cisco IOS=12.1\(13\)e4
cisco IOS=12.1\(13\)e5
cisco IOS=12.1\(13\)e6
cisco IOS=12.1\(13\)e7
cisco IOS=12.1\(13\)e8
cisco IOS=12.1\(13\)e9
cisco IOS=12.1\(13\)e10
cisco IOS=12.1\(13\)e11
cisco IOS=12.1\(13\)e12
cisco IOS=12.1\(13\)e13
cisco IOS=12.1\(13\)e14
cisco IOS=12.1\(13\)e15
cisco IOS=12.1\(13\)e16
cisco IOS=12.1\(13\)e17
cisco IOS=12.1\(19\)e
cisco IOS=12.1\(19\)e1
cisco IOS=12.1\(20\)e
cisco IOS=12.1\(20\)e1
cisco IOS=12.1\(20\)e3
cisco IOS=12.1\(20\)e4
cisco IOS=12.1\(20\)e6
cisco IOS=12.1\(22\)e
cisco IOS=12.1\(22\)e1
cisco IOS=12.1\(22\)e2
cisco IOS=12.1\(22\)e3
cisco IOS=12.1\(22\)e4
cisco IOS=12.1\(22\)e5
cisco IOS=12.1\(22\)e6
cisco IOS=12.1\(23\)e
cisco IOS=12.1\(23\)e1
cisco IOS=12.1\(23\)e2
cisco IOS=12.1\(23\)e3
cisco IOS=12.1\(23\)e4
cisco IOS=12.1\(26\)e
cisco IOS=12.1\(26\)e1
cisco IOS=12.1\(26\)e2
cisco IOS=12.1\(26\)e3
cisco IOS=12.1\(26\)e4
cisco IOS=12.1\(26\)e5
cisco IOS=12.1\(26\)e6
cisco IOS=12.1\(26\)e7
cisco IOS=12.1\(26\)e8
cisco IOS=12.1\(26\)e9
cisco IOS=12.1\(27b\)e
cisco IOS=12.1\(27b\)e1
cisco IOS=12.1\(27b\)e2
cisco IOS=12.1\(27b\)e3
cisco IOS=12.1\(27b\)e4
cisco IOS=12.2\(14\)za
cisco IOS=12.2\(14\)za2
cisco IOS=12.2\(14\)za3
cisco IOS=12.2\(14\)za4
cisco IOS=12.2\(14\)za5
cisco IOS=12.2\(14\)za6
cisco IOS=12.2\(14\)za7
cisco IOS=12.2\(17a\)sx1
cisco IOS=12.2\(17a\)sx2
cisco IOS=12.2\(17a\)sx4
cisco IOS=12.2\(17b\)sxa2
cisco IOS=12.2\(17d\)sxb1
cisco IOS=12.2\(17d\)sxb2
cisco IOS=12.2\(17d\)sxb3
cisco IOS=12.2\(17d\)sxb4
cisco IOS=12.2\(17d\)sxb5
cisco IOS=12.2\(17d\)sxb6
cisco IOS=12.2\(17d\)sxb7
cisco IOS=12.2\(17d\)sxb8
cisco IOS=12.2\(17d\)sxb9
cisco IOS=12.2\(17d\)sxb10
cisco IOS=12.2\(17d\)sxb11
cisco IOS=12.2\(17d\)sxb11a
cisco IOS=12.2\(18\)s
cisco IOS=12.2\(18\)s1
cisco IOS=12.2\(18\)s2
cisco IOS=12.2\(18\)s3
cisco IOS=12.2\(18\)s4
cisco IOS=12.2\(18\)s8
cisco IOS=12.2\(18\)s9
cisco IOS=12.2\(18\)s10
cisco IOS=12.2\(18\)s11
cisco IOS=12.2\(18\)s12
cisco IOS=12.2\(18\)s13
cisco IOS=12.2\(18\)sxd1
cisco IOS=12.2\(18\)sxf
cisco IOS=12.2\(18\)sxf2
cisco IOS=12.2\(18\)sxf3
cisco IOS=12.2\(18\)sxf4
cisco IOS=12.2\(18\)sxf5
cisco IOS=12.2\(18\)sxf6
cisco IOS=12.2\(18\)sxf7
cisco IOS=12.2\(18\)sxf8
cisco IOS=12.2\(18\)sxf9
cisco IOS=12.2\(18\)sxf10
cisco IOS=12.2\(18\)sxf10a
cisco IOS=12.2\(18\)sxf11
cisco IOS=12.2\(18\)sxf12
cisco IOS=12.2\(18\)sxf12a
cisco IOS=12.2\(18\)sxf13
cisco IOS=12.2\(18\)sxf14
cisco IOS=12.2\(18\)sxf15
cisco IOS=12.2\(18\)sxf15a
cisco IOS=12.2\(18\)sxf16
cisco IOS=12.2\(18\)sxf17
cisco IOS=12.2\(18\)sxf17a
cisco IOS=12.2\(18\)sxf17b
cisco IOS>=12.0<=12.4
cisco IOS>=15.0<=15.6
Cisco IOS XE>=2.2.0<=3.17
cisco IOS and IOS XE Software

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Disable SNMP on Cisco IOS devices where SNMP is not required (turn off the SNMP service).

    Cisco IOS SNMP SNMP enabled = false
  2. Configuration

    Configure SNMP to explicitly exclude the affected MIBs or OIDs so those MIBs/OIDs are not accessible via SNMP.

    Cisco IOS SNMP excluded MIBs/OIDs = exclude affected MIBs/OIDs
  3. Compensating control

    Restrict SNMP access to trusted management hosts only — apply ACLs or firewall rules to permit SNMP (UDP 161/162) only from trusted IP addresses and block SNMP from untrusted networks.

  4. Operational

    Change SNMP read-only community strings (and other community strings as appropriate) to new, strong values and rotate SNMPv3 user credentials and keys to reduce the risk from credential knowledge.

Event History

Jul 17, 2017
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:29 PM
DescriptionSeverityWeaknessAffected Software
Mar 3, 2022
Known Exploited
via CISA·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-6740?

CVE-2017-6740 is rated as critical due to the potential for remote code execution.

2

How do I fix CVE-2017-6740?

To fix CVE-2017-6740, upgrade to a Cisco IOS version that is not affected, as specified in the security advisory.

3

Are all Cisco IOS versions vulnerable to CVE-2017-6740?

No, only certain versions of Cisco IOS and IOS XE from 12.0 to 15.6 are affected by CVE-2017-6740.

4

Can an unauthenticated attacker exploit CVE-2017-6740?

No, an attacker must be authenticated to exploit CVE-2017-6740.

5

What type of vulnerability is CVE-2017-6740?

CVE-2017-6740 is classified as a remote code execution vulnerability in the SNMP subsystem.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203