← Vulnerability feed

Vulnerability record · CVE-2022-40717 · published 26 January 2023

CVE-2022-40717: Dlink dir-2150 firmware stack-based buffer overflow vulnerability

Dlink · Dir 2150 Firmware

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected D-Link DIR-2150 4.0.1 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the anweb service, which listens on TCP ports 80 and 443 by default. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-15727.

8.8 CVSS 3.1 High EPSS 0.62% · top 52.6% CWE-121 · Stack-based buffer overflowCWE-787 · Out-of-bounds write
8.8CVSS 3.1 base score
0.62%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References
17 Jun 2026Last modified by NVD

Description

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected D-Link DIR-2150 4.0.1 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the anweb service, which listens on TCP ports 80 and 443 by default. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-15727.

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-40717 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2024-5291Dlink dir-2150 firmware os command injection vulnerabilityD-Link DIR-2150 GetDeviceSettings Target Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers …EPSS 2.0%8.8CVE-2023-34279Dlink dir-2150 firmware os command injection vulnerabilityD-Link DIR-2150 GetDeviceSettings Target Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers …EPSS 1.4%8.8CVE-2023-34282Dlink dir-2150 firmware vulnerabilityD-Link DIR-2150 HNAP Incorrect Implementation of Authentication Algorithm Authentication Bypass Vulnerability. This vulnerability allows network-adja…EPSS 1.1%8.8CVE-2023-34274Dlink dir-2150 firmware vulnerabilityD-Link DIR-2150 LoginPassword Incorrect Implementation of Authentication Algorithm Authentication Bypass Vulnerability. This vulnerability allows net…EPSS 1.1%8.8CVE-2022-3210Dlink dir-2150 firmware os command injection vulnerabilityThis vulnerability allows network-adjacent attackers to execute arbitrary commands on affected installations of D-Link DIR-2150 4.0.1 routers. Authen…EPSS 2.0%8.8CVE-2022-40718Dlink dir-2150 firmware stack-based buffer overflow vulnerabilityThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected D-Link DIR-2150 4.0.1 routers. Authentication is not requi…EPSS 0.62%8.8CVE-2022-40719Dlink dir-2150 firmware os command injection vulnerabilityThis vulnerability allows network-adjacent attackers to execute arbitrary commands on affected installations of D-Link DIR-2150 4.0.1 routers. Authen…EPSS 1.6%8.8CVE-2022-40720Dlink dir-2150 firmware os command injection vulnerabilityThis vulnerability allows network-adjacent attackers to execute arbitrary commands on affected installations of D-Link DIR-2150 4.0.1 routers. Authen…EPSS 1.8%

Source: NIST National Vulnerability Database (record CVE-2022-40717), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.