Security Resilience

CVE-2024-41339

Draytek Vigor165 Firmware ≤ 4.2.7

Published
27 February 2025
Modified
05 July 2026
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0065 52th percentile
Risk Priority 65 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-41339 is a high-severity Unrestricted Upload of File with Dangerous Type (CWE-434) vulnerability in Draytek Vigor165 Firmware. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 48% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-3 (Malicious Code Protection) and CM-7 (Least Functionality) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2024-41339 affects the CGI endpoint used for uploading configurations in multiple Draytek Vigor router models, including Vigor 165/166 prior to v4.2.6, Vigor 2620/LTE200 prior to v3.9.8.8, Vigor 2860/2925 prior to v3.9.7, Vigor 2862/2926 prior to v3.9.9.4, Vigor 2133/2762/2832 prior to v3.9.8, Vigor 2135/2765/2766 prior to v4.4.5.1, Vigor 2865/2866/2927 prior to v4.4.5.3, Vigor 2962/3910 prior to v4.3.2.7, Vigor 3912 prior to v4.3.5.2, and Vigor 2925 up to v3.9.6. The issue, classified under CWE-434 (Unrestricted Upload of File with Dangerous Type), enables attackers to upload a crafted kernel module, resulting in arbitrary code execution on the device. It carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attackers with low privileges, such as authenticated users, can exploit this vulnerability remotely over the network with low attack complexity and no user interaction required. Exploitation involves uploading a malicious kernel module via the affected CGI endpoint, achieving arbitrary code execution with high impacts on confidentiality, integrity, and availability, potentially leading to full device compromise.

Vendor advisories and security researcher publications, including those on the Draytek website (http://draytek.com) and a Medium post by Faraday Labs (https://medium.com/faraday/advisory-multiple-vulnerabilities-affecting-draytek-routers-78a6cb8b3946), recommend updating to the specified patched firmware versions for each affected model to mitigate the vulnerability.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

An issue in the CGI endpoint used to upload configurations in Draytek devices Vigor 165/166 prior to v4.2.6 , Vigor 2620/LTE200 prior to v3.9.8.8, Vigor 2860/2925 prior to v3.9.7, Vigor 2862/2926 prior to v3.9.9.4, Vigor 2133/2762/2832 prior to v3.9.8, Vigor…

more

2135/2765/2766 prior to v4.4.5.1, Vigor 2865/2866/2927 prior to v4.4.5.3, Vigor 2962/3910 prior to v4.3.2.7, Vigor 3912 prior to v4.3.5.2, and Vigor 2925 up to v3.9.6 allows attackers to upload a crafted kernel module, allowing for arbitrary code execution.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1505.003 Web Shell Persistence
Adversaries may backdoor web servers with web shells to establish persistent access to systems.
T1584.004 Server Resource Development
Adversaries may compromise third-party servers that can be used during targeting.
T1505 Server Software Component Persistence
Adversaries may abuse legitimate extensible development features of servers to establish persistent access to systems.
T1056.003 Web Portal Capture Collection
Adversaries may install code on externally facing portals, such as a VPN login page, to capture and transmit credentials of users who attempt to log into the service.
T1491.002 External Defacement Impact
An adversary may deface systems external to an organization in an attempt to deliver messaging, intimidate, or otherwise mislead an organization or users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-41340Same product: Draytek Vigor165 Firmware
CVE-2024-41338Same product: Draytek Vigor165 Firmware
CVE-2024-41334Same product: Draytek Vigor165 Firmware
CVE-2024-41587Same product: Draytek Vigor165 Firmware
CVE-2024-41591Same product: Draytek Vigor165 Firmware
CVE-2024-41596Same product: Draytek Vigor165 Firmware
CVE-2024-41588Same product: Draytek Vigor165 Firmware
CVE-2024-41590Same product: Draytek Vigor165 Firmware
CVE-2024-41592Same product: Draytek Vigor165 Firmware
CVE-2024-41593Same product: Draytek Vigor165 Firmware

Affected Assets

draytek
vigor165 firmware
≤ 4.2.7
draytek
vigor166 firmware
≤ 4.2.7
draytek
vigor2620 firmware
≤ 3.9.8.9
draytek
vigorlte200 firmware
≤ 3.9.8.9
draytek
vigor2860 firmware
≤ 3.9.8
draytek
vigor2925 firmware
≤ 3.9.8
draytek
vigor2862 firmware
≤ 3.9.9.5
draytek
vigor2926 firmware
≤ 3.9.9.5
draytek
vigor2133 firmware
≤ 3.9.9
draytek
vigor2762 firmware
≤ 3.9.9
+10 more product configuration(s) — see NVD for full list

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V5.1.1

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Malicious-code protection at entry points blocks dangerous file types from being accepted and executed.

Least functionality restricts the file types and automatic processing capabilities the system will accept.

SC-18 Mobile Code partial match

Mobile-code controls define, authorize, and block unacceptable uploaded code before automatic processing occurs.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-05 mostly match
blocks

Restricting execution of unauthorized software directly blocks dangerous uploaded files from running.

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce allowed file types and processing rules.

PR.PS-06 partial match
blocks

Secure development practices include input validation and file-type restrictions that prevent this weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Configuration and acceptance testing verify that file-upload handling enforces allowed types and does not permit dangerous content to be stored or executed.

prevents

A.8.28 mandates secure coding practices (input validation principles, threat modelling, attack-surface analysis, prohibiting insecure design techniques, peer review) that reduce the likelihood of an upload-validation defect being written, but the clause governs a human practice rather than a mechanism, so what it actually catches depends on developer rigour and a nameable remainder of instances slips through.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software weaknesses in delivered code the way those practices do; CWE-434 is an implementation defect in upload handling that secure coding/testing practices address, but the clause's mechanism is contractual and fallible, leaving a nameable remainder.

blocks

A.8.7 can block exploitation of CWE-434 when uploaded dangerous files contain malware that its scanning detects before use, but because it does not restrict file types itself and malware detection misses unknown or custom scripts, only a minority of instances are stopped.

References