Description
ThingsBoard before 3.5 allows Server-Side Template Injection if users are allowed to modify an email template, because Apache FreeMarker supports freemarker.template.utility.Execute (for content sent to the /api/admin/settings endpoint).
Remediation
References
https://freemarker.apache.org/docs/api/freemarker/template/utility/Execute.html
https://herolab.usd.de/security-advisories/usd-2023-0010/
Related Vulnerabilities
CVE-2021-43138 Vulnerability in maven package org.webjars.npm:async
CVE-2016-5018 Vulnerability in maven package tomcat:jasper-runtime
CVE-2018-20801 Vulnerability in npm package highcharts
CVE-2021-46363 Vulnerability in maven package info.magnolia:magnolia-core
CVE-2023-22457 Vulnerability in maven package org.xwiki.contrib:application-ckeditor-plugins