Severity by source
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
Lifecycle Timeline
4DescriptionGitHub 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.
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-28517
GHSA-h5fh-7hwr-97mw