Kimai through version 2.65.0 has a business logic vulnerability in its default team creation endpoints. Authenticated users with project permission-management rights can exploit this flaw to gain unauthorized team-lead privileges by creating or using a customer, project, or activity with a name matching an existing team. This occurs because the endpoints reuse existing teams of the same name and add the user as teamlead without proper authorization checks. The issue is fixed in version 2.65.0.