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-2013-6397 Vulnerability in maven package org.apache.solr:solr-velocity
CVE-2023-27087 Vulnerability in maven package com.xuxueli:xxl-job
CVE-2020-13973 Vulnerability in maven package com.mikesamuel:json-sanitizer
CVE-2023-22465 Vulnerability in maven package org.http4s:http4s-core_2.12
CVE-2023-46120 Vulnerability in maven package com.rabbitmq:amqp-client