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

Published Dec 14, 2023
·
Updated

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 PJSIPHEADER 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 Software

42 affected componentsFixes available
Digium Asterisk<=18.20.0
Digium Asterisk>=19.0.0<=20.5.0
Digium Asterisk=21.0.0
Sangoma Certified Asterisk=13.13.0
Sangoma Certified Asterisk=13.13.0-cert1
Sangoma Certified Asterisk=13.13.0-cert1-rc1
Sangoma Certified Asterisk=13.13.0-cert1-rc2
Sangoma Certified Asterisk=13.13.0-cert1-rc3
Sangoma Certified Asterisk=13.13.0-cert1-rc4
Sangoma Certified Asterisk=13.13.0-cert2
Sangoma Certified Asterisk=13.13.0-cert3
Sangoma Certified Asterisk=13.13.0-rc1
Sangoma Certified Asterisk=13.13.0-rc2
Sangoma Certified Asterisk=16.8.0
Sangoma Certified Asterisk=16.8.0-cert1
Sangoma Certified Asterisk=16.8.0-cert10
Sangoma Certified Asterisk=16.8.0-cert11
Sangoma Certified Asterisk=16.8.0-cert12
Sangoma Certified Asterisk=16.8.0-cert2
Sangoma Certified Asterisk=16.8.0-cert3
Sangoma Certified Asterisk=16.8.0-cert4
Sangoma Certified Asterisk=16.8.0-cert5
Sangoma Certified Asterisk=16.8.0-cert6
Sangoma Certified Asterisk=16.8.0-cert7
Sangoma Certified Asterisk=16.8.0-cert8
Sangoma Certified Asterisk=16.8.0-cert9
Sangoma Certified Asterisk=18.9-cert1
Sangoma Certified Asterisk=18.9-cert2
Sangoma Certified Asterisk=18.9-cert3
Sangoma Certified Asterisk=18.9-cert4
Sangoma Certified Asterisk=18.9-cert5
alpine/asterisk<18.20.2-r0
18.20.2-r0
alpine/asterisk<18.20.2-r0
18.20.2-r0
alpine/asterisk<18.20.2-r0
18.20.2-r0
alpine/asterisk>=19.0.0<20.5.1-r0
20.5.1-r0
alpine/asterisk>=19.0.0<20.5.1-r0
20.5.1-r0
alpine/asterisk>=19.0.0<20.5.1-r0
20.5.1-r0
alpine/asterisk>=19.0.0<20.5.1-r0
20.5.1-r0
alpine/asterisk>=19.0.0<20.5.1-r0
20.5.1-r0
alpine/asterisk>=19.0.0<20.5.1-r0
20.5.1-r0
debian/asterisk
1:16.28.0~dfsg-0+deb10u41:16.28.0~dfsg-0+deb11u41:20.8.1~dfsg+~cs6.14.40431414-1
debian/asterisk<1:20.8.1~dfsg+~cs6.14.40431414-1
1:20.8.1~dfsg+~cs6.14.40431414-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/asterisk to a version that resolves this vulnerability.

    Fixed in 18.20.2-r0
  2. Upgrade

    Upgrade alpine/asterisk to a version that resolves this vulnerability.

    Fixed in 20.5.1-r0
  3. Upgrade

    Upgrade debian/asterisk to a version that resolves this vulnerability.

    Fixed in 1:16.28.0~dfsg-0+deb10u4Fixed in 1:16.28.0~dfsg-0+deb11u4Fixed in 1:20.8.1~dfsg+~cs6.14.40431414-1
  4. Upgrade

    Upgrade debian/asterisk to a version that resolves this vulnerability.

    Fixed in 1:20.8.1~dfsg+~cs6.14.40431414-1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch a1ca0268254374b515fa5992f01340f7717113fa
  6. Configuration

    Do not use the 'update' functionality.

    Asterisk PJSIP_HEADER dialplan function update functionality = unused

Event History

Dec 14, 2023
CVE Published
via MITRE·07:43 PM
Data Sourced
07:43 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Dec 20, 2023
Data Sourced
04:32 PM
RemedyAffected Software
Updated
04:32 PM
SeverityWeakness
Dec 29, 2023
Data Sourced
via NVD·12:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
12:15 AM
Affected Software
Aug 2, 2024
Data Sourced
via MITRE·05:16 PM
DescriptionSeverityWeakness
Nov 24, 2026
Withdrawn
via OSV·04:29 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2023-37457?

CVE-2023-37457 is considered a moderate severity vulnerability due to the potential for excessive resource consumption.

2

How do I fix CVE-2023-37457?

To fix CVE-2023-37457, upgrade to Asterisk versions 18.21.0, 20.5.1, 21.0.1, or certified-asterisk 18.9-cert6 or later.

3

What versions of Asterisk are affected by CVE-2023-37457?

Asterisk versions 18.20.0 and prior, 20.5.0 and prior, and 21.0.0 are affected by CVE-2023-37457.

4

What does CVE-2023-37457 exploit in Asterisk?

CVE-2023-37457 exploits the 'update' functionality of the PJSIP_HEADER dialplan function, leading to potential resource exhaustion.

5

Is there a workaround for CVE-2023-37457 if I cannot upgrade?

There are no specific workarounds provided for CVE-2023-37457; upgrading to a fixed version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203