{"id":"CVE-2023-37457","state":"PUBLISHED","title":"Asterisk's PJSIP_HEADER dialplan function can overwrite memory/cause crash when using 'update'","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.","publishedAt":"2023-12-14T19:43:30.945Z","updatedAt":"2025-02-13T17:01:26.636Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["asterisk asterisk"],"affected":[{"vendor":"asterisk","product":"asterisk","versions":[{"version":"<= 18.20.0","status":"affected"},{"version":">= 19.0.0, <= 20.5.0","status":"affected"},{"version":"= 21.0.0","status":"affected"},{"version":"<= 18.9-cert5","status":"affected"}]}],"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"],"weaknesses":["CWE-120"],"ingestedAt":"2026-10-29T20:06:08.715Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/37xxx/CVE-2023-37457.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-37457","state":"PUBLISHED","datePublished":"2023-12-14T19:43:30.945Z","dateUpdated":"2025-02-13T17:01:26.636Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-07-06T13:01:36.996Z"},"containers":{"cna":{"title":"Asterisk's PJSIP_HEADER dialplan function can overwrite memory/cause crash when using 'update'","descriptions":[{"lang":"en","value":"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":[{"vendor":"asterisk","product":"asterisk","versions":[{"version":"<= 18.20.0","status":"affected"},{"version":">= 19.0.0, <= 20.5.0","status":"affected"},{"version":"= 21.0.0","status":"affected"},{"version":"<= 18.9-cert5","status":"affected"}]}],"references":[{"url":"https://github.com/asterisk/asterisk/security/advisories/GHSA-98rc-4j27-74hh","name":"https://github.com/asterisk/asterisk/security/advisories/GHSA-98rc-4j27-74hh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa","name":"https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00019.html"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-120","lang":"en","description":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-12-29T00:06:20.393Z"},"source":{"advisory":"GHSA-98rc-4j27-74hh","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/asterisk/asterisk/security/advisories/GHSA-98rc-4j27-74hh","name":"https://github.com/asterisk/asterisk/security/advisories/GHSA-98rc-4j27-74hh","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa","name":"https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00019.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T17:16:30.273Z"}}]}}}