Automated Threat Modeling

Brief Summary: D-Link DMS-3130/DXS-3130 CVE-2026-138357 SSL Certificate Import OS Command Injection

A brief summary of CVE-2026-138357, an authenticated OS command injection in the SSL certificate import endpoint of D-Link DMS-3130 and DXS-3130 switches running firmware 1.20.P006, including notes on the publicly available proof-of-concept.

CVE Analysis

7 min read

Gaurav Sarraf
Gaurav Sarraf

2026-11-29

Brief Summary: D-Link DMS-3130/DXS-3130 CVE-2026-138357 SSL Certificate Import OS Command Injection

Introduction

Managed enterprise switches sit at the edge of access and aggregation networks, so any remote command execution on their management plane is worth attention. CVE-2026-138357 lets an authenticated administrator of a D-Link DMS-3130 or DXS-3130 switch running firmware 1.20.P006 turn a routine SSL certificate import into arbitrary operating system command execution on the device.

D-Link positions the DMS-3130 series for secure enterprise and metro Ethernet access networks and the DXS-3130 series for Layer 3 aggregation in enterprise and metro deployments. The vendor reports 90 operating and sales locations across 43 countries, which indicates international reach rather than a measured market share. Both families expose a web-based management interface, and the affected functionality is part of that administrative surface.

Technical Information

The root cause is improper neutralization of shell metacharacters in the SSL Certificate Import Endpoint, implemented in the Lua script 898_ssl_global.lua. The weakness is classified under CWE-77 (Command Injection) and CWE-78 (OS Command Injection).

According to the accepted VulDB submission, the vulnerable request is authenticated and dispatched only after a read/write privilege check. Once that check passes, the handler processes the submitted file_name POST parameter as follows:

  • The handler assigns form_post.file_name to a variable named src_file.
  • It invokes usmDbHttpTransferFilePrepare and obtains an SSL temporary path.
  • It derives a destination basename from that path.
  • The original src_file value is then interpolated into a command string and executed without quoting.

Although the destination basename is processed separately, the retained source filename (src_file) is what reaches command execution. So attacker-controlled filename data, carried in file_name, is the dangerous input. The demonstration documented in the submission uses the certificate import branch selected by radisCertFile=1. The handler also supports private key import, but the submission does not establish a separate demonstrated exploit for that branch.

Attack flow

Based on the briefing, exploitation proceeds along these steps:

  1. The attacker reaches the switch web management interface over the network (AV:N, AC:L).
  2. The attacker authenticates with an account that passes the read/write privilege check required before the handler executes (PR:L; CVSS 2.0 Au:S).
  3. The attacker invokes the SSL certificate import functionality, selecting the certificate import branch (radisCertFile=1).
  4. The attacker supplies a crafted file_name value containing shell command separators or metacharacters such as command substitution or chaining operators.
  5. Because 898_ssl_global.lua builds the OS command string from this input without sanitization or quoting, the injected commands execute in the device operating system context, which yields remote command execution on the switch.

The ATT&CK technique mapped to this behavior is T1202 (Indirect Command Execution). No user interaction is required, scope is marked changed, and the scoring reflects high confidentiality, integrity and availability impact.

Severity scoring

Several differently labeled metrics are published, and they are not interchangeable. The CVE record shows CVSS 3.1 of 9.9 Critical with the vector:

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:R

The CVE record also shows CVSS 4.0 of 9.4 Critical, while NVD displays a CNA CVSS-BT of 8.6 High and no independent NVD assessment. CVSS 2.0 is given as 9.0 with Au:S, reflecting single authentication. When citing a number, keep the scoring version and label alongside it.

Proof of Concept

A public proof-of-concept is confirmed to exist. The referenced exploit and advisory are hosted on GitHub at jiangnandiyishenqin/D-link-DMS_DXS-3130 (created and pushed 2026-11-05, default branch main). The repository contains a single artifact, a binary archive named DMS-DXS3130.zip (approximately 777 KB, SHA 552e0d9cf8e8750b429fc6285cd84c7f75b0abe9).

The download URL is:

https://raw.githubusercontent.com/jiangnandiyishenqin/D-link-DMS_DXS-3130/main/DMS-DXS3130.zip

VulDB lists this archive as the downloadable advisory and proof-of-concept exploit. The documented exploitation methodology is as described above: an authenticated user invokes the SSL certificate import functionality and supplies a crafted file_name value containing shell command separators or metacharacters, which 898_ssl_global.lua incorporates into an OS command string without sanitization.

No inline exploit source code or exact request payload could be reproduced here. The PoC is distributed solely as a binary ZIP archive rather than as plaintext in the repository, so the precise injection string sits inside that downloadable package. The existence and public availability of the PoC are corroborated across the VulDB CNA record (VDB-445160 / submission #1075832 by submitter Luminaa), cvefeed.io, and the official CVE reference list. The exploit status is Access = Public, Status = Proof-of-Concept, with the exploit price estimated at USD 0 to 5k.

Affected Systems and Versions

AttributeDMS-3130DXS-3130
Identified affected firmware1.20.P0061.20.P006
Affected componentSSL Certificate Import EndpointSSL Certificate Import Endpoint
Affected file898_ssl_global.lua898_ssl_global.lua
Attacker controlled parameterfile_namefile_name

The CVE and NVD records establish these two product families and the 1.20.P006 release. They do not establish that every other release or hardware revision is affected. The PoC briefing notes that a later firmware version, v1.31.001, is published on D-Link's support portal. The core reviewed records did not confirm a fixed release, so operators should verify the support outcome directly with the vendor.

Vendor Security History

In its July 2, 2019 account, the FTC described allegations that D-Link failed to adequately test routers and Internet-connected cameras for known security flaws, including hard-coded camera credentials and clear-text storage of application credentials. The proposed order required a comprehensive software security program, including security planning, threat modeling, testing and remediation before release, product monitoring, firmware update measures, acceptance of researcher reports, independent assessments every other year for the next decade, and annual senior management certification. Those were allegations concerning other product categories. They do not establish that the affected switches share the earlier alleged defects, that D-Link violated that order in this case, or that this CVE has been exploited. D-Link assigns receipt, investigation and public reporting of vulnerabilities to its Product Security Team, but a confirmed fixed release and a CVE-specific vendor repair commitment remained unavailable in the core reviewed evidence.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization