On this page (7 sections)
A new vulnerability, CVE-2026-138357, affects the D-Link DMS-3130 and DXS-3130 on version 1.20.P006. According to the GitHub Advisory Database entry, the SSL Certificate Import Endpoint mishandles the file_name argument in a way that allows OS command injection over the network. The advisory also states that the exploit has been publicly disclosed.
If you run these D-Link devices, or manage them for a customer, treat the management interface as something that must not be reachable from untrusted networks until you have confirmed what firmware you run and whether D-Link has published a fix. The sources reviewed do not identify a patched version.
What was disclosed
The NVD record describes a flaw in an unknown functionality of the file 898_ssl_global.lua, part of the SSL Certificate Import Endpoint. Manipulating the argument file_name leads to OS command injection, and the attack can be started remotely. The NVD text repeats the GitHub advisory wording, so these are one description, not two independent confirmations.
The advisory references a public repository and several VulDB pages, including VulDB entry 445160. We have not seen a D-Link security bulletin for this issue in the research, so the vendor's position, affected version range and fix status are unconfirmed.
Technical details in plain terms
The weakness is classified as CWE-77 and CWE-78, both forms of command injection. This happens when a program builds a shell command using text supplied by a user and does not neutralize special characters. The device then runs more than the developer intended, typically with the privileges of the component that handles the request.
Here the input in question is a file name submitted during an SSL certificate import. Certificate upload features are a common place for this bug class because a file name is often reused in commands that move, parse or install the file. The advisory does not describe the exact code path, so this is general context rather than a confirmed detail of this flaw.
What the CVSS v4 metrics say
- Attack vector: network, so the attacker does not need to be on the same segment as the device.
- Attack complexity: low, with no special attack requirements.
- Privileges required: low. The attacker appears to need some level of access, though the advisory does not say what kind.
- User interaction: none.
- Impact: high for confidentiality, integrity and availability, on both the vulnerable system and subsequent systems.
A low privilege requirement suggests this is probably not an unauthenticated bug, but do not read that as safe. Weak, default or shared management credentials would lower that bar considerably.
Who is realistically exposed
Exposure depends on who can reach the management interface. A device whose web interface is only reachable from a dedicated management VLAN has a much smaller attack surface than one reachable from the internet or from general user networks. The highest-risk cases are:
- Management interfaces exposed to the internet, including through port forwarding or remote-management features.
- Devices reachable from large internal networks such as guest, Wi-Fi or office user segments.
- Devices using default, shared or weak administrative credentials.
- Environments that do not track which firmware version each switch runs.
A compromised switch can give an attacker a position to observe or interfere with traffic and to move toward other systems, which is why this matters even for sites that only host a website behind the device.
How to check your exposure
- Inventory every D-Link DMS-3130 and DXS-3130 you own or manage, including those at customer sites and in colocation.
- Open the device's firmware or system information page and note the running version. Version 1.20.P006 is the one named in the advisory.
- Find out from where the management web interface is reachable. Test from an ordinary user network and, with permission, from outside your network.
- Review the accounts configured on each device and remove unused ones.
- Check the device's logs, if it keeps any, for certificate import requests you do not recognize.
A read-only check from a machine outside your network shows whether the HTTPS management port answers. Run it only against addresses you own or are authorized to test, and replace the placeholder with the device address. Any HTTP response means the interface is reachable from where you ran it.
curl -k -I --max-time 10 https://DEVICE_ADDRESS/What to do now
No fixed firmware is identified in the research, so the priority is reducing who can reach the vulnerable function.
- Restrict the management interface to a dedicated management network or specific administrator addresses using ACLs or firewall rules.
- Disable any remote management from the internet.
- Change default and shared administrative passwords and use unique, long credentials per device.
- Remove unneeded accounts, since the metrics suggest at least a low level of access is required.
- Check the D-Link website and your reseller for a security bulletin or newer firmware, and apply it once available after reading the release notes.
- Back up the device configuration before any firmware change.
- Avoid importing SSL certificates through the web interface from untrusted sources until you know the issue is fixed.
- If a device looks tampered with, restore from a known-good configuration, rotate credentials and review connected systems.
Detection and monitoring afterwards
Because a public exploit exists, assume scanning for these devices is possible even though no in-the-wild attacks are confirmed in the research. Watch for unexpected configuration changes, new administrator accounts, unexplained reboots, and outbound connections from the device to addresses you do not recognize. Forward device logs to a central system where possible so they survive a compromise of the device itself.
For the public-facing side, a free SSL certificate checker and certificate and DNS monitoring can alert you if a certificate or record changes unexpectedly. These do not inspect the switch itself and do not fix this flaw, but they help you notice downstream changes quickly.
For broader background on keeping a small environment tidy, see our guide to small business website security, or browse the Webforta blog for other disclosures affecting network equipment.
What is still unknown
- Whether versions other than 1.20.P006 are affected.
- Whether D-Link has acknowledged the issue or released a patch.
- Which privilege level is needed to reach the endpoint.
- Whether attacks are happening in the wild. The advisory says only that the exploit is public and may be used.
- The GitHub advisory is marked unreviewed, so details may change as the record is updated.
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.
