Skip to main content

Kimai CVE-2026-44298

| EUVDEUVD-2026-28517 MEDIUM
Path Traversal (CWE-22)
2026-05-08 GitHub_M GHSA-h5fh-7hwr-97mw
4.1
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
4.1 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

4
Patch available
May 08, 2026 - 05:31 EUVD
Source Code Evidence Fetched
May 08, 2026 - 04:35 vuln.today
Analysis Generated
May 08, 2026 - 04:35 vuln.today
CVE Published
May 08, 2026 - 03:32 nvd
MEDIUM 4.1

DescriptionGitHub Advisory

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.

AnalysisAI

Kimai versions 2.32.0 through 2.55.x allow System-Admin users with invoice template upload permission to read arbitrary files from the PHP server via malicious PDF invoice templates. The vulnerability exploits mPDF's SetAssociatedFiles() function combined with unsanitized Twig template rendering to access any file readable by the PHP worker process and embed it within generated PDF invoices. No public exploit code or active exploitation has been identified; patch available in version 2.56.0.

Technical ContextAI

Kimai's invoice template feature uses Twig template rendering to generate PDF documents via the mPDF library. The vulnerability stems from insufficient whitelisting of PDF context options passed to mPDF through the sandboxed Twig environment. When a System-Admin uploads a malicious PDF invoice template containing pdfContext.setOption('associated_files', ...), the application forwards this directly to mPDF's SetAssociatedFiles() method. During PDF output generation, mPDF's writer calls file_get_contents() on each file path in the associated_files array without path validation, allowing traversal attacks (CWE-22). The attacker's file contents are then embedded as FlateDecode streams within the output PDF, which is returned to the user. This is a post-authentication information disclosure vulnerability requiring elevated permissions (ROLE_SYSTEM_ADMIN) and specific upload capability.

RemediationAI

Upgrade Kimai to version 2.56.0 or later immediately. The vendor's fix (PR #5924) implements whitelist validation of PDF context options, preventing arbitrary option injection including 'associated_files'. To upgrade, update your Kimai installation using git (git checkout 2.56.0) or download the release from https://github.com/kimai/kimai/releases/tag/2.56.0, then run database migrations if required. Note that version 2.56.0 requires PHP 8.2 minimum; if still on PHP 8.1 or earlier, upgrade PHP first to 8.2 or 8.5 as PHP 8.1 is end-of-life. If immediate upgrade is not possible, restrict the 'upload_invoice_template' permission to only trusted administrators and audit existing invoice templates for malicious content. Monitor PHP worker file access logs for unusual file_get_contents() calls targeting sensitive paths outside the Kimai application directory.

More in PHP

View all
CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-46506 CRITICAL POC
10.0 May 13

NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

Share

CVE-2026-44298 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy