Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker gains admin access to SAML IdP configured for Kimai
-
DeliveryCraft IdP-initiated SSO request embedding malicious RelayState URL
-
ExploitDeliver SSO link to target Kimai user
-
ExecutionUser authenticates at IdP, SAMLResponse and malicious RelayState POSTed to /saml/acs
-
PersistKimai ACS handler issues 302 redirect to attacker-controlled URL
-
ImpactUser lands on phishing page, credentials or session token harvested
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | SAML authentication must be explicitly enabled in Kimai - this is a non-default configuration, so deployments using only local password or LDAP authentication are entirely unaffected. Beyond that, exploitation requires one of two further conditions: (1) admin-level control over an IdP that is configured as a trusted SSO provider for the target Kimai instance, sufficient to set or influence the RelayState value in IdP-initiated flows, or (2) the ability to intercept and modify the SAMLResponse ACS POST in transit (requiring a man-in-the-middle position or access to SAML signing keys/certificates). User interaction is required - a legitimate Kimai user must complete the full SAML authentication flow. The vulnerability enables phishing outcomes only (credential or session token theft); it does not allow remote code execution, privilege escalation, or direct host compromise. The combination of non-default SAML configuration plus IdP-level access substantially limits the realistic attacker population. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P with all impact metrics at N) assigns zero impact scores, which reflects that the Kimai host itself is not directly compromised. Real-world risk is driven by the phishing vector: post-SSO credential or session token theft is a meaningful threat in organizations with SAML-enabled Kimai deployments, but the effective attack surface is sharply narrowed by two hard prerequisites - SAML must be deliberately enabled, and the attacker must hold admin-level control over the connected IdP or possess the SAML private keys to modify assertions in transit. The GHSA advisory explicitly states these conditions, making this unsuitable for broad opportunistic exploitation. No EPSS score was provided, limiting probabilistic comparison; absence from CISA KEV indicates no confirmed active exploitation. The CVSS 4.0 AC:L rating appears optimistic given the non-default configuration requirement and IdP access barrier - AC:H better reflects realistic conditions. Overall, this is a genuine vulnerability worth patching immediately given the trivial fix cost, but it does not represent an urgent priority for teams that have not deployed Kimai with SAML, nor for those that can confirm their IdP infrastructure is tightly controlled. |
| Exploit ScenarioDerived | An attacker who has obtained admin access to a SAML IdP configured for Kimai constructs an IdP-initiated SSO URL that sets RelayState to an attacker-controlled phishing site (e.g., https://attacker.example/fake-kimai-login). A legitimate Kimai user who follows the SSO link completes authentication at the IdP, after which Kimai's ACS handler issues a 302 redirect to the attacker's URL - where a convincing credential-harvesting page captures the user's password or post-SSO session token. No public exploit code has been identified at time of analysis, but the attack path is code-confirmed via Kimai's own unit test (SamlAuthenticationSuccessHandlerTest::testRelayState) and the reproduction steps are fully documented in GHSA-3jp4-mhh4-gcgr. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 26, 2026
Open redirect in Kimai's SAML Assertion Consumer Service handler (versions up to and including 2.52.0) enables an attacker with IdP-level access to redirect successfully authenticated users to arbitrary attacker-controlled URLs by supplying a malicious RelayState POST parameter. The vulnerable code in SamlAuthenticationSuccessHandler.php performs no host or scheme validation on the RelayState value - only checking that it does not equal the configured login_path - meaning any fully qualified external URL is accepted as a redirect destination post-SSO. Exploitation is narrowly constrained: SAML must be explicitly enabled (a non-default configuration) and the attacker must control or compromise the IdP; no public exploit has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog.
RemediationAI
Upgrade Kimai to version 2.53.0 or later, which is confirmed as the fix version per both the Composer package record and the vendor GHSA advisory (https://github.com/kimai/kimai/security/advisories/GHSA-3jp4-mhh4-gcgr). The fix implemented in PR #5878 (https://github.com/kimai/kimai/pull/5878) validates RelayState to ensure it cannot contain a host, port, or scheme prefix and cannot begin with '//', restricting redirects to relative paths within the same origin. If an immediate upgrade is not feasible, disabling SAML authentication in Kimai's configuration eliminates the vulnerable code path entirely - the trade-off is loss of SSO capability for affected users. A secondary compensating control is to restrict network access to the SAML ACS endpoint (/saml/acs) so that only traffic originating from known, trusted IdP IP ranges can POST to it; this reduces but does not fully eliminate risk since IdP-side compromise remains possible.
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 an open-source time-tracking application (CPE: cpe:2.3:a:kimai:kimai:*:*:*:*:*:*:*:*) that offers optional SAML 2.0 single sign-on integration. The vulnerability is classified as CWE-601 (URL Redirection to Untrusted Site / Open Redirect) and is located in src/Saml/Security/SamlAuthenticationSuccessHandler.php at lines 27-33. After a user completes SAML authentication, the handler extracts the RelayState parameter from the POST body (or query string) and returns it directly as the redirect destination. The sole guard - checking that RelayState does not equal the login_path URI - is trivially bypassed by supplying any other URL. The SAML 2.0 RelayState parameter is a standard protocol mechanism for preserving pre-authentication context; when used in IdP-initiated SSO flows it is fully attacker-controllable if the IdP is compromised or maliciously operated. The fix in PR #5878 adds validation requiring that RelayState cannot contain a host or port and cannot begin with '//', restricting redirects to relative paths within the same origin.
Know when Kimai 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:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
AC:H reflects non-default SAML requirement and mandatory IdP-level attacker control; UI:R for required user authentication; C:L for phishing-enabled credential theft with no direct host impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Kimai before 2.53.0 contains an open redirect vulnerability in the SAML authentication success handler that accepts unvalidated RelayState POST parameters as redirect destinations. Attackers with IdP access can supply malicious RelayState values to redirect authenticated users to attacker-controlled URLs for credential theft or phishing attacks.
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
Account takeover in Kimai time-tracking software (versions <= 2.57.0) stems from the official Docker image shipping a pu
kimai2 is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). Rated crit
Kimai is a web-based multi-user time-tracking application. Rated high severity (CVSS 7.2), this vulnerability is remotel
Kimai versions prior to 2.46.0 contain an overly permissive Twig sandbox configuration in the export functionality that
Kimai versions prior to 2.51.0 lack proper customer-level access controls in the invoice API endpoint, allowing any user
Kimai is a web-based multi-user time-tracking application. Rated medium severity (CVSS 6.5), this vulnerability is remot
kimai2 is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remot
kimai2 is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remot
Authorization bypass in the Kimai open-source time-tracking application before 2.56.0 lets any authenticated user holdin
Kimai 2 contains a persistent cross-site scripting vulnerability that allows attackers to inject malicious scripts into
Password reset links in Kimai before 2.58.0 function as persistent authentication credentials because the LoginLink HMAC
Authorization bypass in Kimai's QuickEntry controller allows authenticated network users holding view_other_timesheet an
EUVD-2026-66222
GHSA-wv9h-9jv8-rqm9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB