CVE-2026-52820

Kimai: Timesheet PATCH/POST allows assigning to project outside user's team via query_builder OR-bypass

Published Sep 15, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Kimai is an open-source time tracking application. Prior to 2.57.0, PATCH /api/timesheets/{id} and POST /api/timesheets accept a user-controlled project identifier through TimesheetApiEditForm and FormTrait, and ProjectRepository::getQueryBuilderForFormType() places that identifier in an unconditional OR branch that bypasses the team access criteria. Any authenticated user with edit_own_timesheet can therefore assign an owned timesheet to a project outside the user's teams, persist unauthorized project attribution, and retrieve project and customer metadata through GET /api/timesheets/{id}?full=true. TimesheetTeamAccessValidator now checks changed project and activity associations against current team access. This issue is fixed in version 2.57.0.

Analysis

AI-generated

Technical impact

Kimai prior to version 2.57.0 allowed authenticated users with the edit_own_timesheet permission to modify timesheet entries via PATCH / POST endpoints. Through the TimesheetApiEditForm and FormTrait, and ProjectRepository::getQueryBuilderForFormType() placed that identifier in an unconditional OR branch, bypassing the team access criteria. As a result, any authenticated user could assign a timesheet to a project outside the user’s teams, thereby persisting unauthorized project attribution and accessing project and customer metadata via the GET / api/timesheets/{id}?full=true endpoint. The issue was addressed by adding project validation in TimesheetTeamAccessValidator in version 2.57.0. This flaw represents a privilege‑escalation and data‑disclosure vulnerability (CWE‑639).

Affected Systems

The vulnerability affects the Kimai time‑tracking application versions before 2.57.0. Users who are authenticated and hold the edit_own_timesheet role can exploit the flaw to assign timesheets to projects outside their teams. The issue was fixed in release 2.57.0; all later versions are not affected.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score is below 1 %, suggesting a low probability of exploitation, and the vulnerability is not listed in CISA’s KEV catalog. An attacker only needs valid credentials and the edit_own_timesheet role to execute the attack. While the flaw does not provide remote code execution, it enables unauthorized data modification and disclosure, potentially facilitating further attacks if combined with other weaknesses. Because the issue is reachable via the standard REST API, it can be triggered from any client possessing the required permissions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kimai to version 2.57.0 or later, which removes the query‑builder bypass and adds project validation logic
  • Restrict the edit_own_timesheet permission to trusted users and audit role assignments to avoid unnecessary privilege
  • Audit existing timesheets to identify any that are linked to projects outside the user’s teams and correct discrepancies after applying the update

Generated by OpenCVE AI on September 17, 2026 at 17:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vrr2-g9gh-c3jc Kimai: Timesheet PATCH/POST allows assigning to project outside user's team via query_builder OR-bypass
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Kimai
Kimai kimai
Vendors & Products Kimai
Kimai kimai
Type Values Removed Values Added
Description Kimai is an open-source time tracking application. Prior to 2.57.0, PATCH /api/timesheets/{id} and POST /api/timesheets accept a user-controlled project identifier through TimesheetApiEditForm and FormTrait, and ProjectRepository::getQueryBuilderForFormType() places that identifier in an unconditional OR branch that bypasses the team access criteria. Any authenticated user with edit_own_timesheet can therefore assign an owned timesheet to a project outside the user's teams, persist unauthorized project attribution, and retrieve project and customer metadata through GET /api/timesheets/{id}?full=true. TimesheetTeamAccessValidator now checks changed project and activity associations against current team access. This issue is fixed in version 2.57.0.
Title Kimai: Timesheet PATCH/POST allows assigning to project outside user's team via query_builder OR-bypass
Weaknesses CWE-639
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 15, 2026, 12:42 PM
Reserved
Jun 8, 2026, 6:11 PM
Status
Deferred
Published
Sep 15, 2026, 11:17 AM
Modified
Sep 23, 2026, 6:22 PM