CVE-2025-12240
8.8TOTOLINK · A3300R
A stack-based buffer overflow vulnerability in the TOTOLINK A3300R firmware allows remote attackers to execute arbitrary code via the ip parameter in the setDmzCfg function.
Executive summary
The TOTOLINK A3300R router contains a critical buffer overflow vulnerability that could allow an authenticated remote attacker to execute arbitrary code on the device.
Vulnerability
The device is susceptible to a stack-based buffer overflow in the setDmzCfg function of the cstecgi.cgi script. An authenticated attacker can provide an excessively long input to the ip parameter, which is stored without validation and subsequently causes memory corruption when retrieved by the getDmzCfg function.
Business impact
Successful exploitation of this vulnerability can lead to full system compromise of the affected router, potentially granting an attacker persistent access to the network. Given the high CVSS score of 8.8, this flaw poses a significant risk to organizational infrastructure, as routers often serve as the primary gateway for internal traffic and security perimeters.
Remediation
Immediate Action: Check the official TOTOLINK support website for firmware updates addressing this buffer overflow and apply them to all affected A3300R units immediately.
Proactive Monitoring: Review administrative access logs for suspicious POST requests targeting the /cgi-bin/cstecgi.cgi endpoint, specifically monitoring for unusual activity involving the setDmzCfg or getDmzCfg topics.
Compensating Controls: Restrict access to the router management interface to trusted internal IP addresses and disable remote management features to reduce the attack surface.
Exploitation status
Public Exploit Available: Yes, a published proof-of-concept exists, as documented in the technical write-up provided by the vulnerability researcher.
Analyst recommendation
The presence of a published proof-of-concept and the potential for remote code execution make this a high-priority issue for network administrators. Organizations should prioritize patching the affected firmware or isolating the device from untrusted networks until a vendor-supplied update is verified and deployed.
More TOTOLINK CVEs
Sources
Originally found and disclosed by wxhwxhwxh_mie (VulDB User), per the CVE Program record.
- VDB-329910 | TOTOLINK A3300R cstecgi.cgi setDmzCfg buffer overflow Vulnerability database entry
- VDB-329910 | CTI Indicators (IOB, IOC, IOA)
- Submit #673722 | TOTOLINK A3300R V17.0.0cu.557_B20221024 Buffer Overflow Third-party advisory
- Exploit / PoC
- totolink.net