CVE-2026-52827: Kimai 2FA bypass in REST API via session cookie replay

CVE-2026-52827 · Severity: high · CVSS 4 · Published 2026-09-15

Kimai is an open-source time-tracking application used by businesses to manage projects and billing. A security flaw allows an attacker who has stolen a user's password to completely bypass two-factor authentication (2FA) when accessing the system's programming interface (API). This means that even if a user has 2FA enabled to protect their account, an attacker can still access and modify their data using only their password.

Technologies: Kimai, kimai/kimai (Packagist). Vendors: Kimai, Packagist.

Quick answers

Is CVE-2026-52827 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-52827 being exploited in the wild.
How severe is CVE-2026-52827?
High severity, with a CVSS score of 4, published 15 September 2026.
Which products and versions are affected?
Kimai < 2.59.0; kimai/kimai (Packagist) < 2.59.0, ECOSYSTEM:introduced=0,fixed=2.59.0.
Is there a fix for CVE-2026-52827?
Yes. kimai/kimai (Packagist): upgrade to 2.59.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-52827 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-52827?
Check whether you run Kimai or kimai/kimai (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • kimai/kimai (Packagist): upgrade to 2.59.0 or later
    composer require kimai/kimai:^2.59.0

Technical details

A vulnerability in Kimai's API firewall allows for a full bypass of two-factor authentication (TOTP). The root cause is that the 'KIMAI_SESSION' cookie, which is issued immediately after a successful password verification but before the 2FA step, is incorrectly treated as fully authenticated by the REST API endpoints. The API firewall was configured to accept the 'IS_AUTHENTICATED' role, which is satisfied by the 'TwoFactorToken' generated during the 2FA transition. An attacker with valid user credentials can capture this session cookie and replay it against any '/api/*' endpoint to perform actions as the user without providing the second factor. This has been fixed in version 2.59.0 by requiring the 'IS_AUTHENTICATED_REMEMBERED' role for API access.

Affected products

  • Kimai Kimai < 2.59.0

Identifiers

  • CVE-2026-52827
  • GHSA-v8hx-4vx8-wc96

Timeline

  • 2026-06-29: disclosed
  • 2026-07-14: advisory: GitHub Advisory published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.