CVE-2025-8159
BaseFortify
Publication date: 2025-07-25
Last updated on: 2025-09-16
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| dlink | dir-513_firmware | 1.0 |
| dlink | dir-513 | * |
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-787 | The product writes data past the end, or before the beginning, of the intended buffer. |
| 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 is a critical stack-based buffer overflow in the D-Link DIR-513 router version 1.0. It occurs in the HTTP POST Request Handler component, specifically in the function formLanguageChange at the endpoint /goform/formLanguageChange. The issue arises because the argument 'curTime' is not properly validated before being used in a sprintf call, allowing an attacker to send a specially crafted, excessively long 'curTime' value that overflows the stack buffer. This overflow can be exploited remotely without authentication, potentially leading to arbitrary code execution or denial of service. [1, 2]
How can this vulnerability impact me? :
Exploitation of this vulnerability can compromise the confidentiality, integrity, and availability of the affected device. An attacker can remotely execute arbitrary code or cause a denial of service on the D-Link DIR-513 router. Since the product is no longer supported and no mitigations exist, the device remains vulnerable to attacks that can disrupt network operations or allow unauthorized control. [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 HTTP POST requests sent to the endpoint /goform/formLanguageChange on the D-Link DIR-513 v1.0 router. Specifically, look for POST requests containing the parameter 'curTime' with unusually long or malformed values that could trigger a stack-based buffer overflow. Network intrusion detection systems (NIDS) or web application firewalls (WAF) can be configured to alert on such suspicious POST requests. As for commands, you can use tools like curl or wget to test the endpoint manually, for example: curl -X POST -d 'curTime=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' http://<router-ip>/goform/formLanguageChange. Additionally, packet capture tools like tcpdump or Wireshark can be used to capture and analyze traffic to this endpoint for suspicious payloads. [1, 2]
What immediate steps should I take to mitigate this vulnerability?
Since the affected product (D-Link DIR-513 v1.0) is no longer supported by the vendor and no known mitigations or patches exist, the recommended immediate step is to replace the vulnerable router with a supported alternative device. In the meantime, you should restrict remote access to the router's web management interface, for example by disabling remote management or limiting access to trusted internal networks only. Monitoring and blocking suspicious POST requests to /goform/formLanguageChange can also help reduce risk, but replacement is the only reliable mitigation. [1]