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

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-07-13T23:55:35.000Z
- Modified: 2026-09-23T18:22:16.503Z
- Also known as: GHSA-vrr2-g9gh-c3jc
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- kimai kimai: < 2.57.0
- kimai/kimai (Packagist): before 2.57.0

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/kimai/kimai/security/advisories/GHSA-vrr2-g9gh-c3jc> (web)
- <https://github.com/kimai/kimai/pull/5929>
- <https://github.com/kimai/kimai/commit/976d38e8a4485a1c923ee7b5841849e91a06e849>
- <https://github.com/kimai/kimai/releases/tag/2.57.0>
- <https://www.kimai.org/en/security/ghsa-vrr2-g9gh-c3jc>
- <https://github.com/kimai/kimai> (package)

## Sources

- CVE List: [CVE-2026-52820](https://www.cve.org/CVERecord?id=CVE-2026-52820), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-vrr2-g9gh-c3jc](https://github.com/advisories/GHSA-vrr2-g9gh-c3jc), CC-BY-4.0, modified 2026-07-14
- NVD: [CVE-2026-52820](https://nvd.nist.gov/vuln/detail/CVE-2026-52820), Public domain, modified 2026-09-23

---

Page: https://cve.day/CVE-2026-52820 · Whole record: https://cve.day/CVE-2026-52820.json · Rebuilt by cve.day 2026-11-25T22:59:38.490Z
