# CVE-2023-46245: Kimai (Authenticated) SSTI to RCE by Uploading a Malicious Twig File

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 78% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-30T15:40:04.000Z
- Modified: 2026-06-17T06:30:30.497Z
- Also known as: GHSA-fjhg-96cp-6fcw
- Weaknesses: CWE-1336
- Assigned by: GitHub_M

## Description

Kimai is a web-based multi-user time-tracking application. Versions prior to 2.1.0 are vulnerable to a Server-Side Template Injection (SSTI) which can be escalated to Remote Code Execution (RCE). The vulnerability arises when a malicious user uploads a specially crafted Twig file, exploiting the software's PDF and HTML rendering functionalities. Version 2.1.0 enables security measures for custom Twig templates.

(As written by CVE List.)

## Affected

- kimai kimai: < 2.1.0; up to 2.10
- kimai/kimai (Packagist): before 2.1.0

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/kimai/kimai/security/advisories/GHSA-fjhg-96cp-6fcw> (exploit, vendor-advisory, web)
- <https://github.com/kimai/kimai/commit/38e37f1c2e91e1acb221ec5c13f11b735bd50ae4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-46245> (advisory)
- <https://github.com/kimai/kimai> (package)

## Sources

- CVE List: [CVE-2023-46245](https://www.cve.org/CVERecord?id=CVE-2023-46245), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-fjhg-96cp-6fcw](https://github.com/advisories/GHSA-fjhg-96cp-6fcw), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-46245](https://nvd.nist.gov/vuln/detail/CVE-2023-46245), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-46245 · Whole record: https://cve.day/CVE-2023-46245.json · Rebuilt by cve.day 2026-11-25T22:58:29.867Z
