1. Archivio CVE
  2. 2024
  3. CVE-2024-51138

CVE-2024-51138

9.8 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critica

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
draytek vigor1000b firmware < 4.4.3.2 –
draytek vigor2133 firmware < 3.9.9.2 –
draytek vigor2135 firmware < 4.4.5.5 –
draytek vigor2620 firmware < 3.9.9.1 –
draytek vigor2762 firmware < 3.9.9.2 –
draytek vigor2763 firmware < 4.4.5.5 –
draytek vigor2765 firmware < 4.4.5.5 –
draytek vigor2766 firmware < 4.4.5.5 –
draytek vigor2832 firmware < 3.9.9.2 –
draytek vigor2860 firmware < 3.9.8.3 –
draytek vigor2862 firmware < 3.9.9.8 –
draytek vigor2865 firmware < 4.4.5.8 –
draytek vigor2866 firmware < 4.4.5.8 –
draytek vigor2915 firmware < 4.4.5 –
draytek vigor2925 firmware < 3.9.8.3 –
draytek vigor2926 firmware < 3.9.9.8 –
draytek vigor2927 firmware < 4.4.5.8 –
draytek vigor2952 firmware < 3.9.8.5 –
draytek vigor2962 firmware < 4.3.2.9 –
draytek vigor2962 firmware >= 4.4.3 < 4.4.3.2 –
draytek vigor3220 firmware < 3.9.8.5 –
draytek vigor3910 firmware < 4.3.2.9 –
draytek vigor3910 firmware >= 4.4.3 < 4.4.3.2 –
draytek vigor3912 firmware < 4.4.3.2 –
draytek vigorlte200 firmware < 3.9.9.1 –
Tutte le 17 vulnerabilità di Draytek Vigor2962 Firmware

Tipo di vulnerabilità

CWE-121 Stack-based buffer overflow

Il prodotto scrive oltre la fine di un buffer allocato nello stack.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Modificare la memoria, Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria
Integrità, Riservatezza, Disponibilità, Controllo degli accessi Modificare la memoria, Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione
Integrità, Riservatezza, Disponibilità, Controllo degli accessi, Altro Modificare la memoria, Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione, Altro

Come si previene

Esercizio · Build e compilazione · Hardening dell’ambiente 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.
Architettura e progettazione Use an abstraction library to abstract away risky APIs. Not a complete solution.
Sviluppo Implement and perform bounds checking on input.
Sviluppo Do not use dangerous functions such as gets. Use safer, equivalent functions which check for boundary errors.
Esercizio · Build e compilazione · Hardening dell’ambiente Run or compile the software using features or extensions that randomly arrange the positions of a program's executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code. Examples include Address Space Layout Randomization (ASLR) and Position-Independent Executables (PIE). Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as rebasing (for Windows) and prelinking (for Linux) using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking. For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 2.136 CVE di tipo CWE-121, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org