CVE-2026-71235 Details
Description
Magistrala's Rules Engine allows authenticated users to create rules with embedded Go or Lua scripts executed server-side when IoT messages arrive. 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).
A vulnerability exists in Magistrala's Rules Engine, specifically in the Go and Lua script execution features. Authenticated users can create rules that include embedded Go or Lua scripts, which are executed on the server side when Internet of Things (IoT) messages are received. The Go script engine, utilizing the Yaegi interpreter, exposes the entire Go standard library, including potentially harmful functions related to file and network operations. Although there is some regex-based validation to prevent certain risky actions, many dangerous functions remain fully accessible. Meanwhile, the Lua script engine lacks any input validation and preloads libraries that enable arbitrary database access, file input/output, server-side request forgery (SSRF) against internal microservices, and file traversal. This flaw allows an authenticated low-privileged user to read or write arbitrary files, access environment variables, interact with databases, and perform SSRF attacks.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 5, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/absmach/magistrala | TuranSec | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| Magistrala | < 0.50.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | TuranSec |
Volerion