Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. kimai/kimai
  4. ›
  5. CVE-2026-44298

CVE-2026-44298: Kimai has an arbitrary file read in its invoice PDF renderer (admin)

May 8, 2026

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.

References

  • github.com/advisories/GHSA-h5fh-7hwr-97mw
  • github.com/kimai/kimai/releases/tag/2.56.0
  • github.com/kimai/kimai/security/advisories/GHSA-h5fh-7hwr-97mw
  • nvd.nist.gov/vuln/detail/CVE-2026-44298

Code Behaviors & Features

Detect and mitigate CVE-2026-44298 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.32.0 before 2.56.0

Fixed versions

  • 2.56.0

Solution

Upgrade to version 2.56.0 or above.

Impact 4.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/kimai/kimai/CVE-2026-44298.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 07 Jun 2026 12:17:50 +0000.