Skip to content

CVE-2026-44298 Kimai: Arbitrary file read in invoice PDF renderer (admin)

MediumCVSS 4.9 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHP

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
kimai = >= 2.32.0, < 2.56.0; >= 2.32.0, < 2.56.0 2.56.0 Fixed
kimai(Packagist) = 2.32.0; = 2.33.0; = 2.34.0; = 2.35.0 +24 more 2.56 Fixed

Affected products

ProductAffected versionsFixed in
kimai(Packagist) >= 2.32.0, < 2.56 2.56
kimai(Packagist) = 2.32.0 No fix listed
kimai(Packagist) = 2.33.0 No fix listed
kimai(Packagist) = 2.34.0 No fix listed
kimai(Packagist) = 2.35.0 No fix listed
kimai(Packagist) = 2.35.1 No fix listed
kimai(Packagist) = 2.36.0 No fix listed
kimai(Packagist) = 2.36.1 No fix listed
kimai(Packagist) = 2.37.0 No fix listed
kimai(Packagist) = 2.38.0 No fix listed
kimai(Packagist) = 2.39.0 No fix listed
kimai(Packagist) = 2.40.0 No fix listed
kimai(Packagist) = 2.41.0 No fix listed
kimai(Packagist) = 2.42.0 No fix listed
kimai(Packagist) = 2.43.0 No fix listed
kimai(Packagist) = 2.44.0 No fix listed
kimai(Packagist) = 2.45.0 No fix listed
kimai(Packagist) = 2.46.0 No fix listed
kimai(Packagist) = 2.47.0 No fix listed
kimai(Packagist) = 2.48.0 No fix listed
kimai(Packagist) = 2.49.0 No fix listed
kimai(Packagist) = 2.50.0 No fix listed
kimai(Packagist) = 2.51.0 No fix listed
kimai(Packagist) = 2.52.0 No fix listed
kimai(Packagist) = 2.53.0 No fix listed
Show 5 more
ProductAffected versionsFixed in
kimai(Packagist) = 2.54.0 No fix listed
kimai(Packagist) = 2.55.0 No fix listed
kimai = >= 2.32.0, < 2.56.0 No fix listed
kimai(Packagist) >= 2.32.0, <= 2.55 No fix listed
kimai >= 2.32.0, < 2.56.0 2.56.0

References