The vulnerability is a privilege escalation in OpenCTI's GraphQL API. The root cause is improper access control in several functions within opencti-platform/opencti-graphql/src/domain/user.js. An organization administrator could perform actions such as adding users to their organization, editing user fields, and adding relationships to users that were outside of their authorized access scope. This could be exploited to add a user with higher privileges from a different organization into the admin's own organization, thereby escalating privileges.
The patch introduces a new function, loadUserToUpdateWithAccessCheck, which consolidates and enforces the necessary access control checks. This function verifies that the user performing the action has the required capabilities or, if they are an organization admin, that the user being acted upon is within their administrated organizations. This new function is now used in assignOrganizationToUser, userEditField, userAddRelation, and other user management functions to prevent the unauthorized actions.