upatch.dev

CVE-2026-76224

ArcadeDB before 26.8.1 Remote Code Execution via Groovy Fallback

Refuses program execution by Java processes to mitigate ArcadeDB Gremlin Groovy fallback RCE (CVE-2026-76224).

High 8.7Vetted

EPSS 0.9%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.

At a glance

CVE-2026-76224 is a high (CVSS 8.7) vulnerability in ArcadeDB, published 19 August 2026. A vetted upatch, cve-2026-76224-exec-block, blocks it on running Linux machines with shirudo until ArcadeDB is upgraded.

Severity
High 8.7 CVSS 4.0
Chance of exploitation
0.9% in the next 30 days (EPSS, 24 Nov 2026)
Known exploited
No, not on CISA’s KEV list
Weakness
CWE-94
Affected software
ArcadeDB (ArcadeData)
Upatch status
Vetted, merged into the registry
How to apply
Build, sign and roll out with shirudo

Overview

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.

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.

Sources

More references from NVD (2)

Mitigation

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.

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.

The policy

67 lines of BPF C, attached at lsm/bprm_check_security.

// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>

#define EPERM	1

char _license[] SEC("license") = "Dual BSD/GPL";

struct {
	__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
	__uint(max_entries, 1);
	__type(key, __u32);
	__type(value, __u64);
} refused SEC(".maps");

static __always_inline void count_refused(void)
{
	__u32 key = 0;
	__u64 *value = bpf_map_lookup_elem(&refused, &key);

	if (value)
		__sync_fetch_and_add(value, 1);
}

static __always_inline bool is_java_dentry(const struct dentry *dentry)
{
	const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
	char buf[5] = {};

	if (!dentry || BPF_CORE_READ(dentry, d_name.len) != 4)
		return false;
	if (!name || bpf_probe_read_kernel(buf, 4, name))
		return false;
	return buf[0] == 'j' && buf[1] == 'a' && buf[2] == 'v' && buf[3] == 'a';
}

static __always_inline bool current_or_parent_is_java(void)
{
	struct task_struct *task = bpf_get_current_task_btf();
	const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
	const struct dentry *parent_exe;

	if (is_java_dentry(exe))
		return true;
	parent_exe = BPF_CORE_READ(task, real_parent, mm, exe_file, f_path.dentry);
	return is_java_dentry(parent_exe);
}

static __always_inline int earlier_verdict(int ret)
{
	return ret >= -4095 && ret < 0 ? ret : -EPERM;
}

SEC("lsm/bprm_check_security")
int BPF_PROG(cve_2026_76224_exec_block, struct linux_binprm *bprm, int ret)
{
	if (ret)
		return earlier_verdict(ret);
	if (!current_or_parent_is_java())
		return 0;
	count_refused();
	return -EPERM;
}

Process

How this upatch was written, checked and reviewed, from the registry’s history.

  1. 19 Aug 2026CVECVE published
  2. 25 Nov 2026Pull requestPull request #40 openedAdd CVE-2026-76224: Refuses program execution by Java processes to mitigate ArcadeDB Gremlin Groovyromanlab
  3. 25 Nov 2026MergeMerged #40romanlab
  4. 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)

No human review is recorded on GitHub for this upatch yet.

Evidence

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
StateParameterized Gremlin Groovy fallback execve (/bin/true)Parameterized gremlin-lang query
Before loadingreached (HTTP 200)200
Upatch loadedblocked (HTTP 500)200
After unloadingreached (HTTP 200)200
tools-test.log Output of tools/test --setup showing the probe reached before and after the upatch was loaded and was blocked while it was loaded.
tools/test --setup, 2026-11-25T12:04:34Z
Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm
cve-2026-76224
  setup   done         ARCADEDB_URL=http://127.0.0.1:2480 ARCADEDB_DB=upatchdb ARCADEDB_USER=root ARCADEDB_PASSWORD=upatch-secret-2026
  before  reached      parameterized Gremlin closure fell back to Groovy and executed /bin/true (HTTP 200)
  loaded  blocked      Groovy fallback could not execute /bin/true (HTTP 500)
  after   reached      parameterized Gremlin closure fell back to Groovy and executed /bin/true (HTTP 200)
  PASS: reached before, blocked while loaded, reached again after

Use it

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
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
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>