ID

VAR-202305-0267


CVE

CVE-2023-32147


TITLE

D-Link DIR-2640 LocalIPAddress Command Injection Remote Code Execution Vulnerability

Trust: 1.3

sources: ZDI: ZDI-23-539 // CNVD: CNVD-2025-23630

DESCRIPTION

D-Link DIR-2640 LocalIPAddress Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-2640 routers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed. The specific flaw exists within the handling of the LocalIPAddress 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 vulnerability to execute code in the context of root. Was ZDI-CAN-19544. D-Link Systems, Inc. of DIR-2640 The firmware has OS A command injection vulnerability exists.Information is obtained, information is tampered with, and service operation is interrupted. (DoS) It may be in a state. The D-Link DIR-2640 is a high-power Wi-Fi router manufactured by D-Link in Taiwan

Trust: 2.88

sources: NVD: CVE-2023-32147 // JVNDB: JVNDB-2023-029388 // ZDI: ZDI-23-539 // CNVD: CNVD-2025-23630 // VULMON: CVE-2023-32147

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2025-23630

AFFECTED PRODUCTS

vendor:d linkmodel:dir-2640scope: - version: -

Trust: 2.1

vendor:dlinkmodel:dir-2640scope:eqversion:1.11b02

Trust: 1.0

vendor:d linkmodel:dir-2640scope:eqversion:dir-2640 firmware 1.11b02

Trust: 0.8

vendor:d linkmodel:dir-2640scope:eqversion: -

Trust: 0.8

sources: ZDI: ZDI-23-539 // CNVD: CNVD-2025-23630 // JVNDB: JVNDB-2023-029388 // NVD: CVE-2023-32147

CVSS

SEVERITY

CVSSV2

CVSSV3

zdi-disclosures@trendmicro.com: CVE-2023-32147
value: MEDIUM

Trust: 1.0

OTHER: JVNDB-2023-029388
value: MEDIUM

Trust: 0.8

ZDI: CVE-2023-32147
value: MEDIUM

Trust: 0.7

CNVD: CNVD-2025-23630
value: HIGH

Trust: 0.6

CNVD: CNVD-2025-23630
severity: HIGH
baseScore: 7.2
vectorString: AV:A/AC:L/AU:M/C:C/I:C/A:C
accessVector: ADJACENT_NETWORK
accessComplexity: LOW
authentication: MULTIPLE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 4.1
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.6

zdi-disclosures@trendmicro.com: CVE-2023-32147
baseSeverity: MEDIUM
baseScore: 6.8
vectorString: CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
attackVector: ADJACENT
attackComplexity: LOW
privilegesRequired: HIGH
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
exploitabilityScore: 0.9
impactScore: 5.9
version: 3.0

Trust: 1.0

OTHER: JVNDB-2023-029388
baseSeverity: MEDIUM
baseScore: 6.8
vectorString: CVSS:3.0/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
attackVector: ADJACENT NETWORK
attackComplexity: LOW
privilegesRequired: HIGH
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
exploitabilityScore: NONE
impactScore: NONE
version: 3.0

Trust: 0.8

ZDI: CVE-2023-32147
baseSeverity: MEDIUM
baseScore: 6.8
vectorString: AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
attackVector: ADJACENT
attackComplexity: LOW
privilegesRequired: HIGH
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
exploitabilityScore: 0.9
impactScore: 5.9
version: 3.0

Trust: 0.7

sources: ZDI: ZDI-23-539 // CNVD: CNVD-2025-23630 // JVNDB: JVNDB-2023-029388 // NVD: CVE-2023-32147

PROBLEMTYPE DATA

problemtype:CWE-78

Trust: 1.0

problemtype:OS Command injection (CWE-78) [ others ]

Trust: 0.8

sources: JVNDB: JVNDB-2023-029388 // NVD: CVE-2023-32147

PATCH

title:D-Link has issued an update to correct this vulnerability.url:https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10323

Trust: 0.7

title:Patch for D-Link DIR-2640 LocalIPAddress Command Injection Remote Code Execution Vulnerabilityurl:https://www.cnvd.org.cn/patchInfo/show/738591

Trust: 0.6

sources: ZDI: ZDI-23-539 // CNVD: CNVD-2025-23630

EXTERNAL IDS

db:NVDid:CVE-2023-32147

Trust: 4.0

db:ZDIid:ZDI-23-539

Trust: 2.6

db:DLINKid:SAP10323

Trust: 1.8

db:JVNDBid:JVNDB-2023-029388

Trust: 0.8

db:ZDI_CANid:ZDI-CAN-19544

Trust: 0.7

db:CNVDid:CNVD-2025-23630

Trust: 0.6

db:VULMONid:CVE-2023-32147

Trust: 0.1

sources: ZDI: ZDI-23-539 // CNVD: CNVD-2025-23630 // VULMON: CVE-2023-32147 // JVNDB: JVNDB-2023-029388 // NVD: CVE-2023-32147

REFERENCES

url:https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=sap10323

Trust: 2.5

url:https://www.zerodayinitiative.com/advisories/zdi-23-539/

Trust: 1.9

url:https://nvd.nist.gov/vuln/detail/cve-2023-32147

Trust: 0.8

url:http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2023-32147

Trust: 0.6

sources: ZDI: ZDI-23-539 // CNVD: CNVD-2025-23630 // VULMON: CVE-2023-32147 // JVNDB: JVNDB-2023-029388 // NVD: CVE-2023-32147

CREDITS

Anonymous

Trust: 0.7

sources: ZDI: ZDI-23-539

SOURCES

db:ZDIid:ZDI-23-539
db:CNVDid:CNVD-2025-23630
db:VULMONid:CVE-2023-32147
db:JVNDBid:JVNDB-2023-029388
db:NVDid:CVE-2023-32147

LAST UPDATE DATE

2025-10-15T23:31:39.699000+00:00


SOURCES UPDATE DATE

db:ZDIid:ZDI-23-539date:2023-05-04T00:00:00
db:CNVDid:CNVD-2025-23630date:2025-10-14T00:00:00
db:JVNDBid:JVNDB-2023-029388date:2025-08-07T03:31:00
db:NVDid:CVE-2023-32147date:2025-08-06T14:18:15.880

SOURCES RELEASE DATE

db:ZDIid:ZDI-23-539date:2023-05-04T00:00:00
db:CNVDid:CNVD-2025-23630date:2025-09-28T00:00:00
db:JVNDBid:JVNDB-2023-029388date:2025-08-07T00:00:00
db:NVDid:CVE-2023-32147date:2024-05-03T02:15:18.770