CVE-2023-37457Asterisk's PJSIP_HEADER dialplan function can overwrite memory/cause crash when using…
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.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | asterisk | Fix pending | UBUNTU-CVE-2023-37457 | |
| Ubuntu 26.04 | asterisk | Under investigation | UBUNTU-CVE-2023-37457 | |
| Ubuntu 25.10 | asterisk | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-37457 | |
| Ubuntu 24.04 | asterisk | Under investigation | UBUNTU-CVE-2023-37457 | |
| Ubuntu 22.04 | asterisk | Under investigation | UBUNTU-CVE-2023-37457 | |
| Ubuntu 20.04 | asterisk | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-37457 | |
| Ubuntu 18.04 | asterisk | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-37457 | |
| Ubuntu 16.04 | asterisk | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-37457 | |
| Ubuntu 14.04 | asterisk | Will not fix Ubuntu decided not to fix this in this release | ||
| Alpine Linux 3.24 | asterisk | Fixed | 20.5.1-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.23 | asterisk | Fixed | 20.5.1-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.22 | asterisk | Fixed | 20.5.1-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.21 | asterisk | Fixed | 20.5.1-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.20 | asterisk | Fixed | 20.5.1-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.19 | asterisk | Fixed | 20.5.1-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.18 | asterisk | Fixed | 18.20.2-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.17 | asterisk | Fixed | 18.20.2-r0 | ALPINE-CVE-2023-37457 |
| Alpine Linux 3.16 | asterisk | Fixed | 18.20.2-r0 | ALPINE-CVE-2023-37457 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- asterisk: affected: <= 18.20.0, >= 19.0.0, <= 20.5.0, = 21.0.0, <= 18.9-cert5
References
- https://github.com/asterisk/asterisk/security/advisories/GHSA-98rc-4j27-74hh
- https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa
- https://lists.debian.org/debian-lts-announce/2023/12/msg00019.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.