Summary
CVE-2026-52824 is a critical authentication bypass vulnerability affecting the official Kimai Docker image, caused by a hardcoded, publicly-known default value for the APP_SECRET environment variable. Because this value is used as Symfony’s kernel.secret to sign authentication-related tokens, an unauthenticated remote attacker can forge valid session artifacts and take over any account, including administrators. The vulnerability carries a CVSS v3.1 base score of 9.1 (Critical).
Technical details
- Root cause: The Kimai Docker image’s Dockerfile hardcodes
APP_SECRET=change_this_to_something_uniqueas a default environment variable, and the container’s entrypoint script does not validate, reject, or override this sentinel value before it is used. - Mechanism: This shared, public value becomes Symfony’s
kernel.secret, which is used to HMAC-sign remember-me cookies, login links, password-reset URLs, and CSRF tokens. - Trigger conditions: Any Kimai instance deployed from the official Docker image without an operator explicitly overriding
APP_SECRETat runtime is affected. Exploitation requires the attacker to know or discover a valid username (target accounts, includingsuper_admin, are commonly assigned sequential user IDs starting from 1) and the target account must not have two-factor authentication enabled. - Attack vector: Network — no authentication or user interaction is required. Using the known default secret, an attacker can compute a valid HMAC and forge a login-link URL or remember-me cookie to authenticate as any user without knowing their password.
- Impact: Full unauthenticated account takeover, including of administrative accounts, leading to complete compromise of confidentiality and integrity of the application.
Affected software
- Kimai (official Docker image) versions up to and including 2.57.0
- Bare-metal/non-Docker deployments using the shipped
.env.distdefault value are similarly exposed if the default is not overridden
Severity
- CVSS v3.1 Base Score: 9.1 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: Upgrade to Kimai 2.58.0 or later, which generates and persists a strong, random
APP_SECRETautomatically (viabin2hex(random_bytes(32))) and removes the hardcoded default from the Dockerfile. - If unable to patch immediately: Explicitly set a unique, strong
APP_SECRETvalue in the deployment’s environment configuration (e.g.,.env.localor the Docker environment variables) rather than relying on the shipped default. Enforce two-factor authentication on all accounts, particularly administrative accounts, as an additional compensating control until upgraded.

