Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Critical 9.9CVE-2026-138102

D-Link DIR-620S: OS command injection in diagnostic handler (anweb)

Published 29/11/2026 · Updated 30/11/2026 · D-Link DIR-620S

Summary

A critical vulnerability (CVSS 9.9) was found in the D-Link DIR-620S router, firmware version 4.0.2, in the Diagnostic Handler (/usr/sbin/anweb). Improper handling of the argument "I" allows OS command injection (CWE-78/CWE-77).

Per the CVSS vector, the attack is network-based, low complexity and requires no user interaction, but the attacker needs a low-privileged account on the device. Scope is changed (S:C), meaning impact can extend beyond the vulnerable component. Successful exploitation allows arbitrary command execution on the device with full loss of confidentiality, integrity and availability.

An exploit has been publicly disclosed (proof of concept on GitHub). The vulnerability is not listed in CISA KEV. EPSS is about 2.2% (83rd percentile).

Who is affected

Organizations and users running D-Link DIR-620S routers with firmware 4.0.2, especially where the web interface is reachable over the network.

What to do

  1. No fixed version is listed; check D-Link's official advisory and support pages (https://www.dlink.com/) for a patch or the device's support status.
  2. Inventory all DIR-620S devices and identify those running firmware 4.0.2.
  3. Restrict access to the web/management interface to trusted internal addresses and disable remote management from the Internet.
  4. Review and limit user accounts on the device, since the attack requires authentication, and use strong, unique passwords.
  5. If no patch is available, consider replacing the device with a supported model and monitor for unusual traffic or configuration changes.

Affected products and versions

D-Link DIR-620S4.0.2

CVSS vector, explained

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:R

Attack vector
Network (from the internet)
Attack complexity
Low
Privileges required
Regular user
User interaction
Not required
Scope
Affects other components
Confidentiality
High impact
Integrity
High impact
Availability
High impact

Weakness type (CWE)

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.