# CVE-2026-138288: D-Link DSL-2640B wancfg.cmd cgiWanCfg os command injection

- Severity: Critical 10.0 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.52%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-29T16:45:20.683Z
- Modified: 2026-11-30T18:18:51.800Z
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- D-Link DSL-2640B: 3.0.6.0.41

## Every score

- VulDB: CVSS:4.0 10.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P`
- VulDB: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C`
- VulDB: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C`
- VulDB: CVSS:2.0 10.0 Critical `AV:N/AC:L/Au:N/C:C/I:C/A:C/E:POC/RL:ND/RC:C`

## References

- <https://github.com/dujiaode/DSL2640B/tree/main/02-wancfg-ifname-cmd-injection> (exploit)
- <https://vuldb.com/vuln/445113> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/445113/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-138288> (third-party-advisory)
- <https://vuldb.com/submit/1074580> (third-party-advisory)
- <https://www.dlink.com/> (product)

## Sources

- CVE List: [CVE-2026-138288](https://www.cve.org/CVERecord?id=CVE-2026-138288), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138288](https://nvd.nist.gov/vuln/detail/CVE-2026-138288), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138288 · Whole record: https://cve.day/CVE-2026-138288.json · Rebuilt by cve.day 2026-11-30T18:32:17.255Z
