{"cve":"CVE-2026-39842","nvd":{"published":"2026-04-15T04:17:36.903","modified":"2026-06-17T10:42:41.053","status":"Analyzed","description":"OpenRemote is an open-source IoT platform. Versions 1.21.0 and below contain two interrelated expression injection vulnerabilities in the rules engine that allow arbitrary code execution on the server. The JavaScript rules engine executes user-supplied scripts via Nashorn's ScriptEngine.eval() without sandboxing, class filtering, or access restrictions, and the authorization check in RulesResourceImpl only restricts Groovy rules to superusers while leaving JavaScript rules unrestricted for any user with the write:rules role. Additionally, the Groovy rules engine has a GroovyDenyAllFilter security filter that is defined but never registered, as the registration code is commented out, rendering the SandboxTransformer ineffective for superuser-created Groovy rules. A non-superuser attacker with the write:rules role can create JavaScript rulesets that execute with full JVM access, enabling remote code execution as root, arbitrary file read, environment variable theft including database credentials, and complete multi-tenant isolation bypass to access data across all realms. This issue has been fixed in version 1.22.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9},"cwes":["CWE-94","CWE-917"],"references":["https://github.com/openremote/openremote/releases/tag/1.22.0","https://github.com/openremote/openremote/security/advisories/GHSA-7mqr-33rv-p3mp"],"products":["openremote:openremote"],"source":"nvd","synced_at":"2026-10-19T22:30:49.762551342+00:00"},"epss":{"cve":"CVE-2026-39842","score":0.00924,"percentile":0.60435,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7mqr-33rv-p3mp","url":"https://osv.dev/vulnerability/GHSA-7mqr-33rv-p3mp","summary":"Expression Injection in OpenRemote","modified":"2026-05-05T16:03:44.111146Z","packages":[{"ecosystem":"Maven","name":"io.openremote:openremote-manager","purl":"pkg:maven/io.openremote/openremote-manager","ranges":["<1.22.0"],"fixed":["1.22.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}