Kimai: Default APP_SECRET in Docker Image Enables Cookie Forgery and Account Takeover
Critical severity. Published 14 July 2026. Update kimai/kimai to 2.58.0 or later: composer update kimai/kimai.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| kimai/kimai (opens in a new tab) | <= 2.57.0 | 2.58.0 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show kimai/kimai
composer auditAdvisory details
| Severity | Critical |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-52824 (opens in a new tab) |
| GHSA | GHSA-jr9p-4h4j-6c58 (opens in a new tab) |
| Weakness | CWE-1188 |
What the advisory says
Summary
The official Kimai Docker image ships with APPSECRET=changethistosomethingunique 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 APPSECRET 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 superadmin.
Details
Dockerfile:263 sets ENV APPSECRET=changethistosomethingunique. This value is consumed by config/packages/framework.yaml:7 as kernel.secret, which Symfony uses to HMAC-sign:
Source: GHSA-jr9p-4h4j-6c58 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Kimai has Improper Authorization in Team Member and Team Activity Assignment APIs Which Allows Expansion of Team Scope Beyond Authorized Visibility (opens in a new tab) (medium, 14 July 2026)
- Kimai: Pre-2FA KIMAI_SESSION cookie grants full authenticated REST API access, bypassing TOTP (high, 14 July 2026)
- Kimai: ExportTemplate CRUD Missing Authorization Check Allows Unauthorized TEAMLEAD Access (opens in a new tab) (medium, 14 July 2026)
- Kimai: Login CSRF in the Timesheet Stop and Restart API Endpoints Allows Unauthorized State Changes (opens in a new tab) (medium, 14 July 2026)
- Improper Authorization in Kimai Timesheet Restart and Duplicate Allows New Timesheets After Project Access Revocation (opens in a new tab) (medium, 14 July 2026)