Kimai versions before 2.56.0 contain a vulnerability where the config() Twig function is not properly restricted in sandboxed invoice and export templates. This allows administrators to access arbitrary configuration keys. Malicious administrators can upload templates that exfiltrate sensitive server-wide secrets such as LDAP bind passwords and SAML private keys into documents accessible by lower-privileged users.