CVE-2026-23626

Kimai Vulnerable to Authenticated Server-Side Template Injection (SSTI)

Published Jan 18, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
Kimai is a web-based multi-user time-tracking application. Prior to version 2.46.0, Kimai's export functionality uses a Twig sandbox with an overly permissive security policy (`DefaultPolicy`) that allows arbitrary method calls on objects available in the template context. An authenticated user with export permissions can deploy a malicious Twig template that extracts sensitive information including environment variables, all user password hashes, serialized session tokens, and CSRF tokens. Version 2.46.0 patches this issue.

Analysis

AI-generated

Technical impact

Kimai's export feature previously used a permissive Twig sandbox enabling arbitrary method calls on template context objects. An authenticated user with export rights can supply a malicious template that reads environment variables, user password hashes, session tokens, and CSRF tokens, compromising confidentiality.

Affected Systems

All Kimai installations running a version earlier than 2.46.0 are affected. The vulnerable product is Kimai, the open‑source time‑tracking application.

Risk and Exploitability

The vulnerability has a CVSS score of 6.8 (moderate) and a low EPSS probability (<1%), and it is not listed in the CISA KEV catalog. Exploitation requires a legitimate user account with export permissions; a suitable attacker could then deploy a crafted template and retrieve sensitive data. The attack is limited to the affected user's authorization level, but the data exposed could allow further lateral movement if passwords or session tokens are harvested.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kimai to version 2.46.0 or later.
  • Restrict export permissions to trusted administrators.
  • Review and enforce proper sandbox policies for template rendering.

Generated by OpenCVE AI on April 18, 2026 at 05:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jg2j-2w24-54cg Kimai has an Authenticated Server-Side Template Injection (SSTI)
History
Type Values Removed Values Added
CPEs cpe:2.3:a:kimai:kimai:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Kimai
Kimai kimai
Vendors & Products Kimai
Kimai kimai
Type Values Removed Values Added
Description Kimai is a web-based multi-user time-tracking application. Prior to version 2.46.0, Kimai's export functionality uses a Twig sandbox with an overly permissive security policy (`DefaultPolicy`) that allows arbitrary method calls on objects available in the template context. An authenticated user with export permissions can deploy a malicious Twig template that extracts sensitive information including environment variables, all user password hashes, serialized session tokens, and CSRF tokens. Version 2.46.0 patches this issue.
Title Kimai Vulnerable to Authenticated Server-Side Template Injection (SSTI)
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 20, 2026, 8:07 PM
Reserved
Jan 14, 2026, 4:08 PM
Status
Analyzed
Published
Jan 18, 2026, 11:15 PM
Modified
Jun 17, 2026, 10:21 AM