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

Published Jul 17, 2017
·
Updated

A vulnerability in the SNMP implementation of could allow an authenticated, remote attacker to cause a reload of the affected system or to remotely execute code. An attacker could exploit this vulnerability by sending a crafted SNMP packet to the affected device.  The vulnerability is due to a buffer overflow in the affected code area. The vulnerability affects all versions of SNMP (versions 1, 2c, and 3). The attacker must know the SNMP read only community string (SNMP version 2c or earlier) or the user credentials (SNMPv3). An exploit could allow the attacker to execute arbitrary code and obtain full control of the system or to cause a reload of the affected system. Only traffic directed to the affected system can be used to exploit this vulnerability.

Other sources

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: CSCve54313.

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

Affected Software

105 affected components
cisco IOS>=12.0<=12.4
cisco IOS>=15.0<=15.6
Cisco IOS XE>=2.2.0<=3.17
Cisco IOS XE=2.2.0
Cisco IOS XE=2.2.1
Cisco IOS XE=2.2.2
Cisco IOS XE=2.2.3
Cisco IOS XE=2.3.0
Cisco IOS XE=2.3.1
Cisco IOS XE=2.3.1t
Cisco IOS XE=2.3.2
Cisco IOS XE=2.4.0
Cisco IOS XE=2.4.1
Cisco IOS XE=2.4.2
Cisco IOS XE=2.4.3
Cisco IOS XE=2.5.0
Cisco IOS XE=2.5.1
Cisco IOS XE=2.6.0
Cisco IOS XE=2.6.1
Cisco IOS XE=3.1.0s
Cisco IOS XE=3.1.1s
Cisco IOS XE=3.1.2s
Cisco IOS XE=3.1.3as
Cisco IOS XE=3.1.4s
Cisco IOS XE=3.2.0s
Cisco IOS XE=3.2.1s
Cisco IOS XE=3.2.2s
Cisco IOS XE=3.3.0s
Cisco IOS XE=3.3.0se
Cisco IOS XE=3.3.1s
Cisco IOS XE=3.3.2s
Cisco IOS XE=3.4.0as
Cisco IOS XE=3.4.0s
Cisco IOS XE=3.4.1s
Cisco IOS XE=3.4.2s
Cisco IOS XE=3.4.3s
Cisco IOS XE=3.4.4s
Cisco IOS XE=3.4.5s
Cisco IOS XE=3.4.6s
Cisco IOS XE=3.5.0s
Cisco IOS XE=3.5.1s
Cisco IOS XE=3.5.2s
Cisco IOS XE=3.6.0s
Cisco IOS XE=3.6.1s
Cisco IOS XE=3.6.2s
Cisco IOS XE=3.7.0s
Cisco IOS XE=3.7.1s
Cisco IOS XE=3.7.2s
Cisco IOS XE=3.7.3s
Cisco IOS XE=3.7.4as
Cisco IOS XE=3.7.4s
Cisco IOS XE=3.7.5s
Cisco IOS XE=3.7.6s
Cisco IOS XE=3.7.7s
Cisco IOS XE=3.8.0ex
Cisco IOS XE=3.8.0s
Cisco IOS XE=3.8.1s
Cisco IOS XE=3.8.2s
Cisco IOS XE=3.9.0s
Cisco IOS XE=3.9.1s
Cisco IOS XE=3.9.2s
Cisco IOS XE=3.10.0s
Cisco IOS XE=3.10.1s
Cisco IOS XE=3.10.2s
Cisco IOS XE=3.10.3s
Cisco IOS XE=3.10.4s
Cisco IOS XE=3.10.5s
Cisco IOS XE=3.10.6s
Cisco IOS XE=3.10.7s
Cisco IOS XE=3.10.8as
Cisco IOS XE=3.10.8s
Cisco IOS XE=3.11.0s
Cisco IOS XE=3.11.2s
Cisco IOS XE=3.11.3s
Cisco IOS XE=3.11.4s
Cisco IOS XE=3.12.0s
Cisco IOS XE=3.12.1s
Cisco IOS XE=3.12.2s
Cisco IOS XE=3.12.3s
Cisco IOS XE=3.12.4s
Cisco IOS XE=3.13.0s
Cisco IOS XE=3.13.1s
Cisco IOS XE=3.13.2s
Cisco IOS XE=3.13.4s
Cisco IOS XE=3.13.5s
Cisco IOS XE=3.13.6as
Cisco IOS XE=3.13.6s
Cisco IOS XE=3.14.0s
Cisco IOS XE=3.14.1s
Cisco IOS XE=3.14.2s
Cisco IOS XE=3.14.3s
Cisco IOS XE=3.14.4s
Cisco IOS XE=3.15.0s
Cisco IOS XE=3.15.1s
Cisco IOS XE=3.15.2s
Cisco IOS XE=3.15.3s
Cisco IOS XE=3.15.4s
Cisco IOS XE=3.16.0s
Cisco IOS XE=3.16.2s
Cisco IOS XE=3.16.3s
Cisco IOS XE=3.16.4s
Cisco IOS XE=3.16.5s
Cisco IOS XE=3.17.0s
Cisco IOS XE=3.17.1s
cisco IOS and IOS XE Software

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Configure the device SNMP agent to explicitly exclude the affected MIBs or OIDs so SNMP requests for those MIBs/OIDs are not processed.

    SNMP excluded_mibs_or_oids = explicitly exclude affected MIBs/OIDs
  2. Configuration

    Disable SNMP on devices where SNMP is not required (turn off the SNMP agent/service).

    SNMP enabled = false
  3. Compensating control

    Restrict SNMP access to trusted hosts or networks (for example, via ACLs or firewall rules) so that only authorized management stations can send SNMP traffic to the device.

Event History

Jul 17, 2017
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionSeverity
Data Sourced
via NVD·09:29 PM
DescriptionSeverityWeaknessAffected Software
Apr 19, 2023
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-6742?

The severity of CVE-2017-6742 is considered critical as it allows authenticated remote attackers to execute arbitrary code on vulnerable Cisco IOS and IOS XE devices.

2

How do I fix CVE-2017-6742?

To fix CVE-2017-6742, upgrade the Cisco IOS or IOS XE software to a version that is not affected by this vulnerability.

3

Which Cisco products are affected by CVE-2017-6742?

CVE-2017-6742 affects various versions of Cisco IOS from 12.0 to 12.4 and 15.0 to 15.6, as well as IOS XE versions from 2.2 to 3.17.

4

What type of attack can CVE-2017-6742 facilitate?

CVE-2017-6742 can facilitate remote code execution attacks by allowing authenticated attackers to execute arbitrary code.

5

Is there a workaround for CVE-2017-6742 before applying a patch?

There are no specific workarounds for CVE-2017-6742, so patching is recommended as the primary means of mitigation.

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