CVE-2026-138361: Critical D-Link R18 Buffer Overflow
Critical CVSS (10.0) reachable over network.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HTL;DR - CVE-2026-138361 is a CVSS 10.0 remote stack-based buffer overflow in D-Link R18 firmware 1.20.B01. - Attackers can target the
API-AUTHargument in the DHMAPI component without authentication, according to the NVD assessment. - Public exploit material is referenced; active exploitation and a vendor fix are not confirmed. - Administrators should isolate affected routers, restrict management access, and check D-Link for an official firmware update.
CVE-2026-138361 affects D-Link R18 routers running firmware 1.20.B01. The critical flaw is a remotely reachable stack-based buffer overflow in the DHMAPI component of /bin/httpd. Because the reported attack requires no authentication or user interaction, exposed devices should be prioritized for immediate review.
For background on vulnerability severity and remediation planning, see our CVE vulnerability guide and what bot management means for exposed services.
No confirmed vendor remediation version was identified in the available reference material. Administrators should not assume that a newer firmware release fixes this CVE unless D-Link explicitly identifies the release as addressing CVE-2026-138361 or the underlying DHMAPI buffer overflow.
Analyst’s Take: The first operational question is not whether exploitation has been confirmed; it is whether an affected router can be reached from an untrusted network. Isolate those devices and restrict management access while checking D-Link for a release that explicitly addresses the CVE or the DHMAPI overflow.
Vulnerability at a Glance
| Field | Details |
|---|---|
| CVE ID | CVE-2026-138361 |
| Affected product | D-Link R18 router |
| Affected firmware | 1.20.B01 |
| CVSS score | 10.0 Critical |
| Attack vector | Network, remotely reachable |
| Authentication required | None indicated by the NVD assessment |
| User interaction | None indicated |
| Vulnerability type | Stack-based buffer overflow |
| Vulnerable component | DHMAPI in /bin/httpd |
| Vulnerable function | is_session_valid |
| Attacker-controlled input | API-AUTH argument |
| Patch available | No confirmed fixed version identified |
What Is This Vulnerability?
The vulnerability is a stack-based buffer overflow in the is_session_valid function of /bin/httpd, within the D-Link R18’s DHMAPI component. The reported trigger is manipulation of the API-AUTH argument. In practical terms, the service appears to process attacker-controlled data without adequately enforcing the destination buffer’s size.
A stack overflow can overwrite data adjacent to a local buffer, including control-flow information. Depending on compiler protections, memory layout, input constraints, and exploit quality, the result may range from a process crash to arbitrary code execution. The available sources confirm the overflow and remote attack path, but do not establish a reliable exploit chain, exact payload format, overwrite offset, or post-exploitation behavior.
A likely attack sequence is:
- The attacker reaches the router’s HTTP or DHMAPI service.
- The attacker submits a crafted
API-AUTHvalue. /bin/httpdpasses the value tois_session_valid.- The vulnerable routine overflows a stack buffer.
- The process crashes or, if exploitation is reliable, executes attacker-controlled operations.
The precise request path, required HTTP method, and payload structure have not been verified from the available material. Defenders should avoid relying on a single URL or signature when hunting for exploitation.
Who Is Affected?
The specifically identified affected product is the D-Link R18 router running firmware 1.20.B01. The NVD record available for this assessment identifies that firmware version but does not enumerate a broader range such as “all versions before X.”
| Product | Confirmed affected version | Confirmed fixed version |
|---|---|---|
| D-Link R18 | 1.20.B01 | None identified |
Devices may be at risk when their management interface or DHMAPI service is reachable from an attacker-controlled network. Internet-exposed administration interfaces represent the clearest concern, but internal exposure also matters. A compromised workstation, guest network client, infected IoT device, or hostile user on an adjacent network may be able to reach a router that is not directly exposed to the public Internet.
The available data does not confirm whether other R18 firmware builds contain the same vulnerable code. Organizations should inventory exact firmware versions rather than infer safety from the model number alone. If a device cannot be upgraded or its firmware version cannot be validated, treat it as potentially vulnerable and isolate its management plane.
CVSS Score Breakdown
NVD rates CVE-2026-138361 CVSS 10.0, Critical. The NVD API response available for this assessment supplied the score but not the authoritative vector string. A separate vulnerability summary describes the following CVSS 3.1 vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
That vector should be confirmed against the authoritative NVD record or a D-Link advisory before being treated as the definitive published vector.
| Metric | Value | Meaning |
|---|---|---|
| Attack Vector | Network | The attack can be delivered over a network connection |
| Attack Complexity | Low | No unusual conditions are expected to be required |
| Privileges Required | None | The attacker does not need an authenticated account |
| User Interaction | None | No victim action is required |
| Scope | Unchanged | Impact remains within the vulnerable security authority |
| Confidentiality | High | Successful exploitation could expose sensitive information |
| Integrity | High | Successful exploitation could alter device behavior or data |
| Availability | High | Successful exploitation could disrupt or disable the router |
The score describes vulnerability severity, not proof that every affected device is exploitable for reliable remote code execution. Exploitability may depend on firmware configuration, network exposure, memory protections, and implementation details that are not documented in the available sources. Still, the absence of authentication and user interaction means reachable devices should receive urgent defensive attention.
Exploitation Status
NVD states that the vulnerability has been publicly disclosed and that the exploit may be used. NVD also lists the GitHub repository jiangnandiyishenqin/D-link-R18A1 as a reference. The repository should be treated as potentially containing proof-of-concept or exploit-related material, although the available review did not verify its exact payload, reliability, or supported firmware configuration.
The current exploitation status is:
- Public disclosure: Yes, according to NVD.
- Public PoC or exploit-related reference: Yes, a GitHub repository is listed by NVD.
- Confirmed active exploitation in the wild: Not established by the available sources.
- CISA KEV status: Not listed at the time of checking.
- Confirmed ransomware use: None identified.
Absence from the CISA Known Exploited Vulnerabilities catalog does not prove that exploitation is not occurring. It means only that CISA had not listed this CVE in the catalog at the time of assessment. Given the critical severity and public exploit reference, defenders should prioritize exposed R18 devices even without confirmed widespread exploitation.
How to Detect It
Start with asset inventory. Identify every D-Link R18 router, record its firmware version, and determine whether its administration interface is reachable from the Internet, user VLANs, guest networks, or untrusted management segments. The key confirmed vulnerable version is 1.20.B01. Network scans should be performed carefully and only against systems the organization owns or is authorized to test.
Router logs may not record the vulnerable request consistently, and the available information does not provide a definitive URI, method, or byte-level network signature. Detection should combine HTTP logs, crash indicators, configuration monitoring, and network telemetry.
Relevant indicators include:
- Repeated malformed requests
- Unusually long
API-AUTHvalues - Unexpected management requests
- Abrupt HTTP daemon restarts
- Router reboots
- Unexpected DNS, port-forwarding, or remote-management changes
- New outbound connections from the router
Technical Notes
If HTTP access logs are exported to a central system, a preliminary query can search for the parameter name and unusually long values. This is a triage pattern, not a validated exploit signature:
index=network OR index=router
| search uri_query="*API-AUTH*" OR request="*API-AUTH*"
| eval auth_len=len(coalesce(uri_query, request))
| where auth_len > 256
| stats count min(_time) as first_seen max(_time) as last_seen
values(src_ip) as source_ips values(dest_ip) as routers
by host
The threshold of 256 bytes is heuristic and should be tuned to the organization’s normal traffic. It should not be presented as the exact overflow length.
Monitor for combinations of suspicious requests and device instability, such as an HTTP service restart shortly after a request:
<router> httpd: child process exited unexpectedly
<router> kernel: httpd[PID]: segfault
<router> system: watchdog: restarting httpd
<router> system: reboot requested
Those log strings are examples of patterns to hunt for, not confirmed D-Link R18 message formats. If the device does not expose process-level logs, collect upstream firewall and proxy records. Alert on external sources making HTTP requests to the router’s management address, especially when followed by a reboot, configuration change, DNS change, or new outbound connection.
Review configuration integrity as well. Unexpected changes to DNS servers, administrator accounts, port-forwarding rules, remote-management settings, or firmware state should be treated as possible compromise indicators. Preserve logs and configuration snapshots before resetting or replacing a suspicious device.
Mitigation and Patching
No confirmed fixed firmware version was identified for CVE-2026-138361. The affected firmware named by NVD is 1.20.B01, but the available material does not establish a D-Link release that resolves the issue. Administrators should check D-Link’s official support portal and security advisory channels for an R18 firmware update and verify that any proposed release explicitly addresses this vulnerability or the vulnerable DHMAPI code.
Until a verified fix is available:
- Disable Internet-facing administration.
- Restrict management access to a trusted administrative VLAN.
- Require VPN access for remote administration.
- Block management access from guest and IoT networks.
- Monitor for suspicious requests, crashes, and configuration changes.
- Replace the router if it cannot be isolated, upgraded, or reliably monitored.
Changing the management port is not a sufficient mitigation.
Technical Notes
The exact upgrade command depends on the R18 management interface and D-Link’s supported firmware process. No verified vendor CLI upgrade command was identified in the available sources, so administrators should use the official D-Link firmware update workflow rather than an unverified command or third-party image.
Before upgrading:
- Export a known-good configuration.
- Confirm the firmware source is an official D-Link channel.
- Verify the checksum where D-Link provides one.
- Record the current firmware version.
- Review release notes for an explicit security fix.
A practical operational sequence is:
1. Record the device model and current firmware version.
2. Download firmware only from D-Link's official support channel.
3. Verify the release notes identify the security fix or a version newer than 1.20.B01.
4. Back up the configuration without retaining unnecessary secrets in shared locations.
5. Upgrade through the documented R18 administration workflow.
6. Confirm the post-upgrade firmware version.
7. Disable remote administration and restrict management ACLs.
8. Rotate administrator credentials if compromise is suspected.
9. Review DNS, port forwarding, firewall, and remote-management settings.
Where supported by the deployment, enforce a management ACL similar to the following policy:
Internet -> Router management: DENY
Guest VLAN -> Router management: DENY
IoT VLAN -> Router management: DENY
Admin VPN or management VLAN -> Router management: ALLOW
This is a network-control pattern, not D-Link-specific configuration syntax.
If compromise is suspected, do not rely solely on a firmware upgrade. Isolate the router, preserve available logs and configuration evidence, reset it using the vendor’s documented recovery process, install a verified fixed firmware version if available, rotate credentials, and review downstream systems for signs of lateral movement or DNS manipulation.
References
- NVD: CVE-2026-138361 — vulnerability record, severity information, affected product, and public disclosure statement.
- GitHub: D-link-R18A1 — repository listed by NVD as a public reference associated with the vulnerability.
- VulDB: CVE-2026-138361 — additional vulnerability reference.
- VulDB vulnerability entry — related vulnerability database entry.
- Vuln.today D-Link summaries — supporting summary referenced in the research material.
The evidence supports treating CVE-2026-138361 as a critical, remotely reachable vulnerability affecting D-Link R18 firmware 1.20.B01. Public exploit-related material is referenced, but confirmed active exploitation has not been established. Because no fixed firmware version has been verified, organizations should first isolate affected routers and restrict management access, then monitor for suspicious requests and configuration changes while obtaining remediation guidance directly from D-Link.
This article may contain affiliate links. We earn a commission on qualifying purchases at no extra cost to you.