CVE-2026-71235: Magistrala IoT Platform: Unrestricted Go/Lua Script Execution in Rules Engine
Magistrala's Rules Engine allows authenticated users to create rules with embedded Go or Lua scripts executed server-side when IoT messages arrive. The Go script engine (re/golang.go) runs scripts through the Yaegi interpreter with stdlib.Symbols, exposing the full Go standard library (including os and net/http) with validation limited to a regex blocking goroutines and panic() calls; dangerous functions such as os.ReadFile, os.WriteFile, os.Remove, and os.Environ remain fully accessible. The Lua script engine (re/lua.go) performs no input validation at all and preloads dangerous libraries: db (arbitrary database access), ioutil (file I/O), an HTTP client (SSRF), and filepath (traversal). An authenticated low-privileged user can achieve arbitrary file read/write, environment variable leakage, database access, and SSRF against internal microservices.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-71235?
The severity of CVE-2026-71235 is rated as critical with a score of 9.9.
How do I fix CVE-2026-71235?
To fix CVE-2026-71235, ensure that proper input validation is implemented to prevent unauthorized script execution in the Rules Engine of the Magistrala IoT Platform.
What impact does CVE-2026-71235 have on the Magistrala IoT Platform?
CVE-2026-71235 allows authenticated users to execute arbitrary Go or Lua scripts server-side, leading to potential data leakage, unauthorized access, or system compromise.
Who is affected by CVE-2026-71235?
Authenticated users of the Magistrala IoT Platform are affected by the vulnerabilities associated with CVE-2026-71235.
When was CVE-2026-71235 published?
CVE-2026-71235 was published on August 5, 2026.