Improper Control of Generation of Code ('Code Injection') Affecting org.thingsboard:thingsboard package, versions [,3.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.44% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGTHINGSBOARD-5950380
  • published8 Oct 2023
  • disclosed6 Oct 2023
  • creditUnknown

Introduced: 6 Oct 2023

CVE-2023-45303  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.thingsboard:thingsboard to version 3.5 or higher.

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') when the freemarker.template.utility.Execute function is used in the context of modifying an email template. An attacker can inject server-side templates and execute arbitrary code by sending crafted content to the /api/admin/settings endpoint. This is only exploitable if users are allowed to modify an email template.

References

CVSS Base Scores

version 3.1