An authorization flaw in MISP allows authenticated users to submit a sharing_group_id without proper authorization checks. This flaw occurs because validation of the sharing group was only performed when the distribution field was explicitly set to 4, enabling attackers to bypass authorization by omitting or altering this parameter. As a result, users with permission to create or modify certain MISP objects could associate data with unauthorized Sharing Groups, potentially bypassing intended information-sharing boundaries. The flaw affects attribute attachment/editing and Galaxy Cluster creation/editing workflows. The fix involves enforcing authorization checks whenever a non-empty sharing_group_id is submitted, independent of the distribution parameter, and centralizing the authorization logic.