{"id":"CVE-2026-57188","summary":"Asterisk: Stack buffer overflow in res_xmpp XMPP namespace prefix handling","details":"Asterisk is an open source private branch exchange and telephony toolkit. Prior to Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3, an authenticated attacker may cause a stack buffer overflow in `res_xmpp` `XMPP namespace prefix` handling using carefully crafted packets. The `res_xmpp` module must be loaded, an XMPP connection must be configured in `xmpp.conf`, and the attacker must have an XMPP account on the same or a federated server. This issue is fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3.","aliases":["GHSA-mxgm-8c6f-5p8f"],"modified":"2026-11-01T07:17:56.601744317Z","published":"2026-10-27T17:55:29.170Z","database_specific":{"cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57188.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/asterisk/asterisk/releases/tag/20.20.1"},{"type":"WEB","url":"https://github.com/asterisk/asterisk/releases/tag/21.12.3"},{"type":"WEB","url":"https://github.com/asterisk/asterisk/releases/tag/22.10.1"},{"type":"WEB","url":"https://github.com/asterisk/asterisk/releases/tag/23.4.1"},{"type":"WEB","url":"https://github.com/asterisk/asterisk/releases/tag/certified-20.7-cert11"},{"type":"WEB","url":"https://github.com/asterisk/asterisk/releases/tag/certified-22.8-cert3"},{"type":"WEB","url":"https://github.com/asterisk/asterisk/tree/24.0.0-pre1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57188.json"},{"type":"ADVISORY","url":"https://github.com/asterisk/asterisk/security/advisories/GHSA-mxgm-8c6f-5p8f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57188"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/12072a559f592736a44dd9fbe1594e84714edfb4"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/1328dbb503da4aa11a480a9c28e170f17e5f4e84"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/3c4b08cf94eeaa3faefb3ae6c2d6ce1bd9747a13"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/433102c16b8edfc31d28c96166fef03fe72fb923"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/5e626250628b2579530f3f17e7b0aa37d082873b"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/d570a85e45153a36919ace5d0ab06a195b30f9d1"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/e329a6803ac5214028f98cc5f0b7167d66e32c08"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/asterisk/asterisk","events":[{"introduced":"0"},{"fixed":"1f072600089c8321b8c4141f431742b06cae1c66"},{"fixed":"19ea385cecb1b9403e3d924bcb3d770a04d50b49"},{"introduced":"68349125a8a825b0995b4ab1343c61bdb2ad33e5"},{"fixed":"b9fda9d45703e9dbae5542300bb1f11a1abe2f37"},{"introduced":"31b8dc09238d916be18d93dc7dda30711e636c17"},{"fixed":"f0e408a7b0d829c85bf15fa4b487870a50cb3000"},{"introduced":"ca5335d90ea8dc26fa2ea189f9621b1d8a4a3513"},{"fixed":"9c6d578ea138e2a5df3bbc261b82a94424d6ce53"},{"introduced":"5da1497b742194b535f13e155b87bd698772a4b6"},{"fixed":"3c1105ea3c80209b5420565d125dc2163eba436a"},{"fixed":"12072a559f592736a44dd9fbe1594e84714edfb4"},{"fixed":"1328dbb503da4aa11a480a9c28e170f17e5f4e84"},{"fixed":"3c4b08cf94eeaa3faefb3ae6c2d6ce1bd9747a13"},{"fixed":"433102c16b8edfc31d28c96166fef03fe72fb923"},{"fixed":"5e626250628b2579530f3f17e7b0aa37d082873b"},{"fixed":"d570a85e45153a36919ace5d0ab06a195b30f9d1"},{"fixed":"e329a6803ac5214028f98cc5f0b7167d66e32c08"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"20.20.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"introduced":"0"},{"fixed":"20.7-cert11"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"strategy":"StringRangeExpression","range":[{"introduced":"21.0.0-pre1"},{"fixed":"21.12.3"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"22.0.0-pre1"},{"fixed":"22.10.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"strategy":"StringRangeExpression","range":[{"introduced":"23.0.0-pre1"},{"fixed":"23.4.1"}],"source":"AFFECTED_FIELD"},{"strategy":"StringRangeExpression","range":[{"introduced":"22.8-cert1-pre1"},{"fixed":"22.8-cert3"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"12072a559f592736a44dd9fbe1594e84714edfb4"}]},{"range":[{"fixed":"1328dbb503da4aa11a480a9c28e170f17e5f4e84"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"3c4b08cf94eeaa3faefb3ae6c2d6ce1bd9747a13"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"433102c16b8edfc31d28c96166fef03fe72fb923"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"5e626250628b2579530f3f17e7b0aa37d082873b"}]},{"range":[{"fixed":"d570a85e45153a36919ace5d0ab06a195b30f9d1"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"e329a6803ac5214028f98cc5f0b7167d66e32c08"}]},{"original_tag":"20.20.1","range":[{"fixed":"1f072600089c8321b8c4141f431742b06cae1c66"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_TAG","original_tag":"21.12.3","range":[{"fixed":"b9fda9d45703e9dbae5542300bb1f11a1abe2f37"}]},{"original_tag":"22.10.1","range":[{"fixed":"f0e408a7b0d829c85bf15fa4b487870a50cb3000"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"9c6d578ea138e2a5df3bbc261b82a94424d6ce53"}],"source":"REFERENCES_TAG","original_tag":"23.4.1"},{"original_tag":"certified-20.7-cert11","range":[{"fixed":"19ea385cecb1b9403e3d924bcb3d770a04d50b49"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"3c1105ea3c80209b5420565d125dc2163eba436a"}],"source":"REFERENCES_TAG","original_tag":"certified-22.8-cert3"}]}}],"versions":["23.4.0","22.10.0","20.20.0","certified-22.8-cert2","certified-20.7-cert10","21.12.2","23.4.0-rc1","22.10.0-rc1","20.20.0-rc1","23.3.0","22.9.0","20.19.0","23.3.0-rc2","22.9.0-rc2","20.19.0-rc2","23.3.0-rc1","22.9.0-rc1","20.19.0-rc1","certified-22.8-cert1-pre1","22.8.2","23.2.2","20.18.2","certified-22.8-cert1","certified-20.7-cert9","21.12.1","certified-22.8-cert1-rc1","certified-20.7-cert8","23.2.1","21.12.0","20.18.1","23.2.0","20.18.0","20.18.0-rc1","23.2.0-rc1","23.1.0","20.17.0","certified-20.7-cert7","21.12.0-rc2","23.1.0-rc2","20.17.0-rc2","23.1.0-rc1","21.12.0-rc1","20.17.0-rc1","23.0.0","21.11.0","20.16.0","23.0.0-rc2","21.11.0-rc2","20.16.0-rc2","23.0.0-rc1","21.11.0-rc1","20.16.0-rc1","20.15.0","20.15.0-rc3","20.15.0-rc1","20.15.0-rc2","20.15.1","20.15.2","20.14.0","21.10.0","21.10.0-rc3","21.10.0-rc1","21.10.0-rc2","21.10.1","21.10.2","21.9.0","23.0.0-pre1","certified-20.7-cert6","certified-20.7-cert5","certified-20.7-cert4","21.9.0-rc1","20.14.0-rc1","21.8.0","20.13.0","21.8.0-rc1","20.13.0-rc1","21.7.0","20.12.0","21.7.0-rc2","20.12.0-rc2","21.7.0-rc1","20.12.0-rc1","21.6.1","20.11.1","21.6.0","certified-20.7-cert3","20.11.0","21.6.0-rc1","20.11.0-rc1","21.5.0","20.10.0","20.10.0-rc2","21.5.0-rc2","21.5.0-rc1","20.10.0-rc1","21.4.3","20.9.3","certified-20.7-cert2","21.4.2","20.9.2","21.4.1","20.9.1","certified-20.7-cert1","20.9.0","21.4.0","21.4.0-rc1","20.9.0-rc1","certified-20.7-cert1-rc2","21.3.1","20.8.1","21.3.0","20.8.0","21.3.0-rc1","20.8.0-rc1","certified-20.7-cert1-rc1","certified-20.7-cert1-pre1","20.7.0","21.2.0","21.2.0-rc2","20.7.0-rc2","20.7.0-rc1","21.2.0-rc1","21.1.0","20.6.0","21.1.0-rc2","20.6.0-rc2","21.1.0-rc1","20.6.0-rc1","21.0.2","20.5.2","20.5.1","21.0.1","21.0.0","20.5.0","21.0.0-rc1","20.5.0-rc1","21.0.0-pre1","20.4.0","20.4.0-rc2","20.4.0-rc1","20.3.1","20.3.0","20.3.0-rc1","20.2.1","20.2.0","20.2.0-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57188.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/3c4b08cf94eeaa3faefb3ae6c2d6ce1bd9747a13","target":{"file":"res/res_xmpp.c"},"deprecated":false,"digest":{"line_hashes":["241136243079847271578385576981068525623","49134831472923796327915713771902058327","132462961252005580287203081775898941441","193824353901022276843305837554727915710","59406024856970725275242531299330761370"],"threshold":0.9},"id":"CVE-2026-57188-029b62e7","signature_type":"Line"},{"signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/5e626250628b2579530f3f17e7b0aa37d082873b","target":{"file":"res/res_xmpp.c"},"deprecated":false,"digest":{"line_hashes":["241136243079847271578385576981068525623","49134831472923796327915713771902058327","132462961252005580287203081775898941441","193824353901022276843305837554727915710","59406024856970725275242531299330761370"],"threshold":0.9},"id":"CVE-2026-57188-0ff42677","signature_type":"Line"},{"source":"https://github.com/asterisk/asterisk/commit/1328dbb503da4aa11a480a9c28e170f17e5f4e84","target":{"file":"res/res_xmpp.c","function":"xmpp_action_hook"},"deprecated":false,"digest":{"function_hash":"262960198240580664810061218162635855582","length":1735},"id":"CVE-2026-57188-1c1a6ed1","signature_type":"Function","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/d570a85e45153a36919ace5d0ab06a195b30f9d1","target":{"function":"xmpp_action_hook","file":"res/res_xmpp.c"},"deprecated":false,"digest":{"length":1735,"function_hash":"262960198240580664810061218162635855582"},"id":"CVE-2026-57188-201ffd2b","signature_type":"Function"},{"id":"CVE-2026-57188-21359e23","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/1328dbb503da4aa11a480a9c28e170f17e5f4e84","target":{"file":"res/res_xmpp.c"},"deprecated":false,"digest":{"line_hashes":["241136243079847271578385576981068525623","49134831472923796327915713771902058327","132462961252005580287203081775898941441","193824353901022276843305837554727915710","59406024856970725275242531299330761370"],"threshold":0.9}},{"target":{"file":"res/res_xmpp.c"},"deprecated":false,"digest":{"line_hashes":["241136243079847271578385576981068525623","49134831472923796327915713771902058327","132462961252005580287203081775898941441","193824353901022276843305837554727915710","59406024856970725275242531299330761370"],"threshold":0.9},"id":"CVE-2026-57188-39f2aa1c","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/d570a85e45153a36919ace5d0ab06a195b30f9d1"},{"signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/3c4b08cf94eeaa3faefb3ae6c2d6ce1bd9747a13","target":{"file":"res/res_xmpp.c","function":"xmpp_action_hook"},"deprecated":false,"digest":{"function_hash":"262960198240580664810061218162635855582","length":1735},"id":"CVE-2026-57188-55ad8a9a","signature_type":"Function"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/12072a559f592736a44dd9fbe1594e84714edfb4","target":{"file":"res/res_xmpp.c","function":"xmpp_action_hook"},"deprecated":false,"digest":{"length":1735,"function_hash":"262960198240580664810061218162635855582"},"id":"CVE-2026-57188-56c14e21"},{"digest":{"line_hashes":["241136243079847271578385576981068525623","49134831472923796327915713771902058327","132462961252005580287203081775898941441","193824353901022276843305837554727915710","59406024856970725275242531299330761370"],"threshold":0.9},"id":"CVE-2026-57188-583dbddc","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/433102c16b8edfc31d28c96166fef03fe72fb923","target":{"file":"res/res_xmpp.c"},"deprecated":false},{"digest":{"line_hashes":["241136243079847271578385576981068525623","49134831472923796327915713771902058327","132462961252005580287203081775898941441","193824353901022276843305837554727915710","59406024856970725275242531299330761370"],"threshold":0.9},"id":"CVE-2026-57188-73e2e0dd","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/e329a6803ac5214028f98cc5f0b7167d66e32c08","target":{"file":"res/res_xmpp.c"},"deprecated":false},{"id":"CVE-2026-57188-b9d1bb6b","signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/5e626250628b2579530f3f17e7b0aa37d082873b","target":{"file":"res/res_xmpp.c","function":"xmpp_action_hook"},"deprecated":false,"digest":{"function_hash":"262960198240580664810061218162635855582","length":1735}},{"source":"https://github.com/asterisk/asterisk/commit/433102c16b8edfc31d28c96166fef03fe72fb923","target":{"function":"xmpp_action_hook","file":"res/res_xmpp.c"},"deprecated":false,"digest":{"function_hash":"262960198240580664810061218162635855582","length":1735},"id":"CVE-2026-57188-e05ddbb7","signature_type":"Function","signature_version":"v1"},{"source":"https://github.com/asterisk/asterisk/commit/e329a6803ac5214028f98cc5f0b7167d66e32c08","target":{"function":"xmpp_action_hook","file":"res/res_xmpp.c"},"deprecated":false,"digest":{"function_hash":"262960198240580664810061218162635855582","length":1735},"id":"CVE-2026-57188-f01a5f39","signature_type":"Function","signature_version":"v1"},{"id":"CVE-2026-57188-f2a24eb1","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/12072a559f592736a44dd9fbe1594e84714edfb4","target":{"file":"res/res_xmpp.c"},"deprecated":false,"digest":{"line_hashes":["241136243079847271578385576981068525623","49134831472923796327915713771902058327","132462961252005580287203081775898941441","193824353901022276843305837554727915710","59406024856970725275242531299330761370"],"threshold":0.9}}],"vanir_signatures_modified":"2026-11-01T07:17:56Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}