Skip to main content
Mallory
HighPublic exploitVulnerability

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

Published Mar 20, 2018 · Updated 1 month 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 wildReported728 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

3 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 · webOperationalhg532e-root-shellThis standalone repository contains 14 listed files: two Python utilities, one Bash restoration script, two systemd units, three technical documents, three evidence artifacts, a README, license, and ignore file. It is an actual exploit implementation rather than a scanner or README-only submission. No exploit framework is used. Repository URL, revision, and archive size were not supplied; size_bytes is therefore an unknown-value placeholder, not a measured archive size. Listed individual file sizes total 53,910 bytes. The main utility, tools/cve_2017_17215.py, exploits CVE-2017-17215 by POSTing an Upgrade SOAP request to TCP 37215. It uses the Huawei-specific DeviceUpgrade service URN and a fixed precomputed Digest header for dslf-config. The report claims this stale Digest is accepted while ordinary web-admin authentication fails SOAP authorization. User-controlled NewStatusURL reaches a root-executed firmware-upgrade shell command. Commands are wrapped in shell command substitution by default; --raw permits verbatim content. The utility reports HTTP status, elapsed time, and part of the SOAP response, not command stdout. XML-sensitive command characters are not automatically escaped. Blocking commands can reportedly wedge the single-threaded service. The documented interactive-access chain writes an executable shell launcher to /var/cli.sh, bind-mounts it over /bin/cli, and starts the existing SSH daemon on port 2222 in the same injection context. The hidden !!Huawei account authenticates over SSH with the documented fixed password, and the replacement session program yields root rather than the restricted ATP CLI. Evidence files claim UID/GID 0 on Linux 2.6.21.5. These are supplied claims and transcripts, not independently executed verification. The systemd timer schedules host-side restoration 30 seconds after boot and every 60 seconds thereafter. This is recurring exploitation from another machine, not firmware-resident persistence. Importantly, the supplied Bash payload is defective: its quoted heredoc preserves __PORT__ literally inside the command passed to the router's /bin/sh, while sed is downstream and substitutes command output rather than the command before execution. SHELL_PORT also remains a router-side variable reference instead of being expanded on the host. Consequently, the sshd invocation receives __PORT__ as its port argument, so the automatic-restoration claims are not supported by this exact script. Its health check also verifies only an open TCP port, not successful root-shell authentication. The configuration utility skips a 128-byte signature header and decrypts AES-128-CBC using firmware-wide key 3E4F5612EF64305955D543B0AE350880 and IV 8049E91025A6B54876C3B4868090D3FC, removing zero padding. It exposes stored plaintext settings and password hashes; it does not itself crack hashes. Encryption mode emits a zero-filled signature header and cannot generate a configuration accepted by the reported RSA-verified import path. The documentation records failed CGI injection, file-read, telnet-login, and DeviceConfig approaches rather than implementing them as working attacks. POODLE appears only as a scan finding, and Dirty COW is explicitly rejected as inapplicable. The HG655b identification is described as a misleading service fingerprint, not another confirmed target. The encrypted configuration mentioned in the documentation is absent from the supplied file listing, and the visible decrypted XML is truncated. No external command-and-control or exfiltration destination is implemented; firmware URLs are dummy values and ACS/NTP addresses are configuration artifacts.bsiamer · Disclosed Nov 27, 2026 · python · bash · network · fileOperational
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 3 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.