BACK TO THE WIRE
SW-000258CISCO · NX-OS SOFTWARE (STANDALONE MODE) · CISCO NEXUS 3000 AND 9000 SERIES SWITCHES · BGP ENFORCE-FIRST-ASMEDIUMACTION REQUIRED

Cisco patches BGP DoS flaw in Nexus 3000/9000 NX-OS enforce-first-as feature

Cisco disclosed CVE-2026-20171, a medium-severity (CVSS 6.8) denial-of-service vulnerability in the BGP enforce-first-as feature on Cisco Nexus 3000 and 9000 Series Switches running standalone NX-OS with BGP configured. An unauthenticated remote attacker can send a crafted BGP update containing a malformed transitive attribute to cause BGP peer flaps and a DoS condition. Cisco has released fixed software and documented workarounds; PSIRT is not aware of public exploitation.

NETWORK · SECURITY · SECURITY ADVISORY · VULNERABILITY

PUBLISHED OCT 13, 2026 18:51 UTC

WHAT CHANGED

Cisco published security advisory cisco-sa-bgp-iefab-3hb2pwtx describing a flaw in incorrect parsing of a transitive BGP attribute (ATTR_SET) affecting the enforce-first-as feature, which is enabled by default whenever BGP is configured and does not appear in the running configuration. Exploitation requires an established BGP peer session and causes the affected device to drop the session and flap with the peer forwarding the malformed update. The advisory lists Cisco Nexus 3000 Series and Nexus 9000 Series Switches in standalone NX-OS mode (with BGP configured) as vulnerable, and explicitly confirms numerous other product lines (including Nexus 9000 in ACI mode, Nexus 5000/6000/7000 series, Firepower, Secure Firewall, MDS 9000, and various UCS Fabric Interconnects) are not affected. Cisco has released fixed software and two workarounds (path-attribute discard or treat-as-withdraw on the receiving neighbor) plus a mitigation (disabling enforce-first-as via 'no enforce-first-as'), noting the mitigation weakens a security check and requires resetting BGP peers.

WHY IT MATTERS

Administrators running BGP on affected standalone Nexus 3000/9000 switches face a remotely triggerable denial-of-service risk via a single crafted BGP update propagating through an established peer session, which could disrupt routing and network availability. Because enforce-first-as is on by default and invisible in running-config, affected devices may not be obviously identifiable without checking BGP sessions and logs. Immediate options include applying vendor workarounds/mitigation or upgrading to fixed NX-OS releases to close the exposure, while weighing that the mitigation disables a security control.

WHO IS AFFECTED

ROLES
Network administratorNetwork security engineer
PRODUCTS
Cisco Nexus 3000 Series SwitchesCisco Nexus 9000 Series Switches (standalone NX-OS mode)
FEATURES
BGP enforce-first-as feature
CONFIGURATIONS
Devices with BGP routing protocol configured
ENVIRONMENTS
Standalone NX-OS mode
EXCLUSIONS
Firepower 1000 SeriesFirepower 2100 SeriesFirepower 4100 SeriesFirepower 9300 Security AppliancesMDS 9000 Series Multilayer SwitchesNexus 5500 Platform SwitchesNexus 5600 Platform SwitchesNexus 6000 Series SwitchesNexus 7000 Series SwitchesNexus 9000 Series Fabric Switches in ACI modeSecure Firewall 200 SeriesSecure Firewall 1200 SeriesSecure Firewall 3100 SeriesSecure Firewall 4200 SeriesSecure Firewall 6100 SeriesUCS 6300 Series Fabric InterconnectsUCS 6400 Series Fabric InterconnectsUCS 6500 Series Fabric InterconnectsUCS 6600 Series Fabric InterconnectsUCS X-Series Direct Fabric Interconnect 9108 100G

WHAT TO DO

  1. 01
    MEDIUMAUTOMATABLE

    Run 'show bgp sessions' on Nexus 3000/9000 devices to determine if BGP peering is configured and establish exposure.

    DOCUMENTATION
  2. 02
    MEDIUMAUTOMATABLE

    Configure 'log-neighbor-changes' under the BGP process and monitor logs for malformed AS path error messages or unexpected neighbor flaps as indicators of compromise.

    DOCUMENTATION
  3. 03
    HIGHAUTOMATABLE

    Apply the 'path-attribute discard 128 in' neighbor configuration to discard the ATTR_SET attribute if it is not needed, as a workaround.

    DOCUMENTATION
  4. 04
    HIGHAUTOMATABLE

    Alternatively, apply the 'path-attribute treat-as-withdraw 128 in' neighbor configuration to discard the attribute and withdraw associated prefixes.

    DOCUMENTATION
  5. 05
    MEDIUMAUTOMATABLE

    If workarounds are not feasible, disable the enforce-first-as feature using 'no enforce-first-as' as a mitigation, noting this weakens first-AS validation and requires resetting BGP peers.

    DOCUMENTATION
  6. 06
    HIGH

    Upgrade affected Cisco NX-OS Software to a fixed release using the Cisco Software Checker to identify the appropriate version.

    DOCUMENTATION

TIMELINE

ANNOUNCED
MAY 20, 2026

SOURCES

  • PRIMARY SOURCECISCO

    Cisco Nexus 3000 and 9000 Series Switches Border Gateway Protocol Denial of Service Vulnerability

    PUBLISHED MAY 20, 2026VIEW SOURCE

VERIFICATION

HUMAN VERIFIEDLAST VERIFIED OCT 13, 2026 18:51 UTCREVISION 2

ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.

WAS THIS USEFUL?