CVE-2025-12258
BaseFortify
Publication date: 2025-10-27
Last updated on: 2025-10-28
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-121 | A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the TOTOLINK A3300R router firmware version 17.0.0cu.557_B20221024, specifically in the setOpModeCfg function of the /cgi-bin/cstecgi.cg file. It involves a stack-based buffer overflow caused by improper handling of the 'opmode' parameter in a POST request. An attacker can exploit this remotely by manipulating this parameter to overflow the buffer, potentially leading to arbitrary code execution or system compromise.
How can this vulnerability impact me? :
Exploitation of this vulnerability can allow a remote attacker to execute arbitrary code on the affected device, potentially leading to full control over the router. This can result in disruption of network services, interception or manipulation of network traffic, and compromise of connected devices.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for HTTP POST requests to the /cgi-bin/cstecgi.cg endpoint with the parameter 'opmode' being manipulated. You can use network traffic analysis tools like tcpdump or Wireshark to capture such requests. For example, a command to capture relevant HTTP POST requests might be: tcpdump -i <interface> -A 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | grep 'POST /cgi-bin/cstecgi.cg'. Additionally, you can use curl or similar tools to test the endpoint manually by sending crafted POST requests with various 'opmode' values to check for abnormal responses or crashes. [1]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include restricting access to the vulnerable endpoint /cgi-bin/cstecgi.cg, especially blocking remote POST requests that manipulate the 'opmode' parameter. Applying network-level filtering or firewall rules to limit access to trusted IPs can help. Additionally, updating the device firmware to a version that patches this vulnerability is recommended once available. If an update is not yet available, disabling the affected service or function temporarily may reduce risk. [1]