Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2017-17215: Remote Command Injection in Huawei HG532 DeviceUpgrade Service

Published Mar 20, 2018 · Updated 20 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3
EPSS78.3%100th percentile
CISA KEVNoNot listed
In the wildReported717 exploitation records in Mallory
Vendor
Huawei Technologies
IdentifiersCVE-2017-17215CWE-78

CVE-2017-17215 is an OS command-injection vulnerability affecting certain customized versions of Huawei HG532 router firmware. The router exposes a TR-064 management implementation through UPnP on WAN-accessible TCP port 37215, despite TR-064 being intended for local-network configuration. The DeviceUpgrade service permits shell metacharacters in the NewStatusURL and NewDownloadURL parameters to trigger arbitrary command execution. An authenticated remote attacker can submit a crafted HTTP/XML request to execute code on the router. The vulnerability has been widely exploited to distribute Satori and other Mirai-derived botnet malware.

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 router integrity by allowing arbitrary commands and malware execution. Observed attacks download and execute botnet payloads that place compromised routers under remote control and generate TCP or UDP floods. Compromised devices can also be used to scan for and infect additional vulnerable systems.

Mitigation

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

Block untrusted access to TCP port 37215 using the router's built-in firewall or a carrier-side firewall. Disable unnecessary WAN-facing management services and restrict required management access to trusted networks. Replace default administrative passwords with strong, unique credentials. Segment affected routers and IoT devices to limit the consequences of compromise, and monitor for exploitation attempts and unexpected outbound scanning.

Remediation

Patch, then assume compromise.

Apply Huawei or the service provider's firmware update addressing CVE-2017-17215 for the specific HG532 customization. A fixed firmware version is not established here. Replace or decommission affected devices if supported, corrected firmware is unavailable.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
HG532d-RCE-ExploitThis repository contains a working remote code execution (RCE) exploit for Huawei HG532d routers, targeting CVE-2017-17215. The main exploit is implemented in 'hg532d_exploit.py', which sends a crafted SOAP request to the router's UPnP service on port 37215 using HTTP Digest authentication (default credentials: dslf-config/admin). The payload downloads a MIPS busybox binary from an attacker-controlled server (192.168.1.6), sets it up, and uses it to open a reverse shell back to the attacker. The repository also includes a browser-based PoC ('web_exploit/poc_iframe.html') that submits a similar payload via a hidden form, demonstrating exploitation via a browser on the same network. The 'index.html' file serves as a landing page for the browser PoC. The exploit is operational, providing a real payload and demonstrating both direct (Python script) and indirect (browser) attack vectors. The main fingerprintable endpoints are the router's SOAP endpoint at http://192.168.1.1:37215/ctrlt/DeviceUpgrade_1 and the attacker's server at 192.168.1.6.wilfred-wulbou · Disclosed Nov 17, 2020 · python · html · network · browserOperationalmisfortune-cookieThis 13-file Python PoC suite is centered on CVE-2014-9222 (Misfortune Cookie) in AllegroSoft RomPager, with an interactive console in main.py and standalone modules for fingerprinting, detection, authentication bypass, and denial of service. common.py contains a per-device realm-to-cookie-offset table covering multiple Billion, D-Link, TP-Link, Zyxel, and Azmoon models. The RomPager detector sends a canary cookie to confirm request-URI corruption; auth_bypass.py uses firmware-specific magic cookies to write authentication state; dos.py sends oversized Cookie headers and polls for a watchdog reboot. The suite also includes operational exploit modules for Accellion FTA CVE-2021-27101/27102 (Host-header SQLi to recover a secret, then write/verify a PHP webshell), Huawei HG532 CVE-2017-17215 (SOAP command injection), and MikroTik WinBox CVE-2018-14847 (directory traversal file read and credential decryption). scan.py combines service probes, although its WinBox check performs an actual credential-store read rather than a purely passive fingerprint.luel-4013 · Disclosed Sep 7, 2026 · python · network · webOperational
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
Huawei TechnologiesHg532 Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2017-17215 exploited in the wild?
Yes. As of Oct 28, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2017-17215?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2017-17215, the earliest disclosed Nov 17, 2020.
Is there a patch for CVE-2017-17215?
Apply Huawei or the service provider's firmware update addressing CVE-2017-17215 for the specific HG532 customization. A fixed firmware version is not established here.
What products are affected by CVE-2017-17215?
Huawei Technologies Hg532 Firmware.
How severe is CVE-2017-17215?
CVE-2017-17215 has a CVSS v3 score of 8.8 (High) and an EPSS score of 78.3% (100th percentile) as of Oct 28, 2026.
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 evidence11Every report linking this CVE to a named adversary.
Associated malware114Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.