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-26539 Vulnerability in npm package sanitize-html
CVE-2019-5457 Vulnerability in npm package min-http-server
CVE-2012-4534 Vulnerability in maven package org.apache.tomcat:coyote
CVE-2008-6504 Vulnerability in maven package com.opensymphony:xwork
CVE-2023-0842 Vulnerability in maven package org.webjars.npm:xml2js