CVE-2026-138289
Deferred Deferred - Pending Action

OS Command Injection in D-Link DSL-2640B

Vulnerability report for CVE-2026-138289, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-29

Last updated on: 2026-11-29

Assigner: VulDB

Description

A vulnerability was found in D-Link DSL-2640B 3.0.6.0.41. This impacts the function SecCfgMngr::setDmzHost of the component DMZ Host Handler. Performing a manipulation of the argument address results in os command injection. The attack may be initiated remotely. The exploit has been made public and could be used.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-29
Last Modified
2026-11-29
Generated
2026-11-29
AI Q&A
2026-11-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
D-Link DSL-2640B 3.0.6.0.41

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-138289 is an OS command injection flaw in D-Link DSL-2640B firmware 3.0.6.0.41. The vulnerability exists in the DMZ Host Handler function SecCfgMngr::setDmzHost, where the address parameter is improperly validated and inserted into shell commands via sprintf. Attackers can inject arbitrary commands through the /scdmz.cmd endpoint, which are executed via /bin/sh -c. The flaw allows remote code execution without authentication due to a hard-coded admin account.

Detection Guidance

Check if your D-Link DSL-2640B router is running firmware version 3.0.6.0.41. Test the /scdmz.cmd endpoint by sending a crafted HTTP request with a malicious address parameter to see if arbitrary commands execute. Example: curl 'http://<router-ip>/scdmz.cmd?address=1.1.1.1;id'

Verify if the DMZ feature is enabled and if the address parameter accepts unsanitized input. Monitor network traffic for unusual outbound connections from the router.

Impact Analysis

This vulnerability enables attackers to execute arbitrary commands on the device with root privileges. An attacker could gain full control over the router, intercept network traffic, install malware, or use the device as a pivot point to attack other systems on the network. The exploit can be triggered remotely if the device has a configured WAN entry.

Compliance Impact

This vulnerability allows remote code execution via OS command injection in the DMZ host handler of D-Link DSL-2640B. If exploited, attackers could gain root access, potentially leading to unauthorized data access, modification, or exfiltration. This could violate GDPR's data protection requirements and HIPAA's security rules for safeguarding sensitive information.

Mitigation Strategies

Disable the DMZ feature on the router if not needed. Apply firmware updates if available from D-Link. Restrict access to the router's admin interface by changing default credentials and enabling firewall rules.

Block external access to the /scdmz.cmd endpoint via network segmentation or firewall rules. Monitor for suspicious activity and consider replacing the device if no patch is issued.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138289. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...