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-5p8fpull/2049/head
parent
2dfd7023f7
commit
8d5ca3df2e
Loading…
Reference in new issue