{"id":"CVE-2026-57191","summary":"Asterisk: Stack buffer overflow in MWI NOTIFY Message-Account parsing","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 unbounded `sscanf` in `res_pjsip_pubsub` when parsing the `MWI NOTIFY` `Message-Account` field may allow an unauthenticated attacker to send a carefully crafted packet that causes a stack buffer overflow and corrupts the underlying transport, permanently disabling all SIP functionality. An Asterisk restart is required to restore full operation. 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-589g-qgf8-m6mx"],"modified":"2026-11-11T13:30:21.435400830Z","published":"2026-10-27T21:32:23.714Z","database_specific":{"cwe_ids":["CWE-120","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57191.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-57191.json"},{"type":"ADVISORY","url":"https://github.com/asterisk/asterisk/security/advisories/GHSA-589g-qgf8-m6mx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57191"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/0e89514084490070c5ecee419ec5ee37b7c49528"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/647b35c3cfd4a2cc3b1fb7560b085feba5c24b4b"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/7a1ffcdf38cc76d1c4eae51651667f3fd4548ab0"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/b4be3bd67ce4ac35b94fbfa860cdd9e1c906610b"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/b5281828dad7d44658439ba6393fe6be3328a4bd"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/dca516f6d895e8867d48fa56b6ce7f05b6f7457a"},{"type":"FIX","url":"https://github.com/asterisk/asterisk/commit/ee1b66a5e40733ba0b9fad7fc4d032cabbe1dd75"}],"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":"0e89514084490070c5ecee419ec5ee37b7c49528"},{"fixed":"647b35c3cfd4a2cc3b1fb7560b085feba5c24b4b"},{"fixed":"7a1ffcdf38cc76d1c4eae51651667f3fd4548ab0"},{"fixed":"b4be3bd67ce4ac35b94fbfa860cdd9e1c906610b"},{"fixed":"b5281828dad7d44658439ba6393fe6be3328a4bd"},{"fixed":"dca516f6d895e8867d48fa56b6ce7f05b6f7457a"},{"fixed":"ee1b66a5e40733ba0b9fad7fc4d032cabbe1dd75"}],"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"},{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"22.0.0-pre1"},{"fixed":"22.10.1"}]},{"range":[{"introduced":"23.0.0-pre1"},{"fixed":"23.4.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"strategy":"StringRangeExpression","range":[{"introduced":"22.8-cert1-pre1"},{"fixed":"22.8-cert3"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"0e89514084490070c5ecee419ec5ee37b7c49528"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"647b35c3cfd4a2cc3b1fb7560b085feba5c24b4b"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"7a1ffcdf38cc76d1c4eae51651667f3fd4548ab0"}]},{"range":[{"fixed":"b4be3bd67ce4ac35b94fbfa860cdd9e1c906610b"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"b5281828dad7d44658439ba6393fe6be3328a4bd"}]},{"range":[{"fixed":"dca516f6d895e8867d48fa56b6ce7f05b6f7457a"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"ee1b66a5e40733ba0b9fad7fc4d032cabbe1dd75"}]},{"range":[{"fixed":"1f072600089c8321b8c4141f431742b06cae1c66"}],"source":"REFERENCES_TAG","original_tag":"20.20.1"},{"range":[{"fixed":"b9fda9d45703e9dbae5542300bb1f11a1abe2f37"}],"source":"REFERENCES_TAG","original_tag":"21.12.3"},{"original_tag":"22.10.1","range":[{"fixed":"f0e408a7b0d829c85bf15fa4b487870a50cb3000"}],"source":"REFERENCES_TAG"},{"original_tag":"23.4.1","range":[{"fixed":"9c6d578ea138e2a5df3bbc261b82a94424d6ce53"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"19ea385cecb1b9403e3d924bcb3d770a04d50b49"}],"source":"REFERENCES_TAG","original_tag":"certified-20.7-cert11"},{"original_tag":"certified-22.8-cert3","range":[{"fixed":"3c1105ea3c80209b5420565d125dc2163eba436a"}],"source":"REFERENCES_TAG"}]}}],"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-57191.json","vanir_signatures":[{"target":{"file":"res/res_pjsip_pubsub.c"},"deprecated":false,"digest":{"line_hashes":["196802074557709696383456769271669150260","22692118539510665806266135820951429040","32359863829891225643380384936408373264","138657109821532298122947582690166723149"],"threshold":0.9},"id":"CVE-2026-57191-02c15a9e","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/7a1ffcdf38cc76d1c4eae51651667f3fd4548ab0"},{"id":"CVE-2026-57191-157e6931","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/0e89514084490070c5ecee419ec5ee37b7c49528","target":{"file":"res/res_pjsip_pubsub.c"},"deprecated":false,"digest":{"line_hashes":["196802074557709696383456769271669150260","22692118539510665806266135820951429040","32359863829891225643380384936408373264","138657109821532298122947582690166723149"],"threshold":0.9}},{"source":"https://github.com/asterisk/asterisk/commit/ee1b66a5e40733ba0b9fad7fc4d032cabbe1dd75","target":{"file":"res/res_pjsip_pubsub.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["196802074557709696383456769271669150260","22692118539510665806266135820951429040","32359863829891225643380384936408373264","138657109821532298122947582690166723149"]},"id":"CVE-2026-57191-2580b980","signature_type":"Line","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/647b35c3cfd4a2cc3b1fb7560b085feba5c24b4b","target":{"file":"res/res_pjsip_pubsub.c","function":"parse_simple_message_summary"},"deprecated":false,"digest":{"length":605,"function_hash":"157433632638197077016576831919055573989"},"id":"CVE-2026-57191-42505900","signature_type":"Function"},{"id":"CVE-2026-57191-564fd5eb","signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/7a1ffcdf38cc76d1c4eae51651667f3fd4548ab0","target":{"file":"res/res_pjsip_pubsub.c","function":"parse_simple_message_summary"},"deprecated":false,"digest":{"function_hash":"157433632638197077016576831919055573989","length":605}},{"target":{"file":"res/res_pjsip_pubsub.c","function":"parse_simple_message_summary"},"deprecated":false,"digest":{"function_hash":"157433632638197077016576831919055573989","length":605},"id":"CVE-2026-57191-5df6f2d7","signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/b4be3bd67ce4ac35b94fbfa860cdd9e1c906610b"},{"target":{"file":"res/res_pjsip_pubsub.c","function":"parse_simple_message_summary"},"deprecated":false,"digest":{"length":605,"function_hash":"157433632638197077016576831919055573989"},"id":"CVE-2026-57191-6ac172c4","signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/ee1b66a5e40733ba0b9fad7fc4d032cabbe1dd75"},{"digest":{"function_hash":"157433632638197077016576831919055573989","length":605},"id":"CVE-2026-57191-6fba0bd0","signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/dca516f6d895e8867d48fa56b6ce7f05b6f7457a","target":{"file":"res/res_pjsip_pubsub.c","function":"parse_simple_message_summary"},"deprecated":false},{"source":"https://github.com/asterisk/asterisk/commit/b5281828dad7d44658439ba6393fe6be3328a4bd","target":{"file":"res/res_pjsip_pubsub.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["196802074557709696383456769271669150260","22692118539510665806266135820951429040","32359863829891225643380384936408373264","138657109821532298122947582690166723149"]},"id":"CVE-2026-57191-7131f543","signature_type":"Line","signature_version":"v1"},{"id":"CVE-2026-57191-756d5f46","signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/b5281828dad7d44658439ba6393fe6be3328a4bd","target":{"function":"parse_simple_message_summary","file":"res/res_pjsip_pubsub.c"},"deprecated":false,"digest":{"length":605,"function_hash":"157433632638197077016576831919055573989"}},{"digest":{"line_hashes":["196802074557709696383456769271669150260","22692118539510665806266135820951429040","32359863829891225643380384936408373264","138657109821532298122947582690166723149"],"threshold":0.9},"id":"CVE-2026-57191-7e45e71d","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/647b35c3cfd4a2cc3b1fb7560b085feba5c24b4b","target":{"file":"res/res_pjsip_pubsub.c"},"deprecated":false},{"source":"https://github.com/asterisk/asterisk/commit/dca516f6d895e8867d48fa56b6ce7f05b6f7457a","target":{"file":"res/res_pjsip_pubsub.c"},"deprecated":false,"digest":{"line_hashes":["196802074557709696383456769271669150260","22692118539510665806266135820951429040","32359863829891225643380384936408373264","138657109821532298122947582690166723149"],"threshold":0.9},"id":"CVE-2026-57191-9a62ff24","signature_type":"Line","signature_version":"v1"},{"target":{"file":"res/res_pjsip_pubsub.c","function":"parse_simple_message_summary"},"deprecated":false,"digest":{"function_hash":"157433632638197077016576831919055573989","length":605},"id":"CVE-2026-57191-b2a59edb","signature_type":"Function","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/0e89514084490070c5ecee419ec5ee37b7c49528"},{"id":"CVE-2026-57191-b7416267","signature_type":"Line","signature_version":"v1","source":"https://github.com/asterisk/asterisk/commit/b4be3bd67ce4ac35b94fbfa860cdd9e1c906610b","target":{"file":"res/res_pjsip_pubsub.c"},"deprecated":false,"digest":{"line_hashes":["196802074557709696383456769271669150260","22692118539510665806266135820951429040","32359863829891225643380384936408373264","138657109821532298122947582690166723149"],"threshold":0.9}}],"vanir_signatures_modified":"2026-11-11T13:30:21Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}