An incorrect authorization vulnerability in GitHub Enterprise Server allowed an authenticated user with a numeric user ID matching an enterprise's numeric ID to manage that enterprise's GitHub Apps and generate private keys without being a member of the enterprise. This flaw was due to ownership checks comparing numeric IDs without verifying the owner's account type. Exploitation required control of a session for the colliding user account and an enterprise-owned GitHub App. The vulnerability affected supported GitHub Enterprise Server versions prior to 3.23 and was fixed in versions 3.19.16, 3.20.12, 3.21.10, and 3.22.5.