7.1

CVE-2023-41217: d-link dir-3040 Stack-based Buffer Overflow

CVSS: 7.1v3.0HighAnalyzed
Published 03-05-2024Last modified 02-08-2024

Vulnerability summary

CVE-2023-41217 is a high (CVSS 7.1) Stack-based Buffer Overflow vulnerability in d-link dir-3040. EPSS estimates a 0.75% chance of exploitation in the next 30 days, higher than 53.9% of scored vulnerabilities.

Overall risk
29/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.1/10
010
High · v3.0 (CVE.org)
EPSS score
0.75%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 03-05-2024
    PublishedVulnerability first disclosed.
  2. 02-08-2024
    Last modifiedVulnerability information updated.

Description

D-Link DIR-3040 prog.cgi SetQuickVPNSettings Password Stack-Based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-3040 routers. Authentication is required to exploit this vulnerability. The specific flaw exists within the prog.cgi binary, which handles HNAP requests made to the lighttpd webserver listening on TCP ports 80 and 443. The issue results from the lack of proper validation of a user-supplied string before 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-21617.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

0.75%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

0.00 pp

From 0.75% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.75%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

D-link1 product
Dlink1 product

2 vendors · 2 products

References

2 links