CVE-2025-12241
8.8TOTOLINK · A3300R
A stack-based buffer overflow in the TOTOLINK A3300R router allows remote attackers to execute arbitrary code via the lang parameter in the setLanguageCfg function.
Executive summary
A critical stack-based buffer overflow in TOTOLINK A3300R firmware allows authenticated attackers to achieve remote code execution, posing a severe risk to network integrity.
Vulnerability
The vulnerability exists within the setLanguageCfg function of the /cgi-bin/cstecgi.cgi endpoint, where the lang parameter lacks sufficient length validation. When this unsanitized input is later retrieved and stored on the stack by the getInitCfg function, it triggers a memory corruption event that can be leveraged by an authenticated user.
Business impact
Successful exploitation of this buffer overflow can lead to remote code execution on the affected router. Given the CVSS score of 8.8, this vulnerability represents a high-severity risk that could allow an attacker to gain full control over the device, intercept network traffic, or pivot into the internal network. Such a compromise significantly threatens data confidentiality and the overall availability of the network infrastructure.
Remediation
Immediate Action: Organizations should check for and apply the latest firmware updates provided by TOTOLINK. If no patch is currently available for this specific version, restrict management access to the device to trusted internal IP addresses only.
Proactive Monitoring: Monitor device logs for unusual POST requests directed at /cgi-bin/cstecgi.cgi, particularly those containing excessively long strings in the lang parameter.
Compensating Controls: Implement network segmentation to isolate the management interface of the router from general user traffic, thereby reducing the attack surface.
Exploitation status
Public Exploit Available: Yes, a published proof-of-concept exists and is attributed to the researcher write-up provided in the referenced GitHub repository.
Analyst recommendation
This vulnerability presents a clear and present danger to the security of the TOTOLINK A3300R. Administrators must prioritize the application of vendor patches or implement strict access controls to the administrative interface to prevent exploitation. Given the availability of a public proof-of-concept, the urgency of remediation is high.
More TOTOLINK CVEs
Sources
Originally found and disclosed by yhryhryhr_tu (VulDB User), per the CVE Program record.