---
id: GHSA-x9f9-r4m8-9xc2
title: >-
  ArcadeDB: Trigger scripts run with java.lang.* allowed, enabling OS command
  execution (RCE)
summary: >-
  ArcadeDB: Trigger scripts run with java.lang.* allowed, enabling OS command
  execution (RCE)
severity: high
cwe:
  - CWE-78
vendor: arcadedb
product: 'com.arcadedb:arcadedb-engine'
ecosystem: maven
affected:
  - 'com.arcadedb:arcadedb-engine < 26.7.2'
patched:
  - 'com.arcadedb:arcadedb-engine 26.7.2'
published: '2026-07-16'
updated: '2026-07-16'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-x9f9-r4m8-9xc2'
references:
  - url: >-
      https://github.com/ArcadeData/arcadedb/security/advisories/GHSA-x9f9-r4m8-9xc2
  - url: 'https://github.com/ArcadeData/arcadedb/releases/tag/26.7.2'
  - url: 'https://github.com/advisories/GHSA-x9f9-r4m8-9xc2'
tags:
  - ghsa
  - maven
ingestedAt: '2026-07-16T20:58:02.693Z'
---

## Overview

ScriptTriggerExecutor sets allowedPackages to java.lang.*, java.util.*, java.time.*, java.math.* (ScriptTriggerExecutor.java:56); trigger creation is gated only at UPDATE_SCHEMA (LocalSchema.createTrigger:636). Permitting java.lang.* host-class lookup lets a trigger script do Java.type("java.lang.Runtime").getRuntime().exec(...) (or ProcessBuilder). The reflection denylist does not block Java.type host lookups, and allowCreateProcess(false) only restricts GraalVM's guest process API, not a host Runtime.exec reached through HostAccess.ALL.

Exploit: a user with UPDATE_SCHEMA (schema admin, strictly less than security admin) runs CREATE TRIGGER ... EXECUTE JAVASCRIPT '<runtime.exec>' and obtains OS RCE when the trigger fires.

Fix: remove java.lang.* (and narrow the rest) from the trigger allow-list; if host interop is needed, expose an explicit @HostAccess.Export API surface instead of whole packages; consider gating trigger creation at UPDATE_SECURITY. Prefer an allow-list (HostAccess.EXPLICIT) over the current denylist-over-HostAccess.ALL.

Related medium/low items to fold into the fix: IMPORT DATABASE SSRF via unfollowed-redirect re-validation (SourceDiscovery.java:113), BACKUP/EXPORT DATABASE missing authorization (BackupDatabaseStatement.java:56, ExportDatabaseStatement.java:52), chunked-transfer body-size DoS bypass (HttpServer.java:301,318-333), and no brute-force lockout on password auth (ServerSecurity.java:189-205).

## Affected packages

- `com.arcadedb:arcadedb-engine < 26.7.2`

## Remediation

Upgrade to a patched release:

- `com.arcadedb:arcadedb-engine 26.7.2`
