mirror of https://github.com/asterisk/asterisk
The snprintf size parameter in xmpp_action_hook() is computed from the attacker-controlled namespace prefix length and is not bounded by the 256-byte stack buffer size. When a remote XMPP peer sends a stanza with a child element whose namespace prefix exceeds 249 characters, snprintf writes past the buffer boundary. Use sizeof(attr) as the snprintf size limit and %.*s precision to extract only the prefix portion of the element name, preserving the original truncation behavior for valid inputs. Resolves: #GHSA-mxgm-8c6f-5p8freleases/21
parent
ee1b66a5e4
commit
1328dbb503
Loading…
Reference in new issue