Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 15, 2026
Kimai's REST API accepts the KIMAI_SESSION cookie that is issued after password verification but before the TOTP step, so anyone who knows an account password can obtain fully authenticated API access without ever supplying the second factor. The flaw affects any Kimai instance with two-factor authentication enabled and only benefits attackers who already hold the victim's password, but it defeats the exact protection 2FA is meant to provide. It is fixed in Kimai 2.59.0; a proof-of-concept was submitted with the report but was removed from the public advisory, and no public exploit code is currently identified.
Earlier versions of this analysis (1)
Two-factor authentication bypass in Kimai (open-source time-tracking) before 2.59.0 lets an attacker with only a victim's password reach every authenticated REST API endpoint without completing TOTP. The KIMAI_SESSION cookie returned by the password-only login response - issued before the 2FA step - is already treated as authenticated by /api/*, so it can be replayed to act fully as the user while the browser is still pinned to the 2FA screen. No public exploit identified at time of analysis (a PoC existed but was redacted by the reporter); not listed in CISA KEV.
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.
Know when the next one hits your stack
- 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:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable API replay with no user interaction; password is the attacker's own stolen input (the factor 2FA defends), so PR:N; full API read/write yields C:H/I:H, no availability impact.
Primary rating from Vendor (https://github.com/kimai/kimai).
CVSS VectorVendor: https://github.com/kimai/kimai
Lifecycle Timeline
3DescriptionCVE.org
Summary
Two-factor authentication (TOTP) can be fully bypassed for the REST API. The KIMAI_SESSION cookie returned in the response to the login request; issued after only the password is verified, before the TOTP step; is already accepted as authenticated by every /api/* endpoint.
So after submitting just the password, the web UI correctly holds the browser at the TOTP screen (/en/auth/2fa), but the cookie from that same login response can be replayed against the API to act as the user without ever entering the second factor. This affects any account with 2FA enabled and requires only the account password.
Details
Affected Component
- The API firewall / authorization.
config/packages/security.yaml guards the API with { path: '^/api', roles: IS_AUTHENTICATED }. During 2FA the session carries a Scheb TwoFactorToken, which satisfies IS_AUTHENTICATED (it is a real, non-anonymous token). App\API\Authentication\ApiRequestMatcher returns !$request->hasPreviousSession(), so a request that carries the login session skips the stateless API firewall and is served by the main session firewall; Scheb's TwoFactorAccessDecider::isAccessible() then evaluates IS_AUTHENTICATED to true for ^/api and lets it through, and App\Voter\ApiVoter grants API to any token whose user is a User. Web routes are not affected because they require concrete roles (e.g. ROLE_USER) that a TwoFactorToken does not hold.
PoC
_A PoC was provided, but removed for security reasons._
Impact
Two-factor authentication provides no protection for the REST API. If an attacker obtains a user's password (phishing, credential stuffing, reuse, breach); exactly the threat 2FA is meant to defend against; they get full authenticated API access as that user without the second factor. The whole exploit is a single cookie taken from the login response; no API token, Bearer header or CSRF token is required.
Solution
- The
/api/firewall now usesIS_AUTHENTICATED_REMEMBEREDwhich is only assigned after 2FA. The historically usedIS_AUTHENTICATEDflag is applied immediately after login and before 2FA happened. - The APIVoter checks both
$token instanceof TwoFactorTokenInterfaceandisGranted('IS_AUTHENTICATED_2FA_IN_PROGRESS', $user)to make sure that the user is not currently in the 2FA step. - Regression tests were added to prevent future escalation of the same issue.
See https://www.kimai.org/en/security/ghsa-v8hx-4vx8-wc96 for more information.
Executive ViewAI
Kimai before version 2.59.0 has a two-factor authentication bypass allowing attackers with a user's password to access sensitive time-tracking data via REST APIs, circumventing the organization's second-factor protections. This exposes payroll records, project billing, and employee hours to unauthorized modification or theft, creating compliance and financial risks for organizations relying on Kimai for workforce management.
Within 24 hours, disable REST API access for non-essential users in Kimai and enforce password resets across the organization to limit exposure. Within 7 days, implement network-level restrictions on API endpoints (firewall rules, reverse proxy authentication, or VPN-only access) to limit API calls to trusted systems, and monitor API logs for suspicious activity. Within 30 days, audit all API access logs since the vulnerability disclosure for unauthorized access patterns, enforce organization-wide password complexity and expiration policies, and prepare to deploy Kimai 2.59.0 or evaluate alternative time-tracking solutions.
No vendor-released patch identified at time of analysis; however, version 2.59.0 is documented as addressing this vulnerability and should be applied immediately upon release. Interim mitigations: (1) Restrict REST API access via network controls (VPN, firewall rules, reverse proxy authentication) to trusted systems only; (2) Disable API access for non-critical user accounts; (3) Implement additional authentication layers outside Kimai (OAuth, SAML, LDAP proxy) to add a security boundary; (4) Audit and monitor all API access logs for exploitation signs; (5) Enforce organization-wide password reset and strengthened complexity requirements.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-78408
GHSA-v8hx-4vx8-wc96
NVD
CVE.org
EPSS
Exploit-DB