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.
References
| Link | Resource |
|---|---|
| https://github.com/kimai/kimai/releases/tag/2.56.0 | Release Notes |
| https://github.com/kimai/kimai/security/advisories/GHSA-h5fh-7hwr-97mw | Mitigation Vendor Advisory |
Configurations
History
No history.
Information
Published : 2026-05-08 04:16
Updated : 2026-06-17 10:50
NVD link : CVE-2026-44298
Mitre link : CVE-2026-44298
CVE.ORG link : CVE-2026-44298
JSON object : View
Products Affected
kimai
- kimai
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
