Skip to main content
VulnerabilityPublished

ZERO-DAY ALERT: Automated Discovery of Critical CWMP Stack Overflow in TP-Link Routers

Source Reddit NetSec

0
Severity
Critical

Rated by Threat Radar

Data as of 1 Sep 2025, 03:02 UTC

What to do

AI-suggested

  1. Immediate firmware upgrade: Organizations should verify their router models and firmware versions and apply the latest TP-Link firmware updates that address this vulnerability as soon as they become available.
  2. Disable or restrict TR-069 (CWMP) management: If remote management via TR-069 is not required, disable this feature entirely to eliminate the attack vector. If it is necessary, restrict access to trusted management servers only and monitor configuration changes.
  3. Change default credentials: Ensure all routers use strong, unique administrative passwords to prevent unauthorized configuration changes.
  4. Network segmentation: Isolate routers and management interfaces from general user networks and the internet where possible to reduce exposure.
  5. Monitor network traffic for unusual CWMP activity, especially unexpected connections to unknown TR-069 servers.
  6. Conduct regular vulnerability scans and penetration tests focusing on network infrastructure devices to detect potential exploitation attempts.
  7. Implement intrusion detection/prevention systems (IDS/IPS) with signatures or heuristics for anomalous TR-069 traffic patterns.
  8. Educate IT staff about this vulnerability and ensure rapid incident response plans are in place for router compromises.

Description

**TL;DR: Discovered an unpatched zero-day in TP-Link routers (AX10/AX1500) that allows remote code execution. Reported to TP-Link on May 11th, 2024 - still unpatched.4,247 vulnerable devices found online.** # The Discovery Used automated taint analysis to find a stack-based buffer overflow in TP-Link's CWMP (TR-069) implementation. The vulnerability exists in function `sub_1e294` that processes SOAP SetParameterValues messages. **Key Technical Details:** * Stack buffer: 3072 bytes * PC register overwrite: 3112 bytes (payload: "A"\*3108 + "BBBB") * Result: `pc = 0x42424242` (full control) * Canary exploit mitigations # Proof of Concept // Vulnerable code pattern char* result_2 = strstr(s, "cwmp:SetParameterValues"); // Size calculated from user input - BAD PRACTICE strncpy(stack_buffer, user_data, calculated_size); // OVERFLOW! Exploitation requires setting a malicious CWMP server URL in router config, then device connects and gets pwned. # Impact **Affected Models:** * TP-Link Archer AX10 (all hardware versions V1, V1.2, V2, V2.6) * TP-Link Archer AX1500 (identical binary) * Potentially: EX141, Archer VR400, TD-W9970 **Firmware Versions:** 1.3.2, 1.3.8, 1.3.9, 1.3.10 (all vulnerable) **Internet Exposure:** 4,247 unique IPs confirmed vulnerable via Fofa search # Why This Matters Router security is often terrible - default passwords, weak configs, other vulns. Getting config access isn't that hard, and setting up a rogue CWMP server is trivial. Once you change the TR-069 server URL, the router connects to your malicious server and you get root. # Timeline * **Discovery:** January 2025 (automated analysis) * **Vendor Notification:** May 11th, 2024 * **Current Status:** Probably Patched * **Public Disclosure:** Now

References

Community reviews

Loading reviews…