CVE-2026-42267

Kimai: Formula Injection via tag names in XLSX export

Published May 8, 2026 CVSS 4.0 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Kimai is an open-source time tracking application. From version 2.27.0 to before version 2.54.0, any ROLE_USER can create a tag with a formula string as its name (e.g. =SUM(54+51)) via POST /api/tags and assign it to a timesheet. When an admin exports timesheets to XLSX, ArrayFormatter.formatValue() joins tag names with implode() and returns the result unchanged. OpenSpout promotes any =-prefixed string to a FormulaCell, writing <f>SUM(54+51)</f> into the XLSX archive. Excel evaluates the formula when the file is opened. This issue has been patched in version 2.54.0.

Analysis

AI-generated

Technical impact

Kimai allows users with ROLE_USER to create tags whose name may include a formula string. When an administrator exports timesheets as an XLSX file, the application writes these tag names directly into the spreadsheet without sanitization, causing OpenSpout to interpret the string as a formula cell. When the file is opened in Excel, the formula is evaluated, potentially revealing internal data or performing unintended calculations. This flaw is indexed as CWE‑1236 and enables formula injection that can lead to information disclosure or execution of arbitrary spreadsheet functions.

Affected Systems

All installations of Kimai from version 2.27.0 up to, but not including, 2.54.0 are vulnerable. The affected product is the Kimai time‑tracking application supplied by the vendor kimai:kimai. The specific versions impacted are 2.27.0 through 2.53.9; the issue was fixed in release 2.54.0.

Risk and Exploitability

The vulnerability scores a CVSS of 5.4, indicating a moderate severity. No EPSS data is publicly available and the flaw is not listed in the CISA KEV catalog, suggesting it has not yet been widely exploited. The attack requires a user to create a malicious tag and an administrator to export timesheets; once the XLSX file is opened by a recipient, Excel will evaluate the injected formula. Because the exploit relies on exporting data and user interaction with the file, the risk is contingent on the environment but still warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the 2.54.0 Kimai release or a later version to address the flaw
  • Restrict tag creation privileges to trusted users or enforce validation that tag names do not begin with ‘=’, preventing injection
  • Until the update can be applied, disable or limit XLSX exports of timesheets or cleanse exported spreadsheets of any formula cells

Generated by OpenCVE AI on May 8, 2026 at 05:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3xc2-h5r3-wv3r Kimai vulnerable to formula Injection via tag names in XLSX export
History
Type Values Removed Values Added
CPEs cpe:2.3:a:kimai:kimai:*:*:*:*:*:*:*:*
Metrics cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', '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 an open-source time tracking application. From version 2.27.0 to before version 2.54.0, any ROLE_USER can create a tag with a formula string as its name (e.g. =SUM(54+51)) via POST /api/tags and assign it to a timesheet. When an admin exports timesheets to XLSX, ArrayFormatter.formatValue() joins tag names with implode() and returns the result unchanged. OpenSpout promotes any =-prefixed string to a FormulaCell, writing <f>SUM(54+51)</f> into the XLSX archive. Excel evaluates the formula when the file is opened. This issue has been patched in version 2.54.0.
Title Kimai: Formula Injection via tag names in XLSX export
Weaknesses CWE-1236
References
Metrics cvssV4_0

{'score': 5.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-1236

    Improper Neutralization of Formula Elements in a CSV File

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 8, 2026, 12:58 PM
Reserved
Apr 26, 2026, 11:53 AM
Status
Analyzed
Published
May 8, 2026, 4:16 AM
Modified
Nov 11, 2026, 11:10 PM