---
id: CVE-2026-138288
title: A vulnerability has been found in D-Link DSL-2640B 3.0.6.0.41
summary: >-
  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 …
severity: critical
cvss: 10
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-77
  - CWE-78
published: '2026-11-29'
updated: '2026-11-30'
sourceUpdated: '2026-11-30T18:18:51.800'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-138288'
references:
  - url: >-
      https://github.com/dujiaode/DSL2640B/tree/main/02-wancfg-ifname-cmd-injection
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-138288'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/1074580'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/445113'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/445113/cti'
    label: cna@vuldb.com
  - url: 'https://www.dlink.com/'
    label: cna@vuldb.com
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.02517
epssPercentile: 0.85286
ingestedAt: '2026-11-29T19:05:50.762Z'
vendor: D-Link
product: DSL-2640B
affected:
  - DSL-2640B 3.0.6.0.41
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-11-30T17:13:34.396355Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
