
CVE-2024-20399 allows authenticated attackers to install persistent implants on Cisco IOS XE devices via the Web UI. Survives reboots when chained with CVE-2023-20198 — CISA KEV, critical for edge routers and switches.
Affected IOS XE
- IOS XE with Web UI enabled (same exposure as CVE-2023-20198)
- ISR, ASR, Catalyst 9000 series on vulnerable trains
- Devices already compromised may retain implant after partial patch
Check for implant before patching
show version
show platform software fed active install package integrity 2>/dev/null
# Cisco PSIRT IOC — check for bad.lemonade / malicious LuaPatching Method
- Run Cisco PSIRT compromise detection script from advisory first.
- If compromised: factory reset or Cisco TAC recovery before patching.
- Download IOS XE image with both 20198 and 20399 fixes from Software Central.
- Backup config:
copy running-config flash:backup.cfg - Install fixed image; full reload required.
- After reboot:
no ip http serverandno ip http secure-server - Rotate all credentials; rebuild AAA from clean template.
show version | include Version
show running-config | include http
show logging | include LOGINPost-patch hardening
- Disable Web UI permanently if SSH/NETCONF suffices
- Restrict management plane to out-of-band network
- Monitor Cisco PSIRT for updated IOCs monthly