Skip to main content

ThingsBoard EUVDEUVD-2026-31957

| CVE-2026-9568 LOW
Code Injection (CWE-94)
2026-05-26 VulDB GHSA-96jf-2v3w-hrrp
2.3
CVSS 4.0 · Vendor: VulDB

Severity by source

Vendor (VulDB) PRIMARY
2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
P
Scope
X

Lifecycle Timeline

4
Source Code Evidence Fetched
Jun 08, 2026 - 13:38 vuln.today
Analysis Generated
Jun 08, 2026 - 13:38 vuln.today
Severity Changed
May 26, 2026 - 19:22 NVD
MEDIUM LOW
CVSS changed
May 26, 2026 - 19:22 NVD
5.0 (MEDIUM) 2.3 (LOW)

DescriptionCVE.org

A weakness has been identified in ThingsBoard up to 4.3.1.1. Affected by this vulnerability is the function getGatewayDockerComposeFile of the file /api/v1/provision of the component YAML Handler. This manipulation causes code injection. It is possible to initiate the attack remotely. The attack's complexity is rated as high. The exploitation appears to be difficult. The project was informed of the problem early through a pull request but has not reacted yet.

AnalysisAI

Code injection in ThingsBoard 4.3.1.0 and 4.3.1.1 allows remote attackers to embed control characters and shell metacharacters into server-generated Docker Compose YAML files and MQTT publish commands via the /api/v1/provision endpoint's getGatewayDockerComposeFile and getMqttPublishCommand functions. Device credential fields - including clientId, userName, password, and credentialsId - are passed unsanitized into YAML and shell command construction, enabling injection of shell special characters such as $, backtick, and double-quote. No public exploit has been identified at time of analysis; SSVC rates exploitation as none and EPSS is 0.04%, though the RCE tag warrants scrutiny given the CVSS 4.0 score of only 2.3.

Technical ContextAI

ThingsBoard is an open-source IoT platform for device management and data processing. The vulnerable functions reside in DeviceConnectivityUtil.java: getGatewayDockerComposeFile() programmatically constructs a Docker Compose YAML file embedding the gateway host value and credential data, while getMqttPublishCommand() builds shell-formatted MQTT client commands using credential fields inserted inside double-quoted shell arguments. Neither function sanitized its inputs prior to the fix. The root cause is CWE-94 (Code Injection): control characters (0x00-0x1F, 0x7F) can corrupt YAML structure by introducing unexpected line breaks or null bytes, while shell metacharacters - $, backtick, backslash, double-quote - embedded in double-quoted shell arguments enable variable expansion or command substitution. The PR #15550 fix adds a CONTROL_CHARS regex pattern, a containsControlChars() validator that rejects malicious credentials at storage time, a stripControlChars() sanitizer for YAML output, and an escapeShellArg() function that escapes all four shell-dangerous characters before interpolation into command strings. The CPE string cpe:2.3:a:n/a:thingsboard:*:*:*:*:*:*:*:* uses an n/a vendor namespace, indicating incomplete NVD CPE assignment.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. The fix is available as GitHub PR #15550 (https://github.com/thingsboard/thingsboard/pull/15550), which adds input validation rejecting control characters in device credentials and escapes shell metacharacters before command interpolation. However, as the ThingsBoard maintainers had not merged this PR at time of reporting, no official patched release version can be cited. Organizations should monitor the ThingsBoard GitHub repository (https://github.com/thingsboard/thingsboard/) for a release incorporating these changes and apply it promptly. As a compensating control, restrict network-level access to the /api/v1/provision endpoint to trusted IP ranges at the API gateway or firewall layer - note this will break unauthenticated device provisioning flows if those are in use. Additionally, enforce input validation on device credential fields (clientId, userName, password, credentialsId) at the ingestion boundary to reject control characters (0x00-0x1F, 0x7F) and shell metacharacters. If the gateway Docker Compose generation feature is not operationally required, blocking the specific endpoint sub-path reduces attack surface with no functional trade-off for deployments not using ThingsBoard IoT gateways.

CVE-2023-45303 HIGH POC
8.8 Oct 06

ThingsBoard before 3.5 allows Server-Side Template Injection if users are allowed to modify an email template, because A

CVE-2020-27687 HIGH POC
8.8 Dec 18

ThingsBoard before v3.2 is vulnerable to Host header injection in password-reset emails. Rated high severity (CVSS 8.8),

CVE-2024-55466 MEDIUM POC
6.5 May 12

An arbitrary file upload vulnerability in the Image Gallery of ThingsBoard Community, ThingsBoard Cloud and ThingsBoard

CVE-2024-3270 MEDIUM POC
6.5 Apr 03

A vulnerability classified as problematic was found in ThingsBoard up to 3.6.2. Rated medium severity (CVSS 6.5), this v

CVE-2024-9358 MEDIUM POC
6.0 Oct 01

A vulnerability has been found in ThingsBoard up to 3.7.0 and classified as problematic. Rated medium severity (CVSS 6.0

CVE-2022-40004 CRITICAL
9.6 Dec 15

Cross Site Scripting (XSS) vulnerability in Things Board 3.4.1 allows remote attackers to escalate privilege via crafted

CVE-2022-31861 MEDIUM POC
5.4 Sep 13

Cross site Scripting (XSS) in ThingsBoard IoT Platform through 3.3.4.1 via a crafted value being sent to the audit logs.

CVE-2022-45608 HIGH
8.8 Mar 01

An issue was discovered in ThingsBoard 3.4.1, allows low privileged attackers (CUSTOMER_USER) to gain escalated privileg

CVE-2026-53676 HIGH
8.6 Jun 17

Sandbox escape via prototype pollution in ThingsBoard (versions prior to v4.3.1.2) allows a TENANT_ADMIN-authenticated u

CVE-2023-26462 HIGH
8.1 Feb 23

ThingsBoard 3.4.1 could allow a remote attacker to gain elevated privileges because hard-coded service credentials (usab

CVE-2025-34282 MEDIUM POC
6.9 Oct 17

SVG-based server-side request forgery in ThingsBoard versions prior to 4.2.1 allows upload of crafted SVG files containi

Share

EUVD-2026-31957 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy