On this page (7 sections)
A command injection flaw, tracked as CVE-2026-138356, has been published for D-Link DMS-3130 and DXS-3130 devices running firmware 1.20.P006. According to the GitHub Advisory Database entry, the problem sits in a Lua script in the web interface and can be reached remotely. The entry also states that an exploit has been made public.
If you manage these switches, or an environment where they sit near production systems, this is worth a same-day look at who can reach their management interface. At the time of writing, the advisory lists patched versions as unknown, so exposure reduction matters more than waiting for a fix.
What was reported
The advisory describes an unknown function in the file application/webroot/lua/DataStore/369_copyfile.lua. Manipulating the argument http_src_file leads to OS command injection. The entry says the attack may be performed remotely and that the exploit has been made public and could be used.
The record was published on November 30, 2026. The GitHub entry is marked unreviewed, and the NVD page repeats the same description, so this is effectively one account of the issue rather than several independent confirmations. The references point to a public repository with technical material and to VulDB entries; this article does not reproduce any of that detail.
Understanding the weakness
OS command injection happens when a program builds a system command from input it receives and does not properly separate the data from the command. An attacker who controls that input can make the device run commands the developer never intended. Here, the input is a parameter named http_src_file, which suggests a file-copy feature in the management interface, though the advisory does not describe the feature further.
On a network switch, commands usually run with high privileges on the underlying system. The CVSS v4 metrics in the entry rate confidentiality, integrity and availability impact as high for both the vulnerable system and subsequent systems. That fits a device that sits in the middle of your network traffic.
Important limiting factor
The same metrics list attack vector as network, complexity as low, no user interaction, and privileges required as high. In practice that suggests an attacker likely needs a privileged login to the web interface first, although the advisory text does not spell this out. That lowers the risk compared with an unauthenticated flaw, but it does not remove it: weak, default, shared or stolen admin credentials are common on network gear, and a management interface exposed to a wider network makes them easier to abuse.
Who is realistically exposed
- Organizations running DMS-3130 or DXS-3130 devices on firmware 1.20.P006.
- Setups where the switch web management interface is reachable from the internet, a guest network, or a flat internal network.
- Environments that share admin accounts, reuse passwords, or never changed defaults on network equipment.
- Hosting and office networks where a compromised switch could expose traffic to other systems.
The research does not say whether other firmware versions or other D-Link models are affected. Only 1.20.P006 is named. Treat other versions as unconfirmed rather than safe, and check with D-Link.
How to check your exposure
Start with inventory. Log in to the device management interface or check your asset records to confirm the model and the firmware version. Then check who can reach the management interface.
This read-only command, run from a machine outside your management network, checks whether the switch web interface answers on the usual HTTPS port. Replace the placeholder with the switch address. A successful response from an untrusted network means the interface is reachable and should be restricted.
curl -k -I --max-time 5 https://SWITCH-ADDRESS/Also review the web interface access logs, if the device keeps them, and your syslog or central logging for unexpected logins or requests to file-copy functions. The advisory gives no indicators of compromise, so unusual admin activity, unexplained configuration changes or unexpected outbound connections from the switch are the signals to look for.
What to do now
- Identify every DMS-3130 and DXS-3130 device and record its firmware version.
- Restrict the web management interface to a dedicated management VLAN or a small list of admin IP addresses, and block it from the internet and user networks.
- Change admin passwords to unique, long values and remove unused or shared admin accounts.
- Check the D-Link support site at https://www.dlink.com/ for a firmware update or advisory for these models, and apply it once one is published.
- Review device and network logs for unexpected logins, configuration changes or unusual outbound traffic from the switches.
- If you suspect a device was abused, export its configuration for review, then reset credentials and restore from a known good configuration.
Detection and monitoring
Because a patch is not confirmed, ongoing monitoring is your main safety net. Alert on logins to the switch from addresses outside your admin range, configuration changes outside maintenance windows, and new outbound connections from the switch itself. Forward device logs to a central system so they survive a compromise of the device.
If any of these switches front a service you publish, an outside-in check of your public hosts can show what is exposed to the internet. The free SSL checker can help you review certificates on exposed management pages, and Webforta Monitor can watch for certificate and DNS changes. These do not detect this flaw itself. For broader habits that limit the damage from device flaws like this one, see our guide to small business website security.
What is still unknown
- Whether D-Link has released fixed firmware or plans to.
- Whether other firmware versions or models are affected.
- Whether the flaw is being exploited in the wild. The research does not confirm attacks, though a public exploit lowers the barrier.
- The exact authentication requirement in practice, beyond the high-privileges rating in the CVSS metrics.
The GitHub entry is unreviewed and rests on a single description, so details may change as D-Link or other researchers weigh in.
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.
