Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Teamlead
-
DeliveryEnumerate target user or activity IDs via API
-
ExploitCraft POST to /api/teams/{id}/members/{userId}
-
ExecutionBackend authorizes team-edit only, skips target-scope check
-
PersistOut-of-scope object added to team
-
ImpactAccess downstream data via team-scoped visibility
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold an active Teamlead account on the target Kimai instance and must be the Teamlead of at least one editable team (i.e., isTeamleadOf(team) returns true). The attacker must have direct API access and knowledge of (or ability to enumerate) the numeric IDs of out-of-scope users or activities. Exploitation is limited to the Teamlead role - regular team members and users with no team-management permissions cannot exploit this. Admin and SuperAdmin users already have unrestricted scope and are unaffected. The vulnerability is not exploitable by unauthenticated users. No special server configuration is required; the vulnerable code paths are active in any default Kimai 2.x deployment with team features enabled. |
| Impact | No vendor-provided CVSS vector accompanies this advisory, so scoring must be independently assessed. The attack requires network access to the Kimai API and a valid Teamlead account (authenticated, low privilege), making unauthenticated exploitation impossible - this materially reduces real-world risk compared to a PR:N finding. Attack complexity is low once the attacker holds the Teamlead role, and no special preconditions beyond that role are required. No EPSS score is available. CISA KEV does not list this CVE. A PoC was reportedly prepared by the reporter but withheld from public disclosure. The primary business risk is privilege escalation through authorization boundary expansion: a Teamlead can silently pull out-of-scope users and activities into their team, causing downstream access-control decisions across visibility, reporting, and time-entry workflows to treat the forged relationships as legitimate. This is a medium-severity integrity and confidentiality issue rather than a system-compromise vector. |
| Exploit ScenarioDerived | An authenticated Teamlead who knows or can enumerate the numeric IDs of users or activities outside their management scope sends a crafted POST request directly to /api/teams/{id}/members/{userId} with an out-of-scope userId. The backend validates only that the caller may edit the referenced team, grants the operation, and the target user is silently added to the team. From that point on, the Teamlead gains visibility into the added user's time entries, projects, and activity data through normal Kimai reporting features, effectively escalating their data access beyond the intended authorization boundary. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 14, 2026
Improper authorization in Kimai's Team API endpoints allows an authenticated Teamlead to add users and activities to their team that fall outside their intended management scope, bypassing the access boundaries enforced by the frontend. Affected versions are Kimai <= 2.57.0 (composer package kimai/kimai). A proof-of-concept was reportedly created but withheld; no public exploit code is currently available and this vulnerability is not listed in CISA KEV. Once a Teamlead writes an out-of-scope team relation, downstream authorization logic may treat those relations as legitimate, silently expanding access to time entries, project visibility, and reporting for the affected users and activities.
RemediationAI
Upgrade to Kimai 2.58.0, which adds secondary IsGranted checks in src/API/TeamController.php: access_user on the member before adding them, and view on the customer, project, and activity before granting team access. Full patch details are at https://www.kimai.org/en/security/ghsa-xv4r-4885-gwpg. If an immediate upgrade is not feasible, a compensating control is to revoke the Teamlead role from any accounts that do not strictly require it and to restrict direct API access (e.g., via WAF or network policy) to the POST /api/teams/{id}/members/* and POST /api/teams/{id}/activities/* endpoints for non-admin users. Note that restricting API access may break legitimate Teamlead workflows and should be treated as a temporary measure only.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Kimai is a PHP-based open-source time-tracking application built on Symfony. The flaw is rooted in CWE-285 (Improper Authorization): the Symfony voter in src/Voter/TeamVoter.php grants access to team-edit operations if the caller holds the Teamlead role for that specific Team, but neither the POST /api/teams/{id}/members/{userId} nor the POST /api/teams/{id}/activities/{activityId} API route performs a secondary authorization check on the referenced object (User or Activity). The frontend's UserType query builder in src/Repository/UserRepository.php correctly restricts Teamlead-visible users to members of their own led teams, but that restriction is never replicated in the API controller (src/API/TeamController.php). The affected package is pkg:composer/kimai/kimai, versions through 2.57.0.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Network API, no complexity; PR:L because Teamlead role required; S:C because the integrity violation crosses the authorization boundary affecting other users and activities; no availability impact.
Primary rating from Vendor (https://github.com/kimai/kimai).
CVSS VectorVendor: https://github.com/kimai/kimai
Lifecycle Timeline
1DescriptionCVE.org
Summary
Kimai contains an authenticated improper authorization vulnerability in Team-related assignment APIs. A Teamlead who can edit their own team can use backend API endpoints to add users or activities that fall outside their intended visible or manageable scope, even when the frontend correctly hides those targets.
This affects both team member assignment and team activity assignment. The issue is caused by treating "may edit this team" as equivalent to "may attach any referenced object to this team", without performing a second authorization check on the target user or activity.
Details
The issue affects at least the following API routes:
POST /api/teams/{id}/members/{userId}POST /api/teams/{id}/activities/{activityId}
In both cases, the backend checks whether the caller may edit the Team, but it does not verify whether the referenced User or Activity falls inside the caller's allowed management scope.
For team member assignment, the frontend form correctly limits the visible user choices. In src/Form/TeamEditForm.php, the team edit form uses UserType:
$builder->add('users', UserType::class, [
'label' => 'add_user.label',
'help' => 'team.add_user.help',
'mapped' => false,
'multiple' => false,
'expanded' => false,
'required' => false,
'ignore_users' => $team !== null ? $team->getUsers() : []
]);In src/Form/Type/UserType.php, the user selector is built from UserRepository::getQueryBuilderForFormType():
$query = new UserFormTypeQuery();
$query->setUser($options['user']);
$qb = $this->userRepository->getQueryBuilderForFormType($query);
$users = $qb->getQuery()->getResult();And in src/Repository/UserRepository.php, Teamlead-visible candidates are limited to team members from teams they lead:
if (null !== $user && $user->isTeamlead()) {
$userIds = [];
foreach ($user->getTeams() as $team) {
if ($team->isTeamlead($user)) {
foreach ($team->getUsers() as $teamMember) {
$userIds[] = $teamMember->getId();
}
}
}
$userIds = array_unique($userIds);
$qb->setParameter('teamMember', $userIds);
$or->add($qb->expr()->in('u.id', ':teamMember'));
}However, the actual member-assignment API does not reuse that restriction. In src/API/TeamController.php:
#[IsGranted('edit', 'team')]
#[Route(methods: ['POST'], path: '/{id}/members/{userId}', name: 'post_team_member', requirements: ['id' => '\d+', 'userId' => '\d+'])]
public function postMemberAction(Team $team, #[MapEntity(mapping: ['userId' => 'id'])] User $member): Response
{
if ($member->isInTeam($team)) {
throw new BadRequestHttpException('User is already member of the team');
}
$team->addUser($member);
$this->teamService->saveTeam($team);
}For activity assignment, the same pattern appears. In src/API/TeamController.php:
#[IsGranted('edit', 'team')]
#[Route(methods: ['POST'], path: '/{id}/activities/{activityId}', name: 'post_team_activity', requirements: ['id' => '\d+', 'activityId' => '\d+'])]
public function postActivityAction(Team $team, #[MapEntity(mapping: ['activityId' => 'id'])] Activity $activity, ActivityRepository $activityRepository): Response
{
if ($team->hasActivity($activity)) {
throw new BadRequestHttpException('Team has already access to activity');
}
$team->addActivity($activity);
$activityRepository->saveActivity($activity);
}The Team voter only checks whether the current user may edit that team, not whether the referenced object is within the Teamlead's legitimate scope. In src/Voter/TeamVoter.php:
if (!$user->isAdmin() && !$user->isSuperAdmin() && !$user->isTeamleadOf($subject)) {
return false;
}
return $this->permissionManager->hasRolePermission($user, $attribute . '_team');For activities, this is especially risky because later authorization logic may trust the team assignment that was just written. In src/Security/RolePermissionManager.php:
public function checkTeamAccessActivity(Activity $activity, User $user): bool
{
if ($activity->getProject() !== null && !$this->checkTeamAccessProject($activity->getProject(), $user)) {
return false;
}
return $this->checkTeamAccess($activity->getTeams(), $user);
}So once a Teamlead is able to write a new team/activity relation, later access-control decisions may treat that relation as legitimate input.
*A PoC was provided, but removed for security reasons.*
Impact
This vulnerability allows a Teamlead to use their own editable team as an expansion container for objects that should remain outside their authorized scope. In the validated member-assignment case, the attacker can forcibly add users who are not supposed to be manageable through that Teamlead's visible range. In the activity-assignment case, the attacker can attach activities that are outside the intended authorization boundary of the team.
Once such relations are written, downstream authorization, visibility, and business workflows may start treating them as legitimate. This can affect user scoping, team-based access control, customer/project/activity visibility, time-entry behavior, statistics, and reporting. The issue therefore breaks the trustworthiness of Team as a security isolation container.
Solution
Several new permission checks were added to src/API/TeamController.php -
- Check if user can be accessed with
#[IsGranted('access_user', 'member')]before adding as new team member - Check if customer can be seen with
#[IsGranted('view', 'customer')]before a team is granted access to a customer - Check if project can be seen with
#[IsGranted('view', 'project')]before a team is granted access to a project - Check if activity can be seen with
#[IsGranted('view', 'activity')]before a team is granted access to an activity
See https://www.kimai.org/en/security/ghsa-xv4r-4885-gwpg for more information.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in Kimai Authorization and Authentication Flaws
View all 8In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-78401
GHSA-xv4r-4885-gwpg
NVD
CVE.org
EPSS
Exploit-DB