CVE-2024-42491
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-42491 affects Asterisk, an open-source private branch exchange (PBX) system. The vulnerability was discovered and disclosed in September 2024, affecting versions prior to 18.24.3, 20.9.3, and 21.4.3 of Asterisk and versions prior to 18.9-cert12 and 20.7-cert2 of certified-asterisk. The issue occurs when Asterisk attempts to send a SIP request to a URI whose host portion starts with .1 or [.1], and res_resolver_unbound is loaded, causing Asterisk to crash with a SEGV (GitHub Advisory).

Technical details

The vulnerability stems from a NULL pointer dereference in the unbound_resolver_callback function. When libunbound passes a NULL ub_result pointer for malformed queries like .1 or [.1], the system crashes with a segmentation fault. The issue is related to both CWE-252 (Unchecked Return Value) and CWE-476 (NULL Pointer Dereference). The vulnerability has been assigned a CVSS v3.1 base score of 5.7 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H (GitHub Advisory).

Impact

The vulnerability can lead to a denial of service through system crash when processing certain SIP requests. The impact is particularly significant when the incoming endpoint's rewrite_contact parameter is set to false and Asterisk attempts to send a request back using a malformed URI. While unauthenticated clients can only trigger the crash if anonymous calling is allowed (which is rare), authorized users could potentially exploit this through malformed dialstrings or AMI/ARI operations (GitHub Advisory).

Mitigation and workarounds

Two workarounds are available: 1) Disable res_resolver_unbound by setting noload = res_resolver_unbound.so in modules.conf, or 2) Set rewrite_contact = yes on all PJSIP endpoints, though this may not be appropriate for all configurations. For a permanent fix, users should upgrade to versions 18.24.3, 20.9.3, 21.4.3, certified-18.9-cert12, or certified-20.7-cert2 (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-0821MEDIUM6.9
  • NixOSNixOS
  • quickjs
NoNoJan 10, 2026
CVE-2025-68949MEDIUM5.3
  • NixOSNixOS
  • n8n
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026
CVE-2026-23497LOW1.3
  • NixOSNixOS
  • learning
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management