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 resresolverunbound 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 resresolverunbound 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.
{
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42491.json",
"cwe_ids": [
"CWE-252",
"CWE-476"
]
}{
"cpe": [
"cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:*:*:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:-:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert1:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert1-rc1:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert10:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert11:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert2:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert3:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert4:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert5:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert6:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert7:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert8:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert8-rc1:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert8-rc2:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:18.9:cert9:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:20.7:cert1:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:20.7:cert1-rc1:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:20.7:cert1-rc2:*:*:*:*:*:*",
"cpe:2.3:a:sangoma:certified_asterisk:20.7:cert2:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "18.24.3"
},
{
"fixed": "18.9"
},
{
"introduced": "20.0.0"
},
{
"fixed": "20.9.3"
},
{
"introduced": "21.0.0"
},
{
"last_affected": "21.4.3"
},
{
"introduced": "18.9-NA"
},
{
"last_affected": "18.9-NA"
},
{
"introduced": "18.9-cert1"
},
{
"last_affected": "18.9-cert1"
},
{
"introduced": "18.9-cert1\\-rc1"
},
{
"last_affected": "18.9-cert1\\-rc1"
},
{
"introduced": "18.9-cert10"
},
{
"last_affected": "18.9-cert10"
},
{
"introduced": "18.9-cert11"
},
{
"last_affected": "18.9-cert11"
},
{
"introduced": "18.9-cert2"
},
{
"last_affected": "18.9-cert2"
},
{
"introduced": "18.9-cert3"
},
{
"last_affected": "18.9-cert3"
},
{
"introduced": "18.9-cert4"
},
{
"last_affected": "18.9-cert4"
},
{
"introduced": "18.9-cert5"
},
{
"last_affected": "18.9-cert5"
},
{
"introduced": "18.9-cert6"
},
{
"last_affected": "18.9-cert6"
},
{
"introduced": "18.9-cert7"
},
{
"last_affected": "18.9-cert7"
},
{
"introduced": "18.9-cert8"
},
{
"last_affected": "18.9-cert8"
},
{
"introduced": "18.9-cert8\\-rc1"
},
{
"last_affected": "18.9-cert8\\-rc1"
},
{
"introduced": "18.9-cert8\\-rc2"
},
{
"last_affected": "18.9-cert8\\-rc2"
},
{
"introduced": "18.9-cert9"
},
{
"last_affected": "18.9-cert9"
},
{
"introduced": "20.7-cert1"
},
{
"last_affected": "20.7-cert1"
},
{
"introduced": "20.7-cert1\\-rc1"
},
{
"last_affected": "20.7-cert1\\-rc1"
},
{
"introduced": "20.7-cert1\\-rc2"
},
{
"last_affected": "20.7-cert1\\-rc2"
},
{
"introduced": "20.7-cert2"
},
{
"last_affected": "20.7-cert2"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}"2026-07-22T03:35:23Z"
[
{
"target": {
"function": "off_nominal_sync_run",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-02f8bd26",
"digest": {
"function_hash": "35532313092464776673311802766554748424",
"length": 607.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/4f01669c7c41c9184f3cce9a3cf1b2ebf6201742"
},
{
"target": {
"function": "off_nominal_test",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-0c14c04d",
"digest": {
"function_hash": "57922630928494882635671196105702837533",
"length": 1345.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/50bf8d4d3064930d28ecf1ce3397b14574d514d2"
},
{
"target": {
"function": "unbound_resolver_callback",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-0fed6bf9",
"digest": {
"function_hash": "70641475278107543980698323705944437641",
"length": 547.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/a15050650abf09c10a3c135fab148220cd41d3a0"
},
{
"target": {
"function": "off_nominal_sync_run",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-1f9a0e1f",
"digest": {
"function_hash": "35532313092464776673311802766554748424",
"length": 607.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/a15050650abf09c10a3c135fab148220cd41d3a0"
},
{
"target": {
"function": "ast_dns_resolver_completed",
"file": "main/dns_core.c"
},
"id": "CVE-2024-42491-20ab1367",
"digest": {
"function_hash": "281396724673345422001643455093444861812",
"length": 118.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/a15050650abf09c10a3c135fab148220cd41d3a0"
},
{
"target": {
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-40c4bed9",
"digest": {
"line_hashes": [
"93104383002288362320630301365710545430",
"36061282823684201964105431048590206630",
"311674305717262396020965858880497248734",
"177531054042277794214552351487290198599",
"285932047014592983756128495756905966224",
"157708836019795874492211437074139921257",
"52777681262907263925257461006496574486",
"317464940260836631471627085009392614579",
"98352624013926265063276692818134945640",
"231114445002317881968549376093572746040",
"38552070738182780360479586113621786932",
"186040178685883689650093646392097633989",
"234326707178399511318849369232461188497",
"165424270237914492273178293855631932423",
"32626974431462587087698936219868300191"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/4f01669c7c41c9184f3cce9a3cf1b2ebf6201742"
},
{
"target": {
"function": "action_originate",
"file": "main/manager.c"
},
"id": "CVE-2024-42491-41137e8e",
"digest": {
"function_hash": "232703403506518374731596977575200181777",
"length": 5343.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/42a2f4ccfa2c7062a15063e765916b3332e34cc4"
},
{
"target": {
"function": "off_nominal_test",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-4e72c0fd",
"digest": {
"function_hash": "57922630928494882635671196105702837533",
"length": 1345.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/a15050650abf09c10a3c135fab148220cd41d3a0"
},
{
"target": {
"file": "main/manager.c"
},
"id": "CVE-2024-42491-5803e02b",
"digest": {
"line_hashes": [
"330083386143230897860645627042872122397",
"135458073016617245683244807501187529424",
"60033089452914022413512870798842650543",
"316824714912647114610842803631927843330",
"274807132997725124570029074467748754423",
"295927908401415594913179399400800381275",
"247155707204245380668433602252893744860",
"144401246708952014752911080933458126352",
"103597149692434822907490553740580318234",
"43733839804770866268421438718883615057",
"174688976415292125217161812871754725646",
"272116292709699004460503924397067593483",
"2776275004956605641158109646656848331",
"187524471302074971220675724334739476446",
"101928226929111395888281062233454403917",
"138985238550026917485626545431846360826",
"260379234745971463118281333239484257831",
"306713559133014621805675062700540987106",
"44505279969845405466588382943414654232",
"12844842932451369550652892076403609271",
"100835194887530738481442659800828727660"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/7a0090325bfa9d778a39ae5f7d0a98109e4651c8"
},
{
"target": {
"function": "ast_dns_resolver_completed",
"file": "main/dns_core.c"
},
"id": "CVE-2024-42491-5afbfc6d",
"digest": {
"function_hash": "281396724673345422001643455093444861812",
"length": 118.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/4f01669c7c41c9184f3cce9a3cf1b2ebf6201742"
},
{
"target": {
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-7029607f",
"digest": {
"line_hashes": [
"93104383002288362320630301365710545430",
"36061282823684201964105431048590206630",
"311674305717262396020965858880497248734",
"177531054042277794214552351487290198599",
"285932047014592983756128495756905966224",
"157708836019795874492211437074139921257",
"52777681262907263925257461006496574486",
"317464940260836631471627085009392614579",
"98352624013926265063276692818134945640",
"231114445002317881968549376093572746040",
"38552070738182780360479586113621786932",
"186040178685883689650093646392097633989",
"234326707178399511318849369232461188497",
"165424270237914492273178293855631932423",
"32626974431462587087698936219868300191"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/a15050650abf09c10a3c135fab148220cd41d3a0"
},
{
"target": {
"function": "unbound_resolver_callback",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-77de5227",
"digest": {
"function_hash": "70641475278107543980698323705944437641",
"length": 547.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/50bf8d4d3064930d28ecf1ce3397b14574d514d2"
},
{
"target": {
"file": "main/manager.c"
},
"id": "CVE-2024-42491-7e6e8c38",
"digest": {
"line_hashes": [
"330083386143230897860645627042872122397",
"135458073016617245683244807501187529424",
"60033089452914022413512870798842650543",
"316824714912647114610842803631927843330",
"274807132997725124570029074467748754423",
"295927908401415594913179399400800381275",
"247155707204245380668433602252893744860",
"144401246708952014752911080933458126352",
"103597149692434822907490553740580318234",
"43733839804770866268421438718883615057",
"174688976415292125217161812871754725646",
"272116292709699004460503924397067593483",
"2776275004956605641158109646656848331",
"187524471302074971220675724334739476446",
"101928226929111395888281062233454403917",
"138985238550026917485626545431846360826",
"260379234745971463118281333239484257831",
"306713559133014621805675062700540987106",
"44505279969845405466588382943414654232",
"12844842932451369550652892076403609271",
"100835194887530738481442659800828727660"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/42a2f4ccfa2c7062a15063e765916b3332e34cc4"
},
{
"target": {
"function": "action_originate",
"file": "main/manager.c"
},
"id": "CVE-2024-42491-bff90075",
"digest": {
"function_hash": "252776182087257656298008582200932970026",
"length": 5366.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/7a0090325bfa9d778a39ae5f7d0a98109e4651c8"
},
{
"target": {
"file": "main/dns_core.c"
},
"id": "CVE-2024-42491-d6cd72c8",
"digest": {
"line_hashes": [
"149967133664613292454210705176850299818",
"79560722623311736986086704738404728451",
"170039978738719970640300767266738782262",
"56061527538201568660717818799526130432"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/50bf8d4d3064930d28ecf1ce3397b14574d514d2"
},
{
"target": {
"file": "main/dns_core.c"
},
"id": "CVE-2024-42491-dd511e41",
"digest": {
"line_hashes": [
"149967133664613292454210705176850299818",
"79560722623311736986086704738404728451",
"170039978738719970640300767266738782262",
"56061527538201568660717818799526130432"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/4f01669c7c41c9184f3cce9a3cf1b2ebf6201742"
},
{
"target": {
"file": "main/dns_core.c"
},
"id": "CVE-2024-42491-e49d0082",
"digest": {
"line_hashes": [
"149967133664613292454210705176850299818",
"79560722623311736986086704738404728451",
"170039978738719970640300767266738782262",
"56061527538201568660717818799526130432"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/a15050650abf09c10a3c135fab148220cd41d3a0"
},
{
"target": {
"function": "off_nominal_sync_run",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-e71efe02",
"digest": {
"function_hash": "35532313092464776673311802766554748424",
"length": 607.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/50bf8d4d3064930d28ecf1ce3397b14574d514d2"
},
{
"target": {
"function": "unbound_resolver_callback",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-e8ec1e81",
"digest": {
"function_hash": "70641475278107543980698323705944437641",
"length": 547.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/4f01669c7c41c9184f3cce9a3cf1b2ebf6201742"
},
{
"target": {
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-f7b58514",
"digest": {
"line_hashes": [
"93104383002288362320630301365710545430",
"36061282823684201964105431048590206630",
"311674305717262396020965858880497248734",
"177531054042277794214552351487290198599",
"285932047014592983756128495756905966224",
"157708836019795874492211437074139921257",
"52777681262907263925257461006496574486",
"317464940260836631471627085009392614579",
"98352624013926265063276692818134945640",
"231114445002317881968549376093572746040",
"38552070738182780360479586113621786932",
"186040178685883689650093646392097633989",
"234326707178399511318849369232461188497",
"165424270237914492273178293855631932423",
"32626974431462587087698936219868300191"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/asterisk/asterisk/commit/50bf8d4d3064930d28ecf1ce3397b14574d514d2"
},
{
"target": {
"function": "ast_dns_resolver_completed",
"file": "main/dns_core.c"
},
"id": "CVE-2024-42491-fb1b485f",
"digest": {
"function_hash": "281396724673345422001643455093444861812",
"length": 118.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/50bf8d4d3064930d28ecf1ce3397b14574d514d2"
},
{
"target": {
"function": "off_nominal_test",
"file": "res/res_resolver_unbound.c"
},
"id": "CVE-2024-42491-fd97285d",
"digest": {
"function_hash": "57922630928494882635671196105702837533",
"length": 1345.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/asterisk/asterisk/commit/4f01669c7c41c9184f3cce9a3cf1b2ebf6201742"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42491.json"