On this page (7 sections)
A critical flaw has been published for the D-Link R18 router, hardware revision A1, running firmware 1.20.B01. The bug is a stack-based buffer overflow in the GetDeviceSettings function of the device's httpd web service, and the record says it can be attacked remotely and that the exploit is now public.
If you run an R18, manage one for a client, or operate a site or office network behind one, this is worth acting on today. At the time of writing, the sources we reviewed do not name a patched firmware version.
What was reported
The GitHub Advisory Database entry and the matching NVD record describe the issue in the same words: a vulnerability in the D-Link R18 A1 1.20.B01, in the function GetDeviceSettings of the httpd component, where manipulation causes a stack-based buffer overflow. The attack may be launched remotely, and the exploit is stated to be public. The NVD page repeats the advisory text, so these are one account, not two independent confirmations.
The references point to a public repository named D-link-R18A1 and to VulDB entries (CVE page, vuln 445165). We have not verified the contents of those pages and do not describe them here. The advisory is marked unreviewed, and only one publisher covers the story so far.
Technical details in plain terms
A stack-based buffer overflow happens when a program copies more data into a fixed-size memory area on the stack than it can hold. The extra data overwrites neighboring memory, which can crash the program or, in the worst case, let an attacker change what the device executes. On a router, the httpd process is the web server behind the management interface, so a crash can take the admin service down and a successful exploit can mean control of the device.
The CVSS v4 metrics in the advisory rate the attack vector as network, complexity as low, with no privileges required and no user interaction. Impact on confidentiality, integrity and availability is rated high for both the vulnerable and subsequent systems. In short, the scoring assumes an unauthenticated attacker who can reach the service. The sources do not say whether the vulnerable function sits behind a login, nor whether the management interface is reachable from the internet by default, so treat exposure as unknown and check your own setup.
Who is affected
- Owners of a D-Link R18 with hardware revision A1 and firmware 1.20.B01, the only version named in the record.
- Anyone whose R18 web management is reachable from the internet, which makes remote attack easiest.
- Small offices and shops that rely on the router as their only perimeter, since a compromised router sits in front of every device and website behind it.
- Other R18 firmware versions and hardware revisions: the advisory lists affected versions as unknown, so do not assume they are safe or unsafe until D-Link says so.
How to check your exposure
Start by confirming what you have. Log in to the router's admin page from inside your network and read the model, hardware revision and firmware version, usually shown on the status or firmware page and on the label on the underside of the device.
Next, check whether the management interface answers from outside. From a machine on a different network (for example a phone on mobile data), try your router's public IP address on the web ports. You can find the public IP in the router status page. If the login page loads, remote management is exposed.
This read-only command, run from a Linux or macOS machine outside your network, shows whether the router answers on port 80 without sending anything harmful. Replace the placeholder with your public IP. A response with headers means the web service is reachable; a timeout or refusal is the result you want.
curl -sI --max-time 10 http://YOUR_PUBLIC_IP/What to do now
The sources do not document a firmware update, so the priority is reducing exposure while you wait for a vendor fix.
- Identify every D-Link R18 you manage and note its hardware revision and firmware version.
- Turn off remote (WAN) administration on the router so the web interface is reachable only from the local network.
- Restrict local admin access to a trusted wired machine or management VLAN where the router supports it, and avoid browsing the admin page from untrusted devices.
- Check the D-Link support site at https://www.dlink.com/ for a security bulletin or newer R18 firmware, and install it as soon as one is published for your revision.
- Change the admin password to a unique, long one and review the router for unknown settings changes such as DNS servers, port forwards or new accounts.
- If the router is business critical and no fix appears, plan a replacement with a model that still receives security updates.
- Keep a note of the CVE number so you can recheck the advisory for patched version details.
Detection and monitoring
Because a public exploit is reported, expect scanning of exposed routers. Watch for signs that the httpd service is being probed or has crashed: unexplained router reboots, the admin page becoming unresponsive, unexpected configuration changes, or unfamiliar outbound connections from the router. If your router can send logs to a syslog server, forward them and review entries around reboots.
For the websites behind the router, monitoring helps you notice knock-on effects such as outages, DNS changes or certificate changes. Webforta Monitor covers uptime, certificate, DNS and header changes, and the free SSL checker lets you spot-check a certificate. These do not detect this router flaw itself. If you suspect a compromise, follow our guide on what to do when a website is hacked.
Related router advisories
This is one of several recent D-Link and other consumer-router flaws we have covered, including the D-Link DIR-X1860Z buffer overflow and the D-Link R95 command injection. The pattern is the same: web management interfaces that should never be exposed to the internet.
Sources
This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.
