Vulnerability · Published Dec 14, 2023 · Assigned by GitHub_M

CVE-2023-37457Asterisk's PJSIP_HEADER dialplan function can overwrite memory/cause crash when using 'update'

High 7.5

In plain English

A high-severity buffer overflow in asterisk from asterisk. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.1%top 33.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Asterisk is an open source private branch exchange and telephony toolkit. In Asterisk versions 18.20.0 and prior, 20.5.0 and prior, and 21.0.0; as well as ceritifed-asterisk 18.9-cert5 and prior, the 'update' functionality of the PJSIP_HEADER dialplan function can exceed the available buffer space for storing the new value of a header. By doing so this can overwrite memory or cause a crash. This is not externally exploitable, unless dialplan is explicitly written to update a header based on data from an outside source. If the 'update' functionality is not used the vulnerability does not occur. A patch is available at commit a1ca0268254374b515fa5992f01340f7717113fa.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20asterisk20.5.1-r0ALPINE-CVE-2023-37457
Alpine:v3.21asterisk20.5.1-r0ALPINE-CVE-2023-37457
Alpine:v3.22asterisk20.5.1-r0ALPINE-CVE-2023-37457
Alpine:v3.23asterisk20.5.1-r0ALPINE-CVE-2023-37457
Alpine:v3.24asterisk20.5.1-r0ALPINE-CVE-2023-37457
Debian:14asterisk1:20.8.1~dfsg+~cs6.14.40431414-1DEBIAN-CVE-2023-37457
Ubuntu:22.04:LTSasteriskno fix listedUBUNTU-CVE-2023-37457
Ubuntu:24.04:LTSasteriskno fix listedUBUNTU-CVE-2023-37457
Ubuntu:25.10asteriskno fix listedUBUNTU-CVE-2023-37457
Ubuntu:26.04:LTSasteriskno fix listedUBUNTU-CVE-2023-37457
Ubuntu:26.10asteriskno fix listedUBUNTU-CVE-2023-37457

Affected products (as reported)

VendorProductVersions
asterisk asterisk <= 18.20.0>= 19.0.0, <= 20.5.0= 21.0.0<= 18.9-cert5

Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References