CVE-2025-12240
BaseFortify
Publication date: 2025-10-27
Last updated on: 2025-10-27
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| totolink | a3300r_firmware | 17.0.0cu.557_b20221024 |
| totolink | a3300r | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-119 | The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
| CWE-120 | The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2025-12240 is a critical buffer overflow vulnerability in the TOTOLINK A3300R router firmware version 17.0.0cu.557_B20221024. It occurs in the setDmzCfg function within the /cgi-bin/cstecgi.cgi script, where the 'ip' argument is improperly handled without verifying input size, leading to a buffer overflow. This flaw allows remote attackers to send crafted input to overflow the buffer, potentially causing arbitrary code execution or denial of service. [1, 4]
How can this vulnerability impact me? :
This vulnerability can be exploited remotely without user interaction, allowing attackers to compromise the confidentiality, integrity, and availability of the affected router. Potential impacts include arbitrary code execution, denial of service, and full compromise of the device, which can disrupt network operations and expose sensitive data. [1, 4]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for unusual or suspicious HTTP requests targeting the /cgi-bin/cstecgi.cgi endpoint, specifically those invoking the setDmzCfg function with crafted 'ip' arguments that may cause buffer overflow. Network intrusion detection systems (NIDS) can be configured to alert on such requests. Additionally, you can use curl or wget commands to test the endpoint with crafted inputs to see if the device behaves unexpectedly or crashes. For example, a command like: curl -X POST 'http://<router-ip>/cgi-bin/cstecgi.cgi' --data 'action=setDmzCfg&ip=<crafted_payload>' can be used to test the vulnerability. Monitoring device logs for crashes or abnormal behavior after such requests can also help detect exploitation attempts. [1, 3]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include replacing the affected TOTOLINK A3300R router firmware version 17.0.0cu.557_B20221024 with a non-vulnerable version or an alternative device, as no known mitigations or patches are currently available. Restrict remote access to the router's management interface, especially blocking access to /cgi-bin/cstecgi.cgi, to prevent exploitation. Implement network-level protections such as firewall rules or intrusion prevention systems to block malicious requests targeting the vulnerable function. Monitoring for exploit attempts and isolating affected devices can also reduce risk until a fix is available. [1]