OpenRemote
OpenRemote is Vulnerable to Expression Injection
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.22.0
Fixed in 1.22.0
Mitigation
Upgrade openremote to 1.22.0 or later.
References
- Vendor advisory github.com/openremote/openremote/security/advi…
- Release notes github.com/openremote/openremote/releases/tag/…
Timeline
Days relative to CVE publicationFirst public PoC 2.4 days after publication; not in CISA KEV. First PoC: keraattin/CVE-2026-39842 (created 17 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| keraattin/CVE-2026-39842 | 17 Apr 2026 +2.4 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/{var}/rules/realm
- Body markers
"name":"malicious_rule""enabled""trigger":"timer""actions""type":"local_action""target":"asset_id""action":"perform_action""value":"// Payload here""ruleExpression"inapplication/json- Ports
- 8080, 8443
- Seen in
- 1 repo: keraattin/CVE-2026-39842
- Evidence
- keraattin/CVE-2026-39842/README.md:237
DELETE /api/master/rules/realm/{var}
- Key headers
Authorization: Bearer ADMIN_TOKEN- Ports
- 8080
- Seen in
- 1 repo: keraattin/CVE-2026-39842
- Evidence
- keraattin/CVE-2026-39842/README.md:753
GET /api/admin/realms
- Key headers
Authorization: Bearer TOKEN- Ports
- 8080
- Seen in
- 1 repo: keraattin/CVE-2026-39842
- Evidence
- keraattin/CVE-2026-39842/README.md:583
GET /api/admin/users
- Key headers
Authorization: Bearer ADMIN_TOKEN- Ports
- 8080
- Seen in
- 1 repo: keraattin/CVE-2026-39842
- Evidence
- keraattin/CVE-2026-39842/README.md:796
GET /api/info
- Ports
- 8080
- Seen in
- 1 repo: keraattin/CVE-2026-39842
- Evidence
- keraattin/CVE-2026-39842/README.md:529 keraattin/CVE-2026-39842/README.md:726
GET /api/master/rules/realm
- Key headers
Authorization: Bearer TOKENAuthorization: Bearer ADMIN_TOKEN- Ports
- 8080
- Seen in
- 1 repo: keraattin/CVE-2026-39842
- Evidence
- keraattin/CVE-2026-39842/README.md:544 keraattin/CVE-2026-39842/README.md:745
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/[^/?#]*/rules/realm(?:[?#].*)?$
(?i)^/api/master/rules/realm/[^/?#]*(?:[?#].*)?$
(?i)^/api/admin/realms(?:[?#].*)?$
(?i)^/api/admin/users(?:[?#].*)?$
(?i)^/api/info(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080,8443] (msg:"GG PoC-Monitor CVE-2026-39842 openremote openremote exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rules/realm"; http.uri; content:"/api/"; http.request_body; content:"|22|name|22|:|22|malicious_rule|22|"; http.request_body; content:"|22|enabled|22|"; http.request_body; content:"|22|trigger|22|:|22|timer|22|"; http.request_body; content:"|22|actions|22|"; http.request_body; content:"|22|type|22|:|22|local_action|22|"; http.request_body; content:"|22|target|22|:|22|asset_id|22|"; http.request_body; content:"|22|action|22|:|22|perform_action|22|"; http.request_body; content:"|22|value|22|:|22|// Payload here|22|"; http.request_body; content:"|22|ruleExpression|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-39842; classtype:web-application-attack; sid:9350300; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-39842 openremote openremote exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/api/master/rules/realm/"; http.header; content:"Authorization: Bearer ADMIN_TOKEN"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-39842; classtype:web-application-attack; sid:9040562; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-39842 openremote openremote exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/admin/realms"; http.header; content:"Authorization: Bearer TOKEN"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-39842; classtype:web-application-attack; sid:9715099; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-39842 openremote openremote exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/admin/users"; http.header; content:"Authorization: Bearer ADMIN_TOKEN"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-39842; classtype:web-application-attack; sid:9522773; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-39842 openremote openremote exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/info"; reference:url,poc.griffinguard.io/cve/CVE-2026-39842; classtype:web-application-attack; sid:9772967; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: openremote openremote exploit attempt (CVE-2026-39842)
id: gg-pocmon-cve-2026-39842-9350300
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39842. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39842
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rules/realm'
- '/api/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39842
title: openremote openremote exploit attempt (CVE-2026-39842)
id: gg-pocmon-cve-2026-39842-9040562
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39842. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39842
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/api/master/rules/realm/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39842
title: openremote openremote exploit attempt (CVE-2026-39842)
id: gg-pocmon-cve-2026-39842-9715099
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39842. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39842
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/admin/realms'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39842
title: openremote openremote exploit attempt (CVE-2026-39842)
id: gg-pocmon-cve-2026-39842-9522773
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39842. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39842
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/admin/users'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39842
title: openremote openremote exploit attempt (CVE-2026-39842)
id: gg-pocmon-cve-2026-39842-9772967
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39842. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39842
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/info'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39842