PT-2022-6583 · D Link · D-Link Dir-2640

Published

2022-12-22

·

Updated

2025-08-06

·

CVE-2023-32150

CVSS v2.0

7.4

High

VectorAV:A/AC:M/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions D-Link DIR-2640 (affected versions not specified)
Description This issue allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-2640 routers. Although authentication is required to exploit this issue, the existing authentication mechanism can be bypassed. The specific flaw exists within the handling of the PrefixLen parameter provided to the "HNAP1" endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this issue to execute code in the context of root.
Recommendations At the moment, there is no information about a newer version that contains a fix for this issue.

Fix

RCE

OS Command Injection

Command Injection

Weakness Enumeration

Related Identifiers

BDU:2023-02611
CVE-2023-32150
ZDI-23-542

Affected Products

D-Link Dir-2640