Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-20273: Root Command Injection in Cisco IOS XE Web UI

Published Oct 24, 2023 · Updated 19 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.2High · v3.1
EPSS92.9%100th percentile
CISA KEVYesAdded Oct 23, 2023
In the wildActivePer CISA KEV
Vendor
Cisco Systems
IdentifiersCVE-2023-20273CWE-78 · Improper Neutralization of Special…

CVE-2023-20273 is an authenticated command-injection vulnerability in the Cisco IOS XE Software web UI caused by insufficient input validation. A remote attacker can submit crafted input to execute commands on the underlying operating system with root privileges. In observed attacks, attackers first exploited CVE-2023-20198 to create a privilege-level-15 local account, then used that account to exploit CVE-2023-20273, escalate to root, and write an implant to the filesystem. The vulnerability has been actively exploited in the wild.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the confidentiality, integrity, and availability of the affected network device by granting root-level operating-system command execution. Attackers can modify files and device behavior, deploy implants, access sensitive configurations, and disrupt services. Compromised devices can also support traffic interception, credential collection, lateral movement, and command-and-control proxying. Chaining this vulnerability with CVE-2023-20198 permits device compromise without preexisting credentials.

Mitigation

If you can’t patch tonight, do this now.

Disable the web UI by disabling both HTTP and HTTPS services where enabled, using 'no ip http server' and 'no ip http secure-server'. If web management is required, restrict access to trusted administrative sources with ACLs, isolate management networks, and remove direct internet exposure. Configuring 'ip http active-session-modules none' prevents exploitation over HTTP, while 'ip http secure-active-session-modules none' prevents exploitation over HTTPS. Monitor for unauthorized local users, unexpected file installations, and suspicious configuration changes. Disabling the web UI does not remove an existing implant.

Remediation

Patch, then assume compromise.

Upgrade to an appropriate fixed Cisco IOS XE release or a later supported release. Fixed releases include 17.9.4a, 17.6.6a, 17.3.8a, and 16.12.10a for Catalyst 3650/3850 devices. Use Cisco Software Checker to identify the applicable fixed release or SMU for the platform. For affected Rockwell Automation Stratix 5200 and 5800 switches, upgrade to firmware revision 17.12.02 or later. Investigate potentially compromised devices, remove unauthorized accounts and configuration changes, and address implanted malware; patching alone does not eradicate an existing compromise. Rebooting removes the observed nonpersistent implant but does not remove attacker-created accounts.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
cisco_ios_xe_rce.rbThis repository contains a single Metasploit module (modules/exploits/linux/misc/cisco_ios_xe_rce.rb) that exploits a chain of two vulnerabilities (CVE-2023-20198 and CVE-2023-20273) in Cisco IOS XE devices with the Web UI enabled. The exploit is unauthenticated and allows remote code execution as root by leveraging flaws in the Web UI's authentication and privilege escalation mechanisms. The module is highly weaponized, supporting customizable command payloads (including reverse shells and Meterpreter) and is designed for operational use within the Metasploit framework. The code interacts with the target's HTTP Web UI endpoints and manipulates files in the /var/www/ directory to verify and achieve code execution. The exploit targets a wide range of IOS XE versions (16.1.1 through 17.12.1a and others as listed in the module). The repository is structured as a single Ruby file, following standard Metasploit module conventions, and is intended for use by penetration testers and red teamers to demonstrate or leverage these critical vulnerabilities.Disclosed Oct 16, 2023 · Framework: metasploit · ruby · networkWeaponizedcisco_ios_xe_os_exec_cve_2023_20273.rbThis repository contains a single Metasploit auxiliary module targeting Cisco IOS XE devices vulnerable to CVE-2023-20198 and CVE-2023-20273. The module exploits the vulnerabilities in two stages: first, it creates a new admin user (if credentials are not provided) using CVE-2023-20198, then it leverages CVE-2023-20273 to execute arbitrary OS commands as root. The output of the command is written to a temporary file in /var/www/ on the target, which is then retrieved via the device's web interface (e.g., /webui/<output_file>). After execution, the module attempts to clean up by deleting the output file and removing the created admin user. The exploit is operational and allows attackers to run arbitrary commands on a wide range of Cisco IOS XE versions, provided the Web UI is exposed. The code is written in Ruby and is designed to be used within the Metasploit framework.Disclosed Oct 16, 2023 · Framework: metasploit · ruby · networkWeaponizedCVE-2023-20198This repository is a small Cisco IOS XE exploitation toolkit focused on the 2023 Web UI/WSMA vulnerability cluster. It contains 4 files: a minimal README and three Python scripts. scripts/exp.py and scripts/poc.py are effectively duplicates: both are standalone command-line exploit scripts that take a target URL and command, then send crafted SOAP envelopes to the encoded WSMA endpoint /%2577ebui_wsma_http or /%2577ebui_wsma_https. They support two modes: 'common' for execCLI command execution and 'super' for configApply/privileged configuration commands. Returned XML is parsed with xmltodict and command output or error information is printed. scripts/exploit.py is the more capable staged exploit. Based on visible code and comments, it targets CVE-2023-20273 and references CVE-2023-20198 as part of the broader attack chain against Cisco IOS XE Web UI. It abuses /webui/rest/softwareMgmt/installAdd by injecting shell syntax into the JSON ipaddress field. The script includes helpers for base64-encoded command execution, writing files to /var/www/ for retrieval through /webui/, and dropping/executing a self-deleting bash reverse shell that connects back to an attacker-controlled host and port. It also references /usr/binos/conf/mcp_chvrf.sh to execute shell content in the global VRF context. Overall purpose: provide practical remote code execution against vulnerable Cisco IOS XE devices, ranging from direct WSMA CLI execution to staged Web UI command injection with output retrieval and reverse shell capability. The code is operational rather than just demonstrative, but it is not part of a major exploitation framework.charlesjson · Disclosed Jun 25, 2026 · python · markdown · network · webOperationalCVE-2023-20273This repository provides a Proof-of-Concept (PoC) exploit for CVE-2023-20273, a command injection vulnerability in Cisco IOS XE WebUI. The repository contains two files: a detailed README.md with usage instructions and exploit.py, a Python script implementing the exploit logic. The exploit targets Cisco IOS XE devices with the WebUI enabled and requires valid credentials. It works by sending a crafted POST request to the /webui/rest/softwareMgmt/installAdd endpoint, injecting arbitrary shell commands via the ipaddress field. The script supports both direct command execution and reverse shell payloads, with options to retrieve command output via the target's web server. The exploit is confirmed to work on several Cisco Catalyst models and IOS XE versions, with filesystem space being a potential limiting factor. The code is a functional PoC, not weaponized, and is intended for security testing and research.smokeintheshell · Disclosed Dec 9, 2023 · python · markdown · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Cisco SystemsIos Xeoperating_system
FAQ

Frequently asked questions

Is CVE-2023-20273 exploited in the wild?
Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 23, 2023.
Is there a public exploit for CVE-2023-20273?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2023-20273, the earliest disclosed Oct 16, 2023.
Is there a patch for CVE-2023-20273?
Upgrade to an appropriate fixed Cisco IOS XE release or a later supported release. Fixed releases include 17.9.4a, 17.6.6a, 17.3.8a, and 16.12.10a for Catalyst 3650/3850 devices.
What products are affected by CVE-2023-20273?
Cisco Systems Ios Xe.
How severe is CVE-2023-20273?
CVE-2023-20273 has a CVSS v3.1 score of 7.2 (High) and an EPSS score of 92.9% (100th percentile) as of Nov 4, 2026.
Activity feed

Recent activity

38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+22 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence9Every report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity6Community discussion across Reddit, Mastodon, and other social sources.