CVE-2023-45303 ThingsBoard Server-Side Template Injection
Attackers with email template modification rights can execute arbitrary code via Server-Side Template Injection in ThingsBoard.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-45303?
CVE-2023-45303 is a high-severity code injection vulnerability in n/a, published on 6 Oct 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official 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).
Weakness: CWE-74
Which versions are affected by CVE-2023-45303?
2 open source packages ship an affected version, including org.thingsboard:thingsboard. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.thingsboard:thingsboard Maven | All versions | 3.5 |
org.thingsboard:thingsboard Maven | All versions | 3.5 |
Products include Thingsboard Thingsboard.
How do I fix CVE-2023-45303?
Upgrade org.thingsboard:thingsboard to 3.5 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-45303 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45303 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-6pgr-j9v4-xfvv.