# CVE-2026-76224: ArcadeDB before 26.8.1 Remote Code Execution via Groovy Fallback

The Markdown version of <https://upatch.dev/cve/CVE-2026-76224>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-76224 is rated High 8.7 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects ArcadeDB (ArcadeData) and was published on 19 Aug 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.9%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-76224-exec-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-76224 (GHSA-wcm5-4wjm-9wj3), "Authenticated RCE via silent Groovy fallback in the default 'secure' Gremlin engine", was published on 19 August 2026. In `com.arcadedb:arcadedb-gremlin` (`gremlin/src/main/java/com/arcadedb/gremlin/ArcadeGremlin.java`), `GlobalConfiguration.GREMLIN_ENGINE` (`arcadedb.gremlin.engine`) defaults to `java` (`gremlin-lang`), which rejects Groovy closures and arbitrary code. However, `ArcadeGremlin.executeStatement()` only rethrows a `ScriptException` from the `java` parser when `parameters` is null or empty. When an authenticated request (including one from a read-only `reader` role) supplies any query parameter and a Gremlin query that fails to parse as `gremlin-lang`, `executeStatement()` falls back to the `groovy` engine (`GremlinGroovyScriptEngine`) and evaluates the query, allowing arbitrary operating system command execution as the ArcadeDB server user.

### Official description

ArcadeDB before 26.8.1 (arcadedb-gremlin, affected <= 26.7.3) contains a remote code execution vulnerability in its Gremlin query engine. Although the engine defaults to the documented-secure java (gremlin-lang) engine, ArcadeGremlin.executeStatement() silently falls back to the insecure Groovy engine whenever a request carries any query parameter and the query does not parse as gremlin-lang. An authenticated user with any database role, including a read-only reader, can submit a parameterized Gremlin query to trigger the Groovy fallback and execute arbitrary operating system commands as the ArcadeDB server process user.

## What the upatch does

The BPF LSM program attaches to `lsm/bprm_check_security` and returns `-EPERM` when the calling task or its `real_parent` has an executable (`mm->exe_file->f_path.dentry`) named `java`. OpenJDK's `ProcessImpl` spawns child programs either by `vfork`/`fork` followed by `execve` (where the calling task's `exe_file` is still `java`) or through its `jspawnhelper` helper binary (whose `real_parent` has `exe_file` named `java`, and where both the `jspawnhelper` exec and the target binary exec match). A refusal from an earlier BPF LSM program on the same hook is passed on unchanged, and key 0 of the `refused` per-CPU array counts refused execs.

The policy: [`cve-2026-76224-exec-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-76224), 67 lines of BPF C attached at `lsm/bprm_check_security`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- Any JVM process whose executable is named `java` on the machine cannot execute external programs (`Runtime.exec()`, `ProcessBuilder`), failing with `EPERM`.
- ArcadeDB database queries, Gremlin traversals in `gremlin-lang`, SQL, Cypher, HTTP API calls and storage operations do not spawn external processes and continue to work.
- Other applications running on a `java` binary on the same host that need to spawn external child processes will also have those `execve` calls refused while the upatch is loaded.
- In-process Groovy execution (such as reading or writing files directly through Java APIs inside the JVM) does not call `execve` and is not stopped by this upatch.

## Preemption model and cost

The program keeps no shared state beyond the `refused` per-CPU counter, which it increments with `__sync_fetch_and_add` only when an exec from `java` is refused, so it is safe under every preemption model, including `PREEMPT_LAZY`, preemptible RCU and `PREEMPT_RT`. On every `execve` by a non-Java process, the program checks the 4-byte length and name of the current task's and parent task's `exe_file` dentry and returns 0 without map lookups.

## Affected versions

This is an application vulnerability in ArcadeDB (`com.arcadedb:arcadedb-gremlin`), not a Linux kernel bug:

| Package                                    | Affected    | Fixed in |
| ------------------------------------------ | ----------- | -------- |
| `com.arcadedb:arcadedb-gremlin` / ArcadeDB | `<= 26.7.3` | `26.8.1` |

The upatch runs on any Linux kernel supported by shirudo with BTF and BPF LSM enabled.

## How it was tested

On ArcadeDB 26.7.3, the loaded upatch refused OS command execution (/bin/true) triggered through the parameterized Gremlin Groovy fallback (HTTP 500), while normal parameterized gremlin-lang queries continued to return HTTP 200.

- **Tested:** 25 Nov 2026
- **Target:** ArcadeDB 26.7.3 on OpenJDK 21, default arcadedb.gremlin.engine=java, listening on 127.0.0.1:2480
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Machine:** shirudo test VM
- **Distribution:** Ubuntu 26.04

### Results

| State           | Parameterized Gremlin Groovy fallback execve (/bin/true) | Parameterized gremlin-lang query |
| --------------- | -------------------------------------------------------- | -------------------------------- |
| Before loading  | reached (HTTP 200)                                       | 200                              |
| Upatch loaded   | blocked (HTTP 500)                                       | 200                              |
| After unloading | reached (HTTP 200)                                       | 200                              |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-76224
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-76224-1.0.0.bee oci://<registry>/<namespace>/cve-2026-76224 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-76224-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-76224 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-76224)
- [GitHub Security Advisory GHSA-wcm5-4wjm-9wj3](https://github.com/ArcadeData/arcadedb/security/advisories/GHSA-wcm5-4wjm-9wj3)
- [VulnCheck Advisory](https://www.vulncheck.com/advisories/arcadedb-before-remote-code-execution-via-groovy-fallback)
- [Fix commit cde0b4a25cab](https://github.com/ArcadeData/arcadedb/commit/cde0b4a25cab374d8cbcb7efd3879d68d2c44c9e)
- [ArcadeDB 26.7.3 release](https://github.com/ArcadeData/arcadedb/releases/tag/26.7.3) and [ArcadeDB 26.8.1 release](https://github.com/ArcadeData/arcadedb/releases/tag/26.8.1)

### Links

- [CVE-2026-76224 on upatch.dev](https://upatch.dev/cve/CVE-2026-76224) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-76224)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-76224)
- [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- Upatch source: [upatches/cve-2026-76224](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-76224)

### More references from NVD (2)

- [github.com](https://github.com/ArcadeData/arcadedb/security/advisories/GHSA-wcm5-4wjm-9wj3)
- [vulncheck.com](https://www.vulncheck.com/advisories/arcadedb-before-remote-code-execution-via-groovy-fallback)
