{"answers":{"affected":"2 open source packages ship an affected version, including io.openremote:openremote-manager. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39842 exists.","fix":"Upgrade io.openremote:openremote-manager to 1.22.0 or later.","what":"CVE-2026-39842 is a critical code injection vulnerability in openremote, published on 14 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39842 and fix it if it is affected.\n\nWhat it is: CVE-2026-39842 is a critical code injection vulnerability in openremote, published on 14 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39842 exists.\n\nAffected packages and fixed versions:\n- io.openremote:openremote-manager (Maven): affected all versions; fixed in 1.22.0\n- io.openremote:openremote-manager (Maven): affected all versions; fixed in 1.22.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39842/ (Markdown: https://insights.sbomify.com/CVE-2026-39842/index.md)","id":"CVE-2026-39842","markdown":"https://insights.sbomify.com/CVE-2026-39842/index.md","name":"CVE-2026-39842","record":{"aliases":["GHSA-7mqr-33rv-p3mp"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenRemote IoT platform","requires_auth":"low_privilege","summary":"Attackers with write:rules role can inject JavaScript or Groovy code to execute arbitrary commands as root, bypassing sandbox restrictions.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openremote","vendor":"openremote"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-04-17","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-17T09:36:05Z","kind":"github_poc","ref":"https://github.com/keraattin/CVE-2026-39842","stars":1,"title":"Critical remote code execution vulnerability in OpenRemote's Rules Engine allows authenticated users with `write:rules` role to execute arbitrary code on the server with root privileges."}],"tier":"weaponised"},"has_fix":true,"headline":"OpenRemote is Vulnerable to Expression Injection","id":"CVE-2026-39842","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Plane has a Server-Side Request Forgery (SSRF) in Favicon Fetching","id":"CVE-2026-39843"},"packages":[{"ecosystem":"Maven","fixed":["1.22.0"],"introduced":["0"],"last_affected":[],"package":"io.openremote:openremote-manager","purl":null,"source":"GHSA-7mqr-33rv-p3mp"},{"ecosystem":"Maven","fixed":["1.22.0"],"introduced":["0"],"last_affected":[],"package":"io.openremote:openremote-manager","purl":"pkg:maven/io.openremote/openremote-manager","source":"GHSA-7mqr-33rv-p3mp"}],"prev":{"headline":"Stored XSS through list fields on Cargo's page values and Special:CargoTables","id":"CVE-2026-39841"},"products":["openremote"],"published":"2026-04-14","related":[{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2022-31860","kev_date_added":null,"published":"2022-09-06"},{"cvss_score":7.6,"headline":"OpenRemote has XXE in Velbus Asset Import","id":"CVE-2026-40882","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":7.2,"headline":"OpenRemote \u003c 1.26.0 SQL Injection via Crosstab Export","id":"CVE-2026-62238","kev_date_added":null,"published":"2026-07-17"},{"cvss_score":7,"headline":"OpenRemote has Improper Access Control via updateUserRealmRoles function","id":"CVE-2026-41166","kev_date_added":null,"published":"2026-04-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-16","vendors":["openremote"]},"summary":"Attackers with write:rules role can inject JavaScript or Groovy code to execute arbitrary commands as root, bypassing sandbox restrictions.","url":"https://insights.sbomify.com/CVE-2026-39842/"}