Skip to main content

Kimai CVE-2026-52824

| EUVDEUVD-2026-78402 CRITICAL
Initialization of a Resource with an Insecure Default (CWE-1188)
2026-07-14 https://github.com/kimai/kimai GHSA-jr9p-4h4j-6c58
9.1
CVSS 4.0 · Vendor: https://github.com/kimai/kimai
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internet-exposed default-secret Kimai instance
  2. Delivery
    Enumerate username and guess super_admin id=1
  3. Exploit
    Forge HMAC-signed cookie/login link with known APP_SECRET
  4. Execution
    Authenticate as super_admin without credentials
  5. Impact
    Full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

kimai < 2.58.0

Affected Packages

composer kimai/kimai fix: 2.58.0
euvd kimai fix: 2.58.0

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

Vendor (https://github.com/kimai/kimai) PRIMARY 9.1 CRITICAL
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
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/kimai/kimai).

CVSS VectorVendor: https://github.com/kimai/kimai

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Analysis Updated
Sep 15, 2026 - 11:28 vuln.today
v2 - CVSS changed
CVSS changed
Sep 15, 2026 - 11:22 NVD
9.1 (CRITICAL)
CVE Published
Jul 14, 2026 - 00:07 cve.org
CRITICAL 9.1
CVE Published
Jul 14, 2026 - 00:07 cve.org
CRITICAL

DescriptionCVE.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_REMEMBER remember-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_SECRET via bin2hex(random_bytes(32)) which will be stored in /opt/kimai/var/data/.appsecret
  • The entrypoint.sh will create the file /opt/kimai/.env.local containing the APP_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.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
popular open-source self-hosted time tracker, common but not ubiquitous
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

More in Kimai

View all
CVE-2021-3985 CRITICAL POC
9.0 Dec 01

kimai2 is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). Rated crit

CVE-2023-46245 HIGH POC
7.2 Oct 31

Kimai is a web-based multi-user time-tracking application. Rated high severity (CVSS 7.2), this vulnerability is remotel

CVE-2026-23626 MEDIUM POC
6.8 Jan 18

Kimai versions prior to 2.46.0 contain an overly permissive Twig sandbox configuration in the export functionality that

CVE-2026-28685 MEDIUM POC
6.5 Mar 06

Kimai versions prior to 2.51.0 lack proper customer-level access controls in the invoice API endpoint, allowing any user

CVE-2024-29200 MEDIUM POC
6.5 Mar 28

Kimai is a web-based multi-user time-tracking application. Rated medium severity (CVSS 6.5), this vulnerability is remot

CVE-2021-4033 MEDIUM POC
6.5 Dec 09

kimai2 is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remot

CVE-2021-3976 MEDIUM POC
6.5 Nov 19

kimai2 is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remot

CVE-2026-80202 CRITICAL
9.3 Aug 25

Authorization bypass in the Kimai open-source time-tracking application before 2.56.0 lets any authenticated user holdin

CVE-2019-25317 MEDIUM POC
5.1 Feb 11

Kimai 2 contains a persistent cross-site scripting vulnerability that allows attackers to inject malicious scripts into

CVE-2026-80196 HIGH
8.7 Aug 25

Password reset links in Kimai before 2.58.0 function as persistent authentication credentials because the LoginLink HMAC

CVE-2026-80193 HIGH
8.7 Aug 25

Authorization bypass in Kimai's QuickEntry controller allows authenticated network users holding view_other_timesheet an

CVE-2026-80198 HIGH
8.7 Aug 25

Kimai's Twig sandbox exposes server-wide secrets through an unrestricted config() function in administrator-uploaded inv

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy