Improper Neutralization of Special Elements Used in a Template Engine in kimai2 - CVE-2023-46245

 

Improper Neutralization of Special Elements Used in a Template Engine in kimai2 - CVE-2023-46245

Published: October 27, 2023 / Updated: April 14, 2026


Vulnerability identifier: #VU125946
CSH Severity: Low
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-46245
CWE-ID: CWE-1336
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to server-side template injection in the Twig template upload feature when processing an uploaded malicious Twig file. A remote privileged user can upload a specially crafted Twig file to execute arbitrary code.


Affected software

kimai2

How to mitigate CVE-2023-46245

Install security update from vendor's website.

kimai2 - update to 2.1.0

External References

Related Security Bulletins