CVE-2026-44298

Kimai: Arbitrary file read in invoice PDF renderer (admin)

Published May 8, 2026 CVSS 3.1 · 4.1 Medium EPSS < 1% KEV · Not listed
Description
Kimai is an open-source time tracking application. From version 2.32.0 to before version 2.56.0, users with the role System-Admin (ROLE_SYSTE_ADMIN) and the permission upload_invoice_template can upload PDF invoice templates, which can call pdfContext.setOption('associated_files', ...) inside the sandboxed Twig render. This is forwarded to mPDF's SetAssociatedFiles(), whose writer calls file_get_contents($entry['path']) during PDF output and embeds the bytes as a FlateDecode stream in the PDF. Any file readable by the PHP worker is returned to the attacker inside the rendered invoice. This issue has been patched in version 2.56.0.

Analysis

AI-generated

Technical impact

From version 2.32.0 to just before 2.56.0, Kimai allowed system administrators with the upload_invoice_template permission to upload PDF invoice templates that could invoke the pdfContext sandbox. Through the SetAssociatedFiles call, an attacker could include any file readable by the PHP worker. The resulting PDF delivered the file contents to the admin viewing the invoice, leading to an arbitrary file read that compromises confidentiality. The flaw is a directory traversal/absolute path read weakness (CWE‑22).

Affected Systems

Vendor Kimai, product Kimai, affected versions range from 2.32.0 up to but excluding 2.56.0.

Risk and Exploitability

The CVSS score of 4.1 rates this as a low‑moderate risk. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited widespread exploitation. The attack vector is inferred to be local or internal, requiring an account with System‑Admin privileges and the upload_invoice_template permission. An attacker controlling or compromising such a privileged account could embed arbitrary files into invoice PDFs and retrieve them when viewed by the admin, affecting confidentiality. Because the flaw relies on trusted privileges, the likely likelihood of an attack is low unless privileged credentials are compromised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kimai to version 2.56.0 or later.
  • If an upgrade is not immediately possible, revoke the upload_invoice_template permission from the System-Admin role or disable the template upload feature.
  • Review existing invoice templates and remove any that were uploaded during the vulnerable period; avoid rendering them until they are verified safe.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h5fh-7hwr-97mw Kimai has an arbitrary file read in its invoice PDF renderer (admin)
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 an open-source time tracking application. From version 2.32.0 to before version 2.56.0, users with the role System-Admin (ROLE_SYSTE_ADMIN) and the permission upload_invoice_template can upload PDF invoice templates, which can call pdfContext.setOption('associated_files', ...) inside the sandboxed Twig render. This is forwarded to mPDF's SetAssociatedFiles(), whose writer calls file_get_contents($entry['path']) during PDF output and embeds the bytes as a FlateDecode stream in the PDF. Any file readable by the PHP worker is returned to the attacker inside the rendered invoice. This issue has been patched in version 2.56.0.
Title Kimai: Arbitrary file read in invoice PDF renderer (admin)
Weaknesses CWE-22
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 8, 2026, 2:06 PM
Reserved
May 5, 2026, 5:39 PM
Status
Analyzed
Published
May 8, 2026, 4:16 AM
Modified
Nov 11, 2026, 11:10 PM