# CVE-2022-40718: This vulnerability allows network-adjacent attackers to execute arbitrary code on affected D-Link DIR-2150 4.0.1 routers.

- Severity: High 8.8 (CVSS:3.0, scored by zdi) `CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2023-01-26T00:00:00.000Z
- Modified: 2026-06-17T05:01:54.343Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: zdi

## 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-15728.

(As written by CVE List.)

## Affected

- D-Link DIR-2150: 4.0.1
- dlink dir-2150_firmware: up to 4.0.1

## Every score

- zdi: CVSS:3.0 8.8 High `CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10304> (patch, vendor-advisory)
- <https://www.zerodayinitiative.com/advisories/ZDI-22-1221/> (third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2022-40718](https://www.cve.org/CVERecord?id=CVE-2022-40718), CVE Terms of Use, modified 2025-04-01
- NVD: [CVE-2022-40718](https://nvd.nist.gov/vuln/detail/CVE-2022-40718), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-40718 · Whole record: https://cve.day/CVE-2022-40718.json · Rebuilt by cve.day 2026-11-25T22:58:18.294Z
