How Unpacking CVE-202 Works and What You Should Patch

What the Vulnerability Is and Its Impact
CVE-2023-20198 is an unauthenticated privilege escalation vulnerability affecting the Web UI feature of Cisco IOS XE Software. Attackers exploit this flaw to create a local user account with privilege level 15, the highest administrative tier. The Common Vulnerability Scoring System (CVSS) v3.1 assigns this vulnerability a Base Score of 10.0 (Critical). This maximum score reflects the ease of exploitation and the severe impact: full administrative control of the affected device.
The vulnerability impacts Cisco IOS XE devices with the Web UI feature enabled and exposed to untrusted networks or the internet. This includes a wide range of Cisco enterprise and service-provider routing and switching platforms. Cisco disclosed active exploitation of this zero-day vulnerability in the wild.
Technical Root Cause Analysis
The root cause of CVE-2023-20198 lies within the Web UI component's handling of HTTP requests. The Web UI, an HTML5/CSS/JavaScript frontend, uses an embedded HTTP/HTTPS server and exposes SOAP endpoints. These endpoints accept CLI commands wrapped in XML. A flaw in the request-validation logic allows an unauthenticated client to bypass authentication entirely by presenting a syntactically valid session token.
Further analysis indicates the vulnerability stems from how NGINX and IOSd, components within the Cisco IOS XE Web UI, handle URL encoding. Both components independently decode URL paths. This double-encoding bypass allows an attacker to evade security checks and pass malicious requests to the backend. The backend then processes the request's XML payload as legitimate, leading to arbitrary command execution.
This initial compromise, CVE-2023-20198, often chains with a second vulnerability, CVE-2023-20273. After creating a privilege level 15 user via CVE-2023-20198, attackers exploit CVE-2023-20273 to elevate privileges to root and write a persistent implant to the file system. CVE-2023-20273 is a command injection flaw rated CVSS 7.2.
Exploitation Mechanics
Exploiting CVE-2023-20198 begins with an unauthenticated attacker sending specially crafted HTTP POST requests to the vulnerable Web UI endpoint. The target endpoint is typically associated with administrative functions, such as /webui/logoutconfirm.html. These requests contain malicious data, often within an XML payload, designed to execute commands on the underlying operating system.
The primary goal of the initial exploitation is to create a new local user account with privilege level 15. This grants the attacker full administrative access. An example of the initial step involves retrieving a session token, then using it in a subsequent request to create the user.
AUTH_TOKEN=$(curl -sk -X POST \
"http://[TARGET_IP]/webui/logoutconfirm.html?logon_hash=1" \
| grep -Eo '[a-f0-9]{18}')
echo "[*] Retrieved token: $AUTH_TOKEN"
# Subsequent request to create user using AUTH_TOKEN and XML payload
Once the high-privilege user account is established, the attacker can log in via SSH or HTTPS. This allows for post-exploitation activities, including reconnaissance (e.g., show running-config), persistence mechanisms, and lateral movement. The chaining with CVE-2023-20273 further allows attackers to install persistent implants, ensuring continued access even after device reboots or initial patching of CVE-2023-20198. This implant often resides in paths like /usr/binos/conf/nginx-conf/cisco_service.conf.
Detection: How to Check If You're Affected
Detecting compromise related to CVE-2023-20198 requires proactive monitoring and inspection. First, identify if your Cisco IOS XE devices have the Web UI feature enabled. Check for ip http server or ip http secure-server in the running configuration. If these commands are present, the Web UI is active.
Next, audit local user accounts for any unexpected or newly created privilege level 15 users. Look for usernames like cisco_tac_admin or cisco_support if they are not explicitly configured by an administrator. Review system logs for unusual account creation events or suspicious login attempts, particularly around October 2023.
Cisco provides specific indicators of compromise (IOCs) and Snort rules for detection. Snort rule IDs like 3:62541 and 3:62542 alert on attempted exploitation for initial access (CVE-2023-20198). To check for the presence of an implant, issue a specific web request:
curl -k -X POST "https://[DEVICEIP]/webui/logoutconfirm.html?logon_hash=1"
If the response returns an 18-character hexadecimal string, an implant is likely present.
Secably offers tools to assist with initial reconnaissance. Our free website vulnerability scanner can help identify exposed Web UIs. A free port scanner can reveal open ports associated with management interfaces, like TCP 80 or 443. Use our technology stack detector to confirm Cisco IOS XE presence. For broader internet-wide scanning and exposed service identification, consider using Zondex.
Remediation Steps
Immediate action is crucial to mitigate CVE-2023-20198 and prevent further compromise. The most effective step is to disable the HTTP/HTTPS server feature on all internet-facing Cisco IOS XE devices if it is not strictly required.
configure terminal
no ip http server
no ip http secure-server
end
write memory
Apply Cisco's security patches immediately. Cisco has released fixed IOS XE images and Software Maintenance Upgrades (SMUs) for various affected trains, including 17.9.x, 17.6.x, 17.3.x, and 16.12.x. Consult the official Cisco Security Advisory for specific fixed build numbers.
Implement strict access control lists (ACLs) to restrict Web UI access to only trusted management networks or VPNs. Review and revoke any unauthorized local user accounts, especially those with privilege level 15. Continuously monitor system logs and network traffic for suspicious activity, even after patching. For comprehensive vulnerability management and continuous monitoring, Secably offers paid monitoring plans starting at $19/month, alongside a free tier for instant tools.
Timeline of Disclosure
The disclosure and response to CVE-2023-20198 unfolded rapidly due to active exploitation. Cisco Talos first identified suspicious activity targeting the vulnerability as early as September 18, 2023.
On October 16, 2023, Cisco published a security advisory (cisco-sa-iosxe-webui-privesc-j22SaA4z) detailing the critical zero-day vulnerability, CVE-2023-20198, and warned of active exploitation. Initially, no patch was available. Cisco's primary recommendation was to disable the HTTP Server feature.
By October 20, 2023, Cisco updated its advisory, revealing that the observed attack chain involved a second zero-day, CVE-2023-20273, used for implant deployment. Patches for some versions of IOS XE software became available around October 22, 2023. The Canadian Centre for Cyber Security (Cyber Centre) issued alerts and updates throughout late October and early November 2023, emphasizing the critical nature and ongoing threat. Organizations must assume compromise if their devices were exposed before applying patches. This rapid response highlights the severity of unpacking CVE-202 in real-world scenarios. For more detailed analysis of similar threats, refer to our blog post, Unpacking CVE-2023-20198 — Cisco IOS XE Web UI Privilege Escalation.
Check your site for vulnerabilities
Run a free security scan — no signup, results in seconds.
Related Posts
eMudhra Certificates Explained — What to Patch and Why
Exploiting CVE-2026-1337 — Apache Tomcat Deserialization RCE