CVE-2025-12239
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-12239 is a critical buffer overflow vulnerability in the TOTOLINK A3300R router firmware version 17.0.0cu.557_B20221024. The flaw exists in the setDdnsCfg function within the /cgi-bin/cstecgi.cgi file, specifically in handling the 'provider' POST parameter. The input is copied to an output buffer without checking if the input size exceeds the buffer size, causing a buffer overflow (CWE-120). This can be exploited remotely to compromise the device. [1, 2]
How can this vulnerability impact me? :
This vulnerability can allow a remote attacker to execute arbitrary code or cause a denial of service on the affected TOTOLINK A3300R router. Exploiting the buffer overflow can compromise the confidentiality, integrity, and availability of the device, potentially leading to full device takeover or disruption of network services. [1, 2]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring or testing the /cgi-bin/cstecgi.cgi endpoint, specifically the setDdnsCfg function that accepts a POST parameter named "provider". Sending an excessively long "provider" parameter in a POST request to this endpoint may trigger the buffer overflow. You can use tools like curl to test this by sending a crafted POST request with a long "provider" value, for example: curl -X POST http://<router-ip>/cgi-bin/cstecgi.cgi -d "action=setDdnsCfg&provider=$(python3 -c 'print("A"*1000)')". Additionally, network intrusion detection systems (NIDS) can be configured to alert on unusually long POST parameters to this endpoint. However, no specific detection commands or signatures are provided in the resources. [2, 3]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include avoiding exposure of the vulnerable TOTOLINK A3300R router's management interface to untrusted networks, especially the /cgi-bin/cstecgi.cgi endpoint. Since no known mitigations or patches are available, it is recommended to replace the affected device with an alternative product. Limiting network access to the device and monitoring for exploit attempts can also help reduce risk. [1]