New CVE Detected

CVE-2026-138288 – OS Command Injection (RCE) – D-Link DSL-2640B firmware 3.0.6.0.41

Get a free Attack Surface scan to see if you’re exposed.

Be the first to know when new zero-days emerge:

Summary

CVE-2026-138288 is an OS command injection vulnerability (CWE-78) in the D-Link DSL-2640B router, firmware 3.0.6.0.41. The flaw is in the cgiWanCfg function of /wancfg.cmd. It is rated critical (CVSS 10.0), and a public exploit is available.

Technical details

  • Root cause: The ifname argument of /wancfg.cmd (function cgiWanCfg) is inserted without validation into a shell command (echo %d > /proc/var/fyi/wan/%s/wanup) that is run through /bin/sh -c.
  • Trigger conditions: A single crafted HTTP request to /wancfg.cmd with a malicious ifname value. According to the public write-up, no WAN configuration or interface state is required. The effective payload is limited to about 15 bytes and should end with #.
  • Authentication: The public write-up states the endpoint nominally requires administrative credentials. It also reports a hardcoded account in the firmware, which makes exploitation possible without legitimate credentials. This detail comes from the researcher’s write-up, not from the CVE record.
  • Attack vector: Network. The CVE record states the attack can be launched remotely and that the exploit has been disclosed publicly.
  • Impact: Arbitrary command execution on the device. The public write-up reports execution as root.

Affected software

  • D-Link DSL-2640B, firmware 3.0.6.0.41 (the write-up tests hardware revision A).

Severity

  • CVSS v3.1 base score: 10.0 (Critical)
  • Vector: 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

Mitigation and recommended actions

  • Immediate: No vendor patch or advisory was identified in the sources reviewed. Check D-Link’s support channels for updates or end-of-life status for this model.
  • Do not expose the device’s web management interface to the internet. Restrict access to trusted internal networks only.
  • Block external access to /wancfg.cmd and to the management interface at the perimeter.
  • Where the device cannot be secured, replace it with a supported model.
  • Monitor for unexpected requests to /wancfg.cmd with shell metacharacters (such as ; and #) in ifname.

References

Get a free Attack Surface scan to see if you’re exposed.

Get a free Attack Surface scan to see if you’re exposed.

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge