{"id":"CVE-2026-44298","state":"PUBLISHED","title":"Kimai: Arbitrary file read in invoice PDF renderer (admin)","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.","publishedAt":"2026-05-08T03:32:06.672Z","updatedAt":"2026-05-08T14:06:31.033Z","severity":{"score":4.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["kimai kimai"],"affected":[{"vendor":"kimai","product":"kimai","versions":[{"version":">= 2.32.0, < 2.56.0","status":"affected"}]}],"references":["https://github.com/kimai/kimai/security/advisories/GHSA-h5fh-7hwr-97mw","https://github.com/kimai/kimai/releases/tag/2.56.0"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/44xxx/CVE-2026-44298.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-44298","state":"PUBLISHED","datePublished":"2026-05-08T03:32:06.672Z","dateUpdated":"2026-05-08T14:06:31.033Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-05T17:39:31.113Z"},"containers":{"cna":{"title":"Kimai: Arbitrary file read in invoice PDF renderer (admin)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"kimai","product":"kimai","versions":[{"version":">= 2.32.0, < 2.56.0","status":"affected"}]}],"references":[{"url":"https://github.com/kimai/kimai/security/advisories/GHSA-h5fh-7hwr-97mw","name":"https://github.com/kimai/kimai/security/advisories/GHSA-h5fh-7hwr-97mw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kimai/kimai/releases/tag/2.56.0","name":"https://github.com/kimai/kimai/releases/tag/2.56.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-08T03:32:06.672Z"},"source":{"advisory":"GHSA-h5fh-7hwr-97mw","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-08T14:06:21.498796Z","id":"CVE-2026-44298","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-08T14:06:31.033Z"}}]}}}