Vigor3912 Firmware: Stack-based Buffer Overflow
CVE-2024-51138 is a critical-severity stack-based buffer overflow vulnerability in Vigor3912 Firmware from DrayTek, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 4.4.3.2 as the first without the flaw, so updating Vigor3912 Firmware to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.05% chance of exploitation within 30 days, higher than 65% of scored CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Update Vigor3912 Firmware to 4.4.3.2 or a later version.
- Update Vigor2620 Firmware to 3.9.9.1 or a later version.
- Update Vigorlte200 Firmware to 3.9.9.1 or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Draytek | Vigor3912 Firmware | before 4.4.3.2 | 4.4.3.2 |
| Draytek | Vigor2620 Firmware | before 3.9.9.1 | 3.9.9.1 |
| Draytek | Vigorlte200 Firmware | before 3.9.9.1 | 3.9.9.1 |
| Draytek | Vigor2860 Firmware | before 3.9.8.3 | 3.9.8.3 |
| Draytek | Vigor2925 Firmware | before 3.9.8.3 | 3.9.8.3 |
| Draytek | Vigor2862 Firmware | before 3.9.9.8 | 3.9.9.8 |
| Draytek | Vigor2926 Firmware | before 3.9.9.8 | 3.9.9.8 |
| Draytek | Vigor2133 Firmware | before 3.9.9.2 | 3.9.9.2 |
| Draytek | Vigor2762 Firmware | before 3.9.9.2 | 3.9.9.2 |
| Draytek | Vigor2832 Firmware | before 3.9.9.2 | 3.9.9.2 |
| Draytek | Vigor2135 Firmware | before 4.4.5.5 | 4.4.5.5 |
| Draytek | Vigor2765 Firmware | before 4.4.5.5 | 4.4.5.5 |
| Draytek | Vigor2766 Firmware | before 4.4.5.5 | 4.4.5.5 |
| Draytek | Vigor2763 Firmware | before 4.4.5.5 | 4.4.5.5 |
| Draytek | Vigor2865 Firmware | before 4.4.5.8 | 4.4.5.8 |
| Draytek | Vigor2866 Firmware | before 4.4.5.8 | 4.4.5.8 |
| Draytek | Vigor2927 Firmware | before 4.4.5.8 | 4.4.5.8 |
| Draytek | Vigor2962 Firmware | before 4.3.2.9; 4.4.3 up to, but not including, 4.4.3.2 | 4.3.2.9, 4.4.3.2 |
| Draytek | Vigor3910 Firmware | before 4.3.2.9; 4.4.3 up to, but not including, 4.4.3.2 | 4.3.2.9, 4.4.3.2 |
| Draytek | Vigor2915 Firmware | before 4.4.5 | 4.4.5 |
| Draytek | Vigor1000b Firmware | before 4.4.3.2 | 4.4.3.2 |
| Draytek | Vigor2952 Firmware | before 3.9.8.5 | 3.9.8.5 |
| Draytek | Vigor3220 Firmware | before 3.9.8.5 | 3.9.8.5 |
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
- 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:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by CISA (ADP).
Official description
Vigor165/166 4.2.7 and earlier; Vigor2620/LTE200 3.9.8.9 and earlier; Vigor2860/2925 3.9.8 and earlier; Vigor2862/2926 3.9.9.5 and earlier; Vigor2133/2762/2832 3.9.9 and earlier; Vigor2135/2765/2766 4.4.5. and earlier; Vigor2865/2866/2927 4.4.5.3 and earlier; Vigor2962 4.3.2.8 and earlier; Vigor3912 4.3.6.1 and earlier; Vigor3910 4.4.3.1 and earlier a stack-based buffer overflow vulnerability has been identified in the URL parsing functionality of the TR069 STUN server. This flaw occurs due to insufficient bounds checking on the amount of URL parameters, allowing an attacker to exploit the overflow by sending a maliciously crafted request. Consequently, a remote attacker can execute arbitrary code with elevated privileges.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Stack-based Buffer Overflow
The product writes past the end of a buffer that was allocated on the stack.
How developers prevent this class of flaw
- Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND discusses canary-based detection in detail.
- Use an abstraction library to abstract away risky APIs. Not a complete solution.
- Implement and perform bounds checking on input.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
Other vulnerabilities in Vigor3912 Firmware
- 9.8 Critical severity
- 8.4 High severity
- 8.8 High severity
- 7.5 High severity
- 8.8 High severity
- 8.0 High severity
Recent Stack-based Buffer Overflow vulnerabilities
- 7.7 High severity
- 9.8 Critical severity
- 9.8 Critical severity
- 8.8 High severity
- 8.1 High severity
- 8.8 High severity
Spotted an error? Tell us.