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

CVE-2024-42491

5.7 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H 5.7 – Media

Descrizione

Asterisk is an open-source private branch exchange (PBX). Prior to versions 18.24.3, 20.9.3, and 21.4.3 of Asterisk and versions 18.9-cert12 and 20.7-cert2 of certified-asterisk, if Asterisk attempts to send a SIP request to a URI whose host portion starts with `.1` or `[.1]`, and res_resolver_unbound is loaded, Asterisk will crash with a SEGV. To receive a patch, users should upgrade to one of the following versions: 18.24.3, 20.9.3, 21.4.3, certified-18.9-cert12, certified-20.7-cert2. Two workarounds are available. Disable res_resolver_unbound by setting `noload = res_resolver_unbound.so` in modules.conf, or set `rewrite_contact = yes` on all PJSIP endpoints. NOTE: This may not be appropriate for all Asterisk configurations.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
sangoma asterisk < 18.24.3 –
sangoma asterisk >= 20.0.0 < 20.9.3 –
sangoma asterisk >= 21.0.0 <= 21.4.3 –
sangoma certified asterisk < 18.9 –
sangoma certified asterisk 18.9 –
sangoma certified asterisk 18.9 cert1 –
sangoma certified asterisk 18.9 cert1-rc1 –
sangoma certified asterisk 18.9 cert10 –
sangoma certified asterisk 18.9 cert11 –
sangoma certified asterisk 18.9 cert2 –
sangoma certified asterisk 18.9 cert3 –
sangoma certified asterisk 18.9 cert4 –
sangoma certified asterisk 18.9 cert5 –
sangoma certified asterisk 18.9 cert6 –
sangoma certified asterisk 18.9 cert7 –
sangoma certified asterisk 18.9 cert8 –
sangoma certified asterisk 18.9 cert8-rc1 –
sangoma certified asterisk 18.9 cert8-rc2 –
sangoma certified asterisk 18.9 cert9 –
sangoma certified asterisk 20.7 cert1 –
sangoma certified asterisk 20.7 cert1-rc1 –
sangoma certified asterisk 20.7 cert1-rc2 –
sangoma certified asterisk 20.7 cert2 –
Tutte le 15 vulnerabilità di Sangoma Certified Asterisk
Tutte le 28 vulnerabilità di Sangoma Asterisk

Tipo di vulnerabilità

CWE-252 Unchecked Return Value

The product does not check the return value from a method or function.

Impatto sui sistemi

AmbitoImpatto
Disponibilità, Integrità Stato imprevisto, Dipende dal contesto, Interruzione del servizio: arresto o riavvio
Controllo degli accessi Aggirare i meccanismi di protezione

Come si previene

Sviluppo Check the results of all functions that return a value and verify that the value is expected.
Sviluppo For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
Sviluppo Ensure that you account for all possible return values from the function.
Sviluppo When designing a function, make sure you return a value or throw an exception in case of an error.

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

Tutte le 200 CVE di tipo CWE-252, con andamento e prevenzione

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