Sunday, October 18, 2026

Kimai Docker Vulnerability Exposes Default APP_SECRET, Enabling Account Takeover

Kimai users who are running the official Docker image are strongly urged to update their installations after a critical vulnerability, tracked as CVE-2026-52824 and GHSA-jr9p-4h4j-6c58, was discovered.

This vulnerability exposes installations to the risk of account takeover due to a publicly known application secret. The flaw affects Kimai versions 2.57.0 and earlier, and it has been fixed in version 2.58.0.

Reported by security researcher AzureADTrent and published by Kimai maintainer Kevin Papst on June 11, the issue arises from an insecure default configuration in the official container image.

Kimai Docker Vulnerability

The default environment variable, defined as `APP_SECRET=change_this_to_something_unique`, is intended to be replaced during deployment.

This value serves as the application’s `kernel.secret` in Symfony, a cryptographic key used to generate and validate HMAC-protected security artifacts. However, Kimai’s Docker entrypoint did not validate, replace, or refuse to start with this insecure default, leading to potential vulnerabilities.

As a result, Kimai deployments that are accessible over the internet and launched with the default Docker configuration may expose a predictable cryptographic secret.

An unauthenticated attacker could exploit this known value to forge security-sensitive data and potentially authenticate as another user, including a super_admin account.

To successfully exploit this vulnerability, the attacker must know the target username, determine or guess its account ID, and target an account that does not have active two-factor authentication enabled.

Symfony relies on this affected secret for signing several sensitive components, including the KIMAI_REMEMBER remember-me cookie, LoginLink signatures, password-reset URLs, and CSRF tokens.

Since Kimai user IDs are sequential integers starting from 11, the first administrative account is often assigned ID 11. Additionally, user IDs may be exposed in URLs or API responses, making it easier for attackers to target privileged accounts.

This issue is classified as critical and is mapped to CWE-1188, “Initialization of a Resource with an Insecure Default.” The vulnerability highlights a common problem in container security: shipping predictable secrets in production-ready images while failing to enforce secret rotation or secure initialization at startup.

In response, Kimai version 2.58.0 changes the Docker initialization process to automatically generate a random `APP_SECRET` using `bin2hex(random_bytes(32))` when none is provided via the environment. The generated secret is stored in `/opt/kimai/var/data/.appsecret`.

At the same time, the entrypoint creates `/opt/kimai/.env.local` containing either the administrator-provided value or the newly generated secret. The project has removed the insecure `APP_SECRET` value from the Dockerfile and updated its documentation to emphasize the need for a random, deployment-specific secret.

Additionally, Kimai has increased entropy in LoginLink values in a related advisory (GHSA-m492-gv72-xvxj). This change prevents attackers from generating LoginLinks simply because an older deployment uses the hard-coded default secret. However, administrators should not treat this change as a substitute for patching.

Organizations should immediately upgrade their Kimai Docker deployments to version 2.58.0 or later, explicitly set a strong, unique `APP_SECRET`, and rotate the secret on any potentially compromised instances.

Administrators should also invalidate active sessions wherever possible, review administrator accounts and authentication activity, enable two-factor authentication, and restrict public access to Kimai instances that do not require internet exposure.

 Strengthen Your SOC by Accelerating Threat Detection & Rapid Investigations. -> Integrate ANY.RUN With Your SOC Now.

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access...

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how...

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a...

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign...

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting...

New GhostBat Android Malware Targets 60 Banking and UPI Apps to Steal PINs

A new GhostBat RAT variant targets 60 Android financial...

New ROMULUS Malware Platform Uses Six Servers to Deliver Multiple Malicious Payloads

ROMULUS, a shared ClickFix delivery platform operating across six...

Related Articles

Recent News