# Kimai: Default APP_SECRET in Docker Image Enables Cookie Forgery and Account Takeover

Critical severity, published 2026-07-14. Update kimai/kimai to 2.58.0 or later: composer update kimai/kimai.

Canonical URL: https://buzzphp.com/security/ghsa-jr9p-4h4j-6c58 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical |
| Published | 2026-07-14 |
| Updated | 2026-07-14 |
| CVE | [CVE-2026-52824](https://nvd.nist.gov/vuln/detail/CVE-2026-52824) |
| GHSA | [GHSA-jr9p-4h4j-6c58](https://github.com/advisories/GHSA-jr9p-4h4j-6c58) |
| Weakness | CWE-1188 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| kimai/kimai | <= 2.57.0 | 2.58.0 |

## What to do

Update kimai/kimai to 2.58.0 or later: composer update kimai/kimai.

Check which version you run with `composer show kimai/kimai`, and every affected package with `composer audit`.

## About this advisory

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:



## Links

- [GHSA-jr9p-4h4j-6c58 on GitHub](https://github.com/advisories/GHSA-jr9p-4h4j-6c58)
- [CVE-2026-52824 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52824)
- [All Composer security advisories](https://buzzphp.com/security)
