Summary
CVE-2026-138365 is a stack-based buffer overflow in the D-Link R18 A1 router firmware version 1.20.B01. The flaw is in the is_session_valid function of /bin/httpd. It is rated Critical (CVSS v3.1 base score 10.0) and the CVE record describes it as remotely exploitable over the network without authentication or user interaction.
Technical details
- Root cause: Stack-based buffer overflow (CWE-121, also tagged CWE-119) in the
is_session_validfunction of the/bin/httpdbinary. - Trigger conditions: Manipulating input handled by the affected function causes the overflow. The CVE record does not state which parameter is affected.
- Attack vector: Network. No privileges and no user interaction are required, per the CVSS vector.
- Impact: Per the CVSS vector, high impact to confidentiality, integrity and availability, with scope changed. The CVE record does not describe a specific exploitation outcome such as code execution.
- Exploit status: The CVE record references a public exploit repository, and the CVSS vector carries a proof-of-concept exploit maturity flag (E:P).
Affected software
- D-Link R18 A1, firmware 1.20.B01
Severity
- CVSS v3.1 base score: 10.0 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:R - CVSS v4.0 score: 10.0 (Critical)
Mitigation and recommended actions
- Immediate: No fixed firmware version was identified in the sources reviewed. Check the D-Link support site and security announcements for a patched R18 A1 firmware, and apply it once available.
- If no patch is available:
- Do not expose the router’s web management interface (
httpd) to the internet or untrusted networks. - Restrict management access to trusted internal hosts only.
- Consider replacing the device if the vendor does not provide a fix. Some D-Link products reach end-of-life, but the sources reviewed do not state the support status of the R18.
- Monitor for unexpected crashes or restarts of the web service, and for unusual requests to the management interface.
- Do not expose the router’s web management interface (

