CVE-2026-71235
Full vulnerability record from the local CVENow database.
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).
Severity
HIGH
CVSS score
8.8
(v3.1)
Vulnerability status
Deferred
Source identifier
309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Published
2026-08-05 11:16:26.247000
Last modified
2026-10-24 15:10:00.190000
View original CVE JSON
{
"id": "CVE-2026-71235",
"sourceIdentifier": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"published": "2026-08-05T11:16:26.247",
"lastModified": "2026-10-24T15:10:00.190",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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)."
},
{
"lang": "es",
"value": "El motor de reglas de Magistrala permite a los usuarios autenticados crear reglas con scripts Go o Lua incrustados ejecutados en el lado del servidor cuando llegan mensajes de IoT. El motor de scripts Go (re/golang.go) ejecuta scripts a través del intérprete Yaegi con stdlib.Symbols, exponiendo la biblioteca estándar completa de Go (incluyendo os y net/http) con validación limitada a una expresión regular que bloquea goroutines y llamadas a panic(); funciones peligrosas como os.ReadFile, os.WriteFile, os.Remove y os.Environ permanecen totalmente accesibles. El motor de scripts Lua (re/lua.go) no realiza ninguna validación de entrada en absoluto y precarga bibliotecas peligrosas: db (acceso arbitrario a la base de datos), ioutil (E/S de archivos), un cliente HTTP (SSRF) y filepath (recorrido). Un usuario autenticado con bajos privilegios puede lograr lectura/escritura arbitraria de archivos, fuga de variables de entorno, acceso a la base de datos y SSRF contra microservicios internos."
}
],
"affected": [
{
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"affectedData": [
{
"vendor": "absmach",
"product": "magistrala",
"defaultStatus": "unknown",
"programFiles": [
"re/golang.go",
"re/lua.go"
],
"versions": [
{
"version": "0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-08-05T12:51:37.660677Z",
"id": "CVE-2026-71235",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"references": [
{
"url": "https://github.com/absmach/magistrala",
"source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c"
}
]
}