CVE-2025-61045

9.8 CRITICAL

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary commands on TOTOLINK X18 routers by injecting malicious code into the mac parameter of the setEasyMeshAgentCfg function. Attackers can gain full control of affected devices, potentially compromising entire networks. All users running vulnerable firmware versions are affected.

💻 Affected Systems

Products:
  • TOTOLINK X18
Versions: V9.1.0cu.2053_B20230309 and likely earlier versions
Operating Systems: Embedded Linux firmware
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in default configuration; no special settings required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete device takeover leading to network compromise, data exfiltration, lateral movement to other devices, and persistent backdoor installation.

🟠

Likely Case

Router compromise allowing traffic interception, DNS hijacking, credential theft, and use as botnet node.

🟢

If Mitigated

Limited impact if device is behind firewall with restricted WAN access and proper network segmentation.

🌐 Internet-Facing: HIGH - Routers are typically internet-facing devices directly accessible from WAN interfaces.
🏢 Internal Only: MEDIUM - Attackers could exploit from compromised internal hosts or via phishing campaigns.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Public GitHub repository contains detailed exploitation information and proof-of-concept.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: Yes

Instructions:

1. Check TOTOLINK official website for firmware updates. 2. Download latest firmware. 3. Access router admin interface. 4. Navigate to firmware upgrade section. 5. Upload new firmware file. 6. Wait for reboot.

🔧 Temporary Workarounds

Disable EasyMesh Agent

all

Disable the vulnerable EasyMesh Agent functionality if not required

Network Segmentation

all

Isolate router management interface from untrusted networks

🧯 If You Can't Patch

  • Block WAN access to router management interface using firewall rules
  • Implement strict network segmentation to limit router exposure

🔍 How to Verify

Check if Vulnerable:

Check firmware version in router admin interface under System Status or Firmware Upgrade section

Check Version:

curl -s http://router-ip/cgi-bin/luci/ | grep -i version

Verify Fix Applied:

Verify firmware version is newer than V9.1.0cu.2053_B20230309

📡 Detection & Monitoring

Log Indicators:

  • Unusual command execution in system logs
  • Multiple failed authentication attempts to setEasyMeshAgentCfg endpoint
  • Suspicious POST requests to /cgi-bin/luci with mac parameter

Network Indicators:

  • Unusual outbound connections from router
  • Traffic to known malicious IPs
  • DNS queries to suspicious domains

SIEM Query:

source="router.log" AND ("setEasyMeshAgentCfg" OR "mac=" AND ("curl" OR "wget" OR "bash"))

🔗 References

📤 Share & Export