{"id":"CVE-2026-67341","aliases":["CVE-2026-67341","GHSA-vwjc-v7x7-cm6g"],"related":[],"kind":"vulnerability","state":"published","title":"ArcadeDB before 26.7.2 Authorization Bypass via SQL DEFINE FUNCTION","summary":"ArcadeDB versions before 26.7.2 fail to enforce scripting authorization checks on the SQL DEFINE FUNCTION statement with LANGUAGE js. Attackers with database access can execute arbitrary JavaScript code by submitting DEFINE FUNCTION statements, bypassing security controls intended to restrict scripting to administrators.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ArcadeDB versions before 26.7.2 fail to enforce scripting authorization checks on the SQL DEFINE FUNCTION statement with LANGUAGE js. Attackers with database access can execute arbitrary JavaScript code by submitting DEFINE FUNCTION statements, bypassing security controls intended to restrict scripting to administrators.","source":"cvelist"},{"lang":"en","text":"The GHSA-48qw-824m-86pr hardening added a checkPermissionsOnDatabase(UPDATE_SECURITY) gate on the polyglot engine (PolyglotQueryEngine.java:112-114,126,176,199), but only there. The SQL route to JavaScript never touches it: DefineFunctionStatement.executeSimple (DefineFunctionStatement.java:37-100), LocalSchema.registerFunctionLibrary, and SQLQueryEngine library-function invocation (SQLQueryEngine.java:198-224) do no scripting-permission check.\n\nExploit: any user authorized for the DB (including a read-only role) runs POST /api/v1/command/<db> {\"language\":\"sql\",\"command\":\"DEFINE FUNCTION x.run \\\"<js>\\\" LANGUAGE js\"} then SELECT x.run(), executing arbitrary JavaScript and defeating the control meant to restrict scripting to security admins. On this path allowedPackages is empty so Java.type host lookup and reflection are blocked, but IOAccess.ALL still permits load(url) SSRF/remote-JS inclusion and unbounded CPU/memory DoS.\n\nFix: gate DefineFunctionStatement.executeSimple, the SQLQueryEngine library-function wrapper (to also cover pre-existing libraries), and DeleteFunctionStatement with UPDATE_SECURITY for js/polyglot languages. Centralize as one assertCanExecuteUserCode(database) invoked by every code-execution surface. Also set IOAccess.NONE / PolyglotAccess.NONE on the Context (GraalPolyglotEngine.java:86,91).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de ArcadeDB anteriores a la 26.7.2 no aplican las comprobaciones de autorización de scripting en la instrucción SQL DEFINE FUNCTION con LANGUAGE js. Atacantes con acceso a la base de datos pueden ejecutar código JavaScript arbitrario al enviar instrucciones DEFINE FUNCTION, eludiendo los controles de seguridad destinados a restringir el scripting a los administradores.","source":"nvd"}],"published":"2026-07-16T20:17:42.000Z","modified":"2026-10-23T22:10:00.160Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-74","CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"26.7.2","status":"affected"},{"type":"semver","version":"26.7.2","status":"unaffected"}],"vendor":"ArcadeData","product":"arcadedb","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"26.7.2"}],"ecosystem":"Maven","package":"com.arcadedb:arcadedb-engine","purl":"pkg:maven/com.arcadedb/arcadedb-engine","source":"ghsa"}],"references":[{"url":"https://github.com/ArcadeData/arcadedb/security/advisories/GHSA-vwjc-v7x7-cm6g","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/arcadedb-before-authorization-bypass-via-sql-define-function","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ArcadeData/arcadedb","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ArcadeData/arcadedb/releases/tag/26.7.2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-08-03T18:22:25.338Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-67341","url":"https://www.cve.org/CVERecord?id=CVE-2026-67341","licence":"CVE Terms of Use","modified":"2026-08-03T18:22:32.647Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vwjc-v7x7-cm6g","url":"https://github.com/advisories/GHSA-vwjc-v7x7-cm6g","licence":"CC-BY-4.0","modified":"2026-08-02T03:56:44.846Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-67341","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67341","licence":"Public domain","modified":"2026-10-23T22:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:30.796Z","epss":{"score":0.00319,"percentile":0.26861,"date":"2026-12-01T12:00:22.000Z"}}