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
CVSSv4.0: 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/E:U/U:Clear
CVE-ID: CVE-2023-46245
CWE-ID: CWE-1336
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerable software:
kimai2
kimai2
Software vendor:
Kevin Papst
Kevin Papst
Description
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.
Remediation
Install security update from vendor's website.