CVE-2026-138288
Deferred Deferred - Pending Action

OS Command Injection in D-Link DSL-2640B

Vulnerability report for CVE-2026-138288, 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 has been found in D-Link DSL-2640B 3.0.6.0.41. This affects the function cgiWanCfg of the file /wancfg.cmd. Such manipulation of the argument ifname leads to os command injection. The attack can be launched remotely. The exploit has been disclosed to the public and may 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

This vulnerability is a command injection flaw in the D-Link DSL-2640B router firmware version 3.0.6.0.41. It exists in the web management CGI dispatcher at the /wancfg.cmd endpoint where the ifname parameter is passed unsafely into a shell command without proper validation. The vulnerable code uses sprintf to construct a command that writes to a system file, which is then executed via /bin/sh -c. An attacker can exploit this by sending a crafted GET request with a malicious ifname parameter, allowing arbitrary command execution as the root user.

Detection Guidance

Check if your D-Link DSL-2640B router is running firmware version 3.0.6.0.41 by accessing the admin panel or checking system logs. Send a crafted GET request to /wancfg.cmd with a test payload like ifname=test;id to see if arbitrary commands execute. Use network scanning tools to detect open ports and unusual traffic patterns.

Impact Analysis

This vulnerability allows remote attackers to execute arbitrary commands on the affected router with root privileges. This could lead to full system compromise, unauthorized access to network resources, data theft, or the ability to modify router settings. Since no authentication is required in practice, the attack can be launched remotely without any prior access.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating confidentiality requirements in GDPR and HIPAA. It may result in data breaches, unauthorized data exposure, or loss of control over network infrastructure, potentially leading to non-compliance with data protection regulations.

Mitigation Strategies

Immediately update the router firmware to the latest version if an update is available. Disable remote administration if not required. Block external access to the /wancfg.cmd endpoint via firewall rules. Monitor network traffic for suspicious activity targeting this endpoint.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138288. 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...