Introduction
A single filename submitted to a switch management interface can turn into a shell command on D-Link DMS-3130 and DXS-3130 aggregation switches. CVE-2026-138358 is an OS command injection in the Nuclias Manager profile import path, where an attacker-influenced filename reaches an unquoted shell command before the imported profile is ever validated.
The DMS-3130 and DXS-3130 are 10G Layer 3 stackable aggregation managed switches that D-Link positions for enterprise, campus, and high-rise building deployments. They support web management, CLI, SNMP, and integration with a Nuclias network controller, which is the subsystem involved in this vulnerability. Because these devices sit at the aggregation layer, their management plane is a meaningful security boundary.
Technical Information
The affected component is Nuclias Manager Profile Import. The vulnerable function is http_import_nuclias_manager_profile, located in the Lua file 464_Nuclias_Manager_Settings.lua. The request argument that carries the malicious input is nuclias_manager_profile_src_file_name.
Root cause
According to the researcher submission, the data flow begins when a POST-supplied filename is assigned to input_nuclias_manager_profile_file_name. After a read/write privilege check, a nonempty value is passed into http_import_nuclias_manager_profile(). Inside the function, the value is assigned to src_file, the /mnt/download/ path is used, and an unquoted mv command is constructed and then executed.
The ordering is what matters. The submission identifies command construction and execution at lines 88 and 89, while validation of the imported Nuclias Manager profile happens later, at lines 260 through 262. The OS command runs before the profile is validated. So the vulnerability concerns filename handling and command construction, not the validity of the profile contents. Correcting the profile validation alone would not remove the injection path.
The CVE is classified under CWE-77 (Improper Neutralization of Special Elements used in a Command) and CWE-78 (Improper Neutralization of Special Elements used in an OS Command). MITRE describes the underlying weakness as inadequate neutralization of externally influenced command elements, whose documented potential consequences include execution of unauthorized OS commands, data access or modification, and disabling the affected product. Those are weakness-level consequences, not proof that each outcome has been demonstrated on these switches.
Access prerequisites
The CVE description states the vulnerability is remotely reachable. The researcher submission, however, explicitly describes an authenticated issue protected by a read/write privilege check. The CVSS vectors are consistent with this: network access, low attack complexity, low privileges required, and no user interaction. Remote exploitation here should not be conflated with exploitation without credentials. The reviewed submission also does not establish the operating system account under which injected commands run, and does not prove root privileges.
Scoring
The published scores differ by source and metric, and should be read with their labels:
| Source and metric | Published value |
|---|---|
| CVE record, CVSS v3.1 | 9.9, Critical |
| CVE record, CVSS v4.0 | 9.4, Critical |
| NVD, CNA CVSS v4.0 CVSS-BT | 8.6, High |
| NVD, NIST assessment | N/A |
The published CVSS v3.1 vector is:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C
The published CVSS v4.0 vector is:
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
Attack flow
Based on the briefing, an attacker with the required low-privilege read/write access submits a crafted profile import request to the 464_Nuclias_Manager_Settings.lua endpoint on an affected 1.20.P006 switch. The attacker sets the nuclias_manager_profile_src_file_name value to contain shell metacharacters. The filename is stored, passes the privilege check, and is passed into http_import_nuclias_manager_profile(), where it is interpolated into an unquoted mv command string that is executed. Because execution occurs before profile validation, the injected command runs regardless of whether the supplied profile would later pass validation.
Proof of Concept
A public proof of concept is distributed through the researcher's GitHub repository jiangnandiyishenqin/D-link-DMS_DXS-3130, which the official CVE record (assigned by VulDB) references with an exploit tag. This is the same researcher account that published PoCs for sibling D-Link switch command injection issues such as CVE-2026-138356 and CVE-2026-138357.
The repository contains a single committed file, a packaged exploit archive:
{ "name": "DMS-DXS3130.zip", "path": "DMS-DXS3130.zip", "size": 776760, "sha": "552e0d9cf8e8750b429fc6285cd84c7f75b0abe9", "download_url": "https://raw.githubusercontent.com/jiangnandiyishenqin/D-link-DMS_DXS-3130/main/DMS-DXS3130.zip" }
The archive (DMS-DXS3130.zip, approximately 776 KB) bundles the write-up and exploit materials for the DMS/DXS-3130 Nuclias Manager Profile Import command injection chain. Because the PoC is delivered only as a binary ZIP blob, with no plain text script or README exposed in the repository tree, the exact exploit script contents could not be extracted or independently validated. Only the presence, provenance, and vendor- and CVE-level technical description of the PoC were verified. Reproduction requires downloading and unpacking the archive, after which the import request can be crafted to inject shell metacharacters into the nuclias_manager_profile_src_file_name parameter against a 464_Nuclias_Manager_Settings.lua profile import endpoint on an affected 1.20.P006 switch.
Affected Systems and Versions
The reported affected versions are:
- D-Link DMS-3130, firmware 1.20.P006
- D-Link DXS-3130, firmware 1.20.P006
The records establish these specific versions. They do not establish that every earlier or later firmware release is or is not vulnerable, so operators should not infer the status of other versions from this record alone. No CVE-specific vendor fix is confirmed in the reviewed sources. D-Link release notes list V1.31.001 dated April 1, 2026 for DMS-3130 A1 and DXS-3130 A1 hardware, but those notes do not identify CVE-2026-138358 or the vulnerable function, and require an intermediate V1.30.000 upgrade and reboot before moving from V1.20.XXX to V1.31.XXX. A newer release number alone is not a remediation assurance.
Vendor Security History
D-Link began as Datex Systems in 1986 and listed on the Taiwan Stock Exchange in 1994 under stock code 2332. On July 2, 2019, the US Federal Trade Commission announced a proposed settlement concerning D-Link routers and Internet-connected cameras, alleging misleading security representations and inadequate secure development practices, including insufficient testing and remediation, hard-coded camera credentials, and clear-text storage of mobile application credentials. The announced settlement required a comprehensive software security program for the covered cameras and routers, including threat modeling, vulnerability testing before release, ongoing monitoring, automatic firmware updates, acceptance of researcher reports, and independent assessments every two years for ten years. Those allegations and obligations concerned cameras and routers, not the DMS-3130 or DXS-3130, and do not establish the security outcome for this particular firmware path. D-Link states that its Product Security Team handles vulnerability receipt, investigation, and public reporting, and that its security publications disclose the minimum information needed for customers to assess impact while withholding details that could enable exploit development.
References
- NVD: CVE-2026-138358
- CVE Record: CVE-2026-138358
- MITRE CVE Services API: CVE-2026-138358
- VulDB: CVE-2026-138358
- VulDB Submission #1075833
- VulDB CVE listing
- Researcher PoC repository
- GitHub repository contents API
- isMalicious: CVE-2026-138358
- DMS/DXS-3130 Series Firmware Release Notes v1.31.001
- DXS-3130 Series Web UI Reference Guide
- DXS-3130 Series Datasheet
- D-Link Unveils DXS-3130 Series Layer 3 Switches
- CWE-78: OS Command Injection
- CWE-77: Command Injection
- FTC: D-Link Agrees to Make Security Enhancements
- D-Link



