CVE-2025-9094 ThingsBoard Add Gateway special elements used in a template engine

Medium 5.3 Published Updated

Remote attackers can execute arbitrary code via template injection in the Add Gateway Handler of ThingsBoard.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-9094?

CVE-2025-9094 is a medium-severity code injection vulnerability in ThingsBoard, published on 17 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was detected in ThingsBoard 4.1. This vulnerability affects unknown code of the component Add Gateway Handler. The manipulation leads to improper neutralization of special elements used in a template engine. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor replies, that "[t]he fix will come within upcoming release (v4.2) and will be inherited by maintenance releases of LTS versions (starting 4.0)."

Weakness: CWE-791, CWE-1336

Which versions are affected by CVE-2025-9094?

It affects 1 product.

Products include Thingsboard Thingsboard.

How do I fix CVE-2025-9094?

No fix has been published for CVE-2025-9094 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-9094 being exploited?

There is no known exploitation of CVE-2025-9094 in the wild and no public exploit code.

Sources

Also known as GHSA-f339-r2mr-9cr3.

Is CVE-2025-9094 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free