CyberSecBulletin
CVE-2024-41340NVD status: Modified

Vigor165 Firmware: Unrestricted Upload of File with Dangerous Type

CVE-2024-41340 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.4 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, 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.21% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Vigor165 Firmware to 4.2.7 or a later version.
  2. Update Vigor166 Firmware to 4.2.7 or a later version.
  3. Update Vigor2620 Firmware to 3.9.8.9 or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
DraytekVigor165 Firmwarebefore 4.2.74.2.7
DraytekVigor166 Firmwarebefore 4.2.74.2.7
DraytekVigor2620 Firmwarebefore 3.9.8.93.9.8.9
DraytekVigorlte200 Firmwarebefore 3.9.8.93.9.8.9
DraytekVigor2860 Firmwarebefore 3.9.83.9.8
DraytekVigor2925 Firmwarebefore 3.9.83.9.8
DraytekVigor2862 Firmwarebefore 3.9.9.53.9.9.5
DraytekVigor2926 Firmwarebefore 3.9.9.53.9.9.5
DraytekVigor2133 Firmwarebefore 3.9.93.9.9
DraytekVigor2762 Firmwarebefore 3.9.93.9.9
DraytekVigor2832 Firmwarebefore 3.9.93.9.9
DraytekVigor2135 Firmwarebefore 4.4.5.14.4.5.1
DraytekVigor2765 Firmwarebefore 4.4.5.14.4.5.1
DraytekVigor2766 Firmwarebefore 4.4.5.14.4.5.1
DraytekVigor2865 Firmwarebefore 4.4.5.34.4.5.3
DraytekVigor2866 Firmwarebefore 4.4.5.34.4.5.3
DraytekVigor2927 Firmwarebefore 4.4.5.34.4.5.3
DraytekVigor2962 Firmwarebefore 4.3.2.8; 4.4.3.04.3.2.8
DraytekVigor3910 Firmwarebefore 4.3.2.8; 4.4.34.3.2.8
DraytekVigor3912 Firmwarebefore 4.3.6.14.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
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
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:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by CISA (ADP).

Official description

An issue 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 crafted APP Enforcement modules, leading to 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

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in Vigor165 Firmware

All Vigor165 Firmware vulnerabilities

Recent Unrestricted Upload of File with Dangerous Type vulnerabilities

Spotted an error? Tell us.