CVE-2023-37457: Asterisk's PJSIP_HEADER dialplan function can overwrite memory/cause crash when using 'update'
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
Remediation
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.