Skip to content
OpenAdvisories
Medium · 5.7 CVE-2024-42491 EUVD-2024-39644

A malformed Contact or Record-Route URI in an incoming SIP request can cause Asterisk to crash when res_resolver_unbound is used

Published Sep 5, 2024 · Updated Nov 3, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
asterisk asterisk < 18.24.3, >= 19.0.0, < 20.9.3, >= 21.0.0, < 21.4.3, < 18.9-cert12, >= 19.0, < 20.7-cert2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 asterisk 1:20.9.3~dfsg+~cs6.14.60671435-1 —
Debian 11 asterisk 1:16.28.0~dfsg-0+deb11u5 DLA-3925-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 asterisk No fix yet —
Ubuntu 26.04 LTS asterisk No fix yet —
Ubuntu 25.10 asterisk No fix yet —
Ubuntu 24.04 LTS asterisk No fix yet —
Ubuntu 22.04 LTS asterisk No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS asterisk No fix yet —
Ubuntu 18.04 LTS asterisk No fix yet —
Ubuntu Pro 16.04 LTS asterisk No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 asterisk 20.9.3-r0 —
Alpine v3.23 asterisk 20.9.3-r0 —
Alpine v3.22 asterisk 20.9.3-r0 —
Alpine v3.21 asterisk 20.9.3-r0 —
Alpine v3.20 asterisk 20.9.3-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 asterisk 20.9.3-r0 —
Alpine v3.18 asterisk 18.24.3-r0 —
Alpine v3.17 asterisk 18.24.3-r0 —

Advisories 2

References