Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify internet-exposed default-secret Kimai instance
-
DeliveryEnumerate username and guess super_admin id=1
-
ExploitForge HMAC-signed cookie/login link with known APP_SECRET
-
ExecutionAuthenticate as super_admin without credentials
-
ImpactFull administrative account takeover
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V13 - Configuration Secure default settings
|
| Exploitation Conditions | Exploitation requires the target to be deployed from the official Kimai Docker image (or bare-metal using .env.dist) with APP_SECRET left at the default sentinel 'change_this_to_something_unique' - instances that set a custom secret are not affected. Beyond the network path (AV:N, no auth needed), the attacker must know a valid username AND correctly guess that account's sequential integer ID (super_admin is typically id=1, and IDs leak in some URLs/API responses) AND the target account must have no active 2FA - 2FA fully blocks the forged-token login, and these combined requirements are why the CVSS carries AC:H. |
| Impact | The 9.1 CVSS 4.0 score correctly encodes AC:H, and that complexity is real: successful exploitation requires knowing a valid username, correctly guessing that user's sequential account ID, and the target lacking active 2FA - so this is not a trivial single-request RCE despite being network-reachable and unauthenticated (PR:N/UI:N). The signals are consistent rather than conflicting: a public Nuclei template (POC) exists but EPSS is only 0.38% (31st percentile) and the flaw is not in CISA KEV, indicating no confirmed active exploitation and likely opportunistic rather than mass exploitation to date. The determining factor is deployment hygiene - the population at risk is specifically operators who used the Docker image and never set their own APP_SECRET, which is a plausibly large subset given the sentinel required manual override; any mid-sized operator running an internet-exposed default-secret instance should treat this as urgent because the exploit primitive (forging a super_admin login) is total for confidentiality and integrity. Because VA:N/A:N, availability is unaffected - the impact is account compromise, not outage. |
| Exploit ScenarioDerived | An attacker discovers an internet-exposed Kimai instance deployed from the default Docker image, enumerates or guesses a valid username, and assumes the super_admin is id=1. Using the publicly-known APP_SECRET as the HMAC key (as automated by the published Nuclei template), the attacker forges a valid KIMAI_REMEMBER cookie or login link and authenticates as the super_admin without any credentials, provided that account has no 2FA enabled. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Account takeover in Kimai time-tracking software (versions <= 2.57.0) stems from the official Docker image shipping a publicly-known default APP_SECRET ('change_this_to_something_unique') that is used as Symfony's kernel.secret. Any internet-reachable instance deployed from the image without overriding APP_SECRET lets an unauthenticated attacker forge HMAC-signed remember-me cookies, login links, and password-reset URLs to log in as any account, including the super_admin. Publicly available exploit code exists (a Nuclei template), though EPSS remains low at 0.38%.
RemediationAI
Vendor-released patch: upgrade to Kimai 2.58.0, which removes the default APP_SECRET from the Dockerfile and adds an entrypoint routine (ensureAppSecret) that generates a unique secret via php bin2hex(random_bytes(32)), persists it to /opt/kimai/var/data/.appsecret, and mirrors it into /opt/kimai/.env.local (fix commit 31a8f887a5cda517db7b4320a7ad997c87d08601, PR #5952). If you cannot upgrade immediately, the primary compensating control is to explicitly set a strong random APP_SECRET (e.g., 64 hex chars) via -e APP_SECRET=... or your compose/env file and restart - note that changing the secret invalidates existing remember-me cookies, pending password-reset links, and CSRF tokens, forcing users to re-authenticate. Additionally, enforce 2FA on all accounts (especially the id=1 super_admin), since an active second factor blocks the forged-token login path, and restrict network exposure of the Kimai URL to trusted networks or behind a VPN/reverse-proxy auth while remediating. Advisory: https://github.com/kimai/kimai/security/advisories/GHSA-jr9p-4h4j-6c58.
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 a PHP/Symfony-based self-hosted time-tracking application (package composer/kimai/kimai). Symfony derives kernel.secret from the APP_SECRET environment variable and uses it as the HMAC key for security-sensitive tokens: the KIMAI_REMEMBER cookie, LoginLink signatures, password-reset URLs, and CSRF tokens. The root cause is CWE-1188 (insecure default initialization): Dockerfile:263 hard-codes ENV APP_SECRET=change_this_to_something_unique, config/packages/framework.yaml:7 consumes it as kernel.secret, and neither .docker/entrypoint.sh nor any startup guard validates or replaces the sentinel. Because the key is universally known, an attacker can locally compute valid signatures for any user. Kimai user IDs are sequential integers starting at 1, and the first super_admin is almost always id=1, so the target identifier is highly predictable.
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:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable and unauthenticated (PR:N/UI:N), but AC:H because success needs a known username, a correctly guessed sequential ID, and no 2FA; full C/I compromise via account takeover, no availability impact.
Primary rating from Vendor (https://github.com/kimai/kimai).
CVSS VectorVendor: https://github.com/kimai/kimai
Lifecycle Timeline
4DescriptionCVE.org
Summary
The official Kimai Docker image ships with APP_SECRET=change_this_to_something_unique as the default environment variable. The Docker entrypoint does not override or validate this value. Any Kimai instance deployed using the Docker image without explicitly setting APP_SECRET runs with a publicly-known Symfony kernel.secret, enabling an unauthenticated attacker to forge HMAC-signed cookies and login links to take over any account including super_admin.
Details
Dockerfile:263 sets ENV APP_SECRET=change_this_to_something_unique. This value is consumed by config/packages/framework.yaml:7 as kernel.secret, which Symfony uses to HMAC-sign:
- The
KIMAI_REMEMBERremember-me cookie - LoginLink signatures
- Password reset URLs
- CSRF tokens
The .docker/entrypoint.sh does not check for or replace the default sentinel value. The bare-metal .env.dist:38 ships the same default. No startup-time guard exists anywhere in the codebase that refuses to start when APP_SECRET equals the sentinel.
User IDs are sequential integers starting from 1. The first super_admin account is almost always id=1. User IDs are visible in some URLs and API responses.
*A PoC was provided, but removed for security reasons.*
Impact
Any Kimai instance deployed via the official Docker image without overriding APP_SECRET can be compromised from the internet. An unauthenticated attacker who can reach the Kimai URL can forge authentication tokens and log in as any user if:
- a username is known AND
- the correct account ID for this username is guessed AND
- the account has no active 2FA (two factor) authentication
Solution
- The entrypoint.sh file is updated and now contains a script that generates a random
APP_SECRETviabin2hex(random_bytes(32))which will be stored in/opt/kimai/var/data/.appsecret - The entrypoint.sh will create the file
/opt/kimai/.env.localcontaining theAPP_SECRET, either fetched from the Docker Environment or from the newly created secret file - The documentation was updated to highlight the importance of using a random secret for
APP_SECRET - The Dockerfile removed default
APP_SECRET=change_this_to_something_unique - Login links now contain more entropy (see GHSA-m492-gv72-xvxj) - so even without all previous changes, attackers won't be able to generate Login links even for installations that have a hard-coded
APP_SECRET=change_this_to_something_unique
See https://www.kimai.org/en/security/ghsa-jr9p-4h4j-6c58 for more information.
Articles & Coverage 1
Executive ViewAI
Kimai time-tracking software versions 2.57.0 and earlier contain a critical account takeover vulnerability stemming from a hardcoded default secret key in the official Docker image. An unauthenticated attacker can forge authentication tokens to gain unauthorized access to any account, including administrator accounts, on internet-facing deployments that have not manually overridden the default configuration. This vulnerability directly threatens access control, data confidentiality, and system integrity across affected deployments.
Apply vendor patch.
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.
Related Vulnerabilities in Kimai Authorization and Authentication Flaws
View all 8kimai2 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
Kimai's Twig sandbox exposes server-wide secrets through an unrestricted config() function in administrator-uploaded inv
EUVD-2026-78402
GHSA-jr9p-4h4j-6c58
NVD
CVE.org
EPSS
Exploit-DB