Vigor165 Firmware: Unrestricted Upload of File with Dangerous Type
CVE-2024-41339 is a high-severity unrestricted upload of file with dangerous type vulnerability in Vigor165 Firmware from DrayTek, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. The record lists version 4.2.7 as the first without the flaw, so updating Vigor165 Firmware to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.65% chance of exploitation within 30 days, higher than 52% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Vigor165 Firmware to 4.2.7 or a later version.
- Update Vigor166 Firmware to 4.2.7 or a later version.
- Update Vigor2620 Firmware to 3.9.8.9 or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Draytek | Vigor165 Firmware | before 4.2.7 | 4.2.7 |
| Draytek | Vigor166 Firmware | before 4.2.7 | 4.2.7 |
| Draytek | Vigor2620 Firmware | before 3.9.8.9 | 3.9.8.9 |
| Draytek | Vigorlte200 Firmware | before 3.9.8.9 | 3.9.8.9 |
| Draytek | Vigor2860 Firmware | before 3.9.8 | 3.9.8 |
| Draytek | Vigor2925 Firmware | before 3.9.8 | 3.9.8 |
| Draytek | Vigor2862 Firmware | before 3.9.9.5 | 3.9.9.5 |
| Draytek | Vigor2926 Firmware | before 3.9.9.5 | 3.9.9.5 |
| Draytek | Vigor2133 Firmware | before 3.9.9 | 3.9.9 |
| Draytek | Vigor2762 Firmware | before 3.9.9 | 3.9.9 |
| Draytek | Vigor2832 Firmware | before 3.9.9 | 3.9.9 |
| Draytek | Vigor2135 Firmware | before 4.4.5.1 | 4.4.5.1 |
| Draytek | Vigor2765 Firmware | before 4.4.5.1 | 4.4.5.1 |
| Draytek | Vigor2766 Firmware | before 4.4.5.1 | 4.4.5.1 |
| Draytek | Vigor2865 Firmware | before 4.4.5.3 | 4.4.5.3 |
| Draytek | Vigor2866 Firmware | before 4.4.5.3 | 4.4.5.3 |
| Draytek | Vigor2927 Firmware | before 4.4.5.3 | 4.4.5.3 |
| Draytek | Vigor2962 Firmware | before 4.3.2.8; 4.4.3.0 | 4.3.2.8 |
| Draytek | Vigor3910 Firmware | before 4.3.2.8; 4.4.3 | 4.3.2.8 |
| Draytek | Vigor3912 Firmware | before 4.3.6.1 | 4.3.6.1 |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by CISA (ADP).
Official description
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 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Unrestricted Upload of File with Dangerous Type
The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
How developers prevent this class of flaw
- Generate a new, unique filename for an uploaded file instead of using the user-supplied filename, so that no external input is used at all.
- When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.
- Consider storing the uploaded files outside of the web document root entirely. Then, use other mechanisms to deliver the files dynamically.
More Unrestricted Upload of File with Dangerous Type vulnerabilities (CWE-434)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
Other vulnerabilities in Vigor165 Firmware
- 8.4 High severity
- 7.5 High severity
- 8.8 High severity
- 8.0 High severity
- 7.5 High severity
- 9.8 Critical severity
Recent Unrestricted Upload of File with Dangerous Type vulnerabilities
- 9.8 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
Spotted an error? Tell us.