{"id":"CVE-2026-47735","aliases":["CVE-2026-47735","GHSA-p2j4-c4g6-rpf5","GO-2026-5523"],"related":[],"kind":"vulnerability","state":"published","title":"Arc has an authenticated arbitrary local-file read via DuckDB I/O functions that bypasses RBAC table-level checks","summary":"Arc is an open, SQL-native time-series database for telemetry. Prior to version 26.06.1, Arc's user-SQL validator (`internal/api/query.go:ValidateSQLRequest`) blocked only `read_parquet(` and `arc_partition_agg(` via regex denylist. The broader DuckDB I/O function family — `read_csv_auto`, `read_csv`, `read_json`, `read_json_auto`, `read_text`, `read_blob`, `glob`, `parquet_metadata`, `parquet_schema`, `read_xlsx`, etc. — was not blocked. RBAC table-reference extraction inspected only `FROM`/`JOIN` clauses, so scalar table functions in the `SELECT` list slipped past both layers. This is fixed in 2026.06.1 via a structural sandbox at the DuckDB layer. After lockdown, DuckDB refuses to open any file outside the allowlist and refuses further `INSTALL`/`LOAD`. Already-loaded extensions remain callable. Some workarounds are available. Restrict API access to known-trusted networks via firewall rules or, as a temporary mitigation, add `read_csv*`/`read_json*`/`glob` etc. to `dangerousSQLPattern` in `internal/api/query.go`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Arc is an open, SQL-native time-series database for telemetry. Prior to version 26.06.1, Arc's user-SQL validator (`internal/api/query.go:ValidateSQLRequest`) blocked only `read_parquet(` and `arc_partition_agg(` via regex denylist. The broader DuckDB I/O function family — `read_csv_auto`, `read_csv`, `read_json`, `read_json_auto`, `read_text`, `read_blob`, `glob`, `parquet_metadata`, `parquet_schema`, `read_xlsx`, etc. — was not blocked. RBAC table-reference extraction inspected only `FROM`/`JOIN` clauses, so scalar table functions in the `SELECT` list slipped past both layers. This is fixed in 2026.06.1 via a structural sandbox at the DuckDB layer. After lockdown, DuckDB refuses to open any file outside the allowlist and refuses further `INSTALL`/`LOAD`. Already-loaded extensions remain callable. Some workarounds are available. Restrict API access to known-trusted networks via firewall rules or, as a temporary mitigation, add `read_csv*`/`read_json*`/`glob` etc. to `dangerousSQLPattern` in `internal/api/query.go`.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nArc's user-SQL validator (`internal/api/query.go:ValidateSQLRequest`) blocked only `read_parquet(` and `arc_partition_agg(` via regex denylist. The broader DuckDB I/O function family — `read_csv_auto`, `read_csv`, `read_json`, `read_json_auto`, `read_text`, `read_blob`, `glob`, `parquet_metadata`, `parquet_schema`, `read_xlsx`, etc. — was not blocked. RBAC table-reference extraction inspected only `FROM`/`JOIN` clauses, so scalar table functions in the `SELECT` list slipped past both layers.\n\n### Impact\n\nAny authenticated user, including a token with `permissions: []`, can read arbitrary local files via:\n\n```\nPOST /api/v1/query\nAuthorization: Bearer <token>\n{\"sql\": \"SELECT * FROM read_csv_auto('/etc/passwd', header=false, columns={'l':'VARCHAR'}) LIMIT 5\"}\n```\n\nConfirmed reachable targets:\n\n- `auth.db` — bcrypt hashes for every API token, plus legacy SHA-256 rows.\n- `arc.toml` — S3 secrets, TLS keys.\n- `/proc/self/environ` — environment-variable secrets.\n- Cross-tenant Parquet files — bypasses RBAC because the tenant scope is enforced at the table layer, not on raw file paths.\n- SSRF when `httpfs` is loaded (any S3-backed deployment) — `read_csv_auto('http://169.254.169.254/latest/meta-data/...')` reaches instance metadata IPs.\n\n### Patches\n\nFixed in 2026.06.1 (PR #442) via a structural sandbox at the DuckDB layer:\n\n1. `SET GLOBAL allowed_directories = [...]` enumerates Arc's legitimate filesystem prefixes (storage roots + tier prefixes + import upload dir + compaction temp).\n2. `SET GLOBAL enable_external_access = false` (one-way at runtime).\n3. Verified by reading back the flag.\n\nAfter lockdown, DuckDB refuses to open any file outside the allowlist and refuses further `INSTALL`/`LOAD`. Already-loaded extensions remain callable.\n\n### Workarounds\n\n- Restrict API access to known-trusted networks via firewall rules.\n- Temporary mitigation: add `read_csv*`/`read_json*`/`glob` etc. to `dangerousSQLPattern` in `internal/api/query.go` pending 2026.06.1.\n\n### Credits\n\nReported by Alex Manson ([@NeuroWinter](https://github.com/NeuroWinter), https://neurowinter.com/) on 2026-05-19.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Arc has an authenticated arbitrary local-file read via DuckDB I/O functions that bypasses RBAC table-level checks in github.com/basekick-labs/arc","format":"markdown","source":"go"},{"lang":"es","text":"Arc es una base de datos de series temporales abierta, nativa de SQL, para telemetría. Antes de la versión 26.06.1, el validador SQL de usuario de Arc ('internal/api/query.go:ValidateSQLRequest') bloqueaba solo 'read_parquet(' y 'arc_partition_agg(' a través de una lista de denegación de expresiones regulares. La familia más amplia de funciones de E/S de DuckDB - 'read_csv_auto', 'read_csv', 'read_json', 'read_json_auto', 'read_text', 'read_blob', 'glob', 'parquet_metadata', 'parquet_schema', 'read_xlsx', etc. - no estaba bloqueada. La extracción de referencias de tablas RBAC inspeccionaba solo las cláusulas 'FROM'/'JOIN', por lo que las funciones de tabla escalares en la lista 'SELECT' pasaron desapercibidas por ambas capas. Esto se corrigió en 2026.06.1 mediante un sybox estructural en la capa de DuckDB. Después del bloqueo, DuckDB se niega a abrir cualquier archivo fuera de la lista de permitidos y se niega a realizar más 'INSTALL'/'LOAD'. Las extensiones ya cargadas siguen siendo invocables. Algunas soluciones alternativas están disponibles. Restrinja el acceso a la API a redes de confianza conocidas mediante reglas de cortafuegos o, como una mitigación temporal, añada 'read_csv'/'read_json'/'glob', etc. a 'dangerousSQLPattern' en 'internal/api/query.go'.","source":"nvd"}],"published":"2026-06-08T23:51:19.000Z","modified":"2026-10-12T16:10:00.220Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-22","CWE-200","CWE-918"],"affected":[{"ranges":[{"version":"< 2026.06.1","status":"affected"}],"vendor":"Basekick-Labs","product":"arc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260520141557-91bdc29d1a02"}],"ecosystem":"Go","package":"github.com/basekick-labs/arc","purl":"pkg:golang/github.com/basekick-labs/arc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260520141557-91bdc29d1a02"}],"ecosystem":"Go","package":"github.com/basekick-labs/arc","purl":"pkg:golang/github.com/basekick-labs/arc","source":"go"}],"references":[{"url":"https://github.com/Basekick-Labs/arc/security/advisories/GHSA-p2j4-c4g6-rpf5","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/Basekick-Labs/arc/pull/442","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/Basekick-Labs/arc/commit/91bdc29d1a02178ccf8c66375eccf85203108dfb","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/Basekick-Labs/arc/releases/tag/v26.06.1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Basekick-Labs/arc","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-25T13:35:46.351Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47735","url":"https://www.cve.org/CVERecord?id=CVE-2026-47735","licence":"CVE Terms of Use","modified":"2026-08-25T13:35:54.838Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p2j4-c4g6-rpf5","url":"https://github.com/advisories/GHSA-p2j4-c4g6-rpf5","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:18.501Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5523","url":"https://pkg.go.dev/vuln/GO-2026-5523","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:19.233Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47735","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47735","licence":"Public domain","modified":"2026-10-12T16:10:00.220Z"}],"updatedAt":"2026-11-25T22:59:34.850Z","epss":{"score":0.00358,"percentile":0.31554,"date":"2026-12-01T12:00:22.000Z"}}