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 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.
Published: 2026-08-05
Score: 9.9 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Authenticated users can embed and run Go or Lua scripts within Magistrala’s Rules Engine, which are executed on the server through Yaegi or a Lua interpreter with almost no input validation. The exposed Go standard library and dangerous Lua libraries allow arbitrary file reading and writing, retrieval of environment variables, database access, and SSRF against internal services, leading to complete compromise of confidentiality, integrity, and availability.

Affected Systems

The vulnerability affects Magistrala, the IoT platform provided by absmach. No specific version information is supplied in the CVE, so any deployment that includes the described Rules Engine should be considered potentially vulnerable unless the vendor confirms that the issue has been resolved in the release in use.

Risk and Exploitability

With a CVSS score of 9.9 the flaw is categorized as Critical. An attacker only needs to be an authenticated, low‑privileged user to craft a rule that contains malicious code; once a message triggers the rule the code executes with the server’s privileges. The absence of an EPSS score and a KEV listing does not reduce the severity, and the attack path is straightforward, indicating a high likelihood of exploitation in an environment where the Rules Engine is enabled.

Generated by OpenCVE AI on August 5, 2026 at 12:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Acquire and apply the latest patch from absmach that restricts or disables user‑provided script execution in the Rules Engine.
  • Restrict rule‑creation privileges to trusted administrators only, removing low‑privileged user access to the interface as an immediate measure.
  • Implement network segmentation or firewall rules to block outbound traffic from the Rules Engine to internal microservices, mitigating possible SSRF attacks.

Generated by OpenCVE AI on August 5, 2026 at 12:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 05 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
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 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.
Title Magistrala IoT Platform: Unrestricted Go/Lua Script Execution in Rules Engine
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T10:56:25.198Z

Reserved: 2026-08-05T10:53:53.175Z

Link: CVE-2026-71235

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T12:30:12Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')