HighGHSA-p2j4-c4g6-rpf5CVE-2026-47735GO-2026-5523

Arc has an authenticated arbitrary local-file read via DuckDB I/O functions that bypasses RBAC table-level checks

Published 8 Jun 2026 · Updated 25 Jun 2026

Is your project on an affected github.com/basekick-labs/arc?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.0.0-20260520141557-91bdc29d1a02
Fixed in
0.0.0-20260520141557-91bdc29d1a02
Update to the fixed version for your release line, for example:go get github.com/basekick-labs/arc@v0.0.0-20260520141557-91bdc29d1a02

Details

Summary

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.

Impact

Any authenticated user, including a token with permissions: [], can read arbitrary local files via:

POST /api/v1/query
Authorization: Bearer <token>
{"sql": "SELECT * FROM read_csv_auto('/etc/passwd', header=false, columns={'l':'VARCHAR'}) LIMIT 5"}

Confirmed reachable targets:

  • auth.db — bcrypt hashes for every API token, plus legacy SHA-256 rows.
  • arc.toml — S3 secrets, TLS keys.
  • /proc/self/environ — environment-variable secrets.
  • Cross-tenant Parquet files — bypasses RBAC because the tenant scope is enforced at the table layer, not on raw file paths.
  • SSRF when httpfs is loaded (any S3-backed deployment) — read_csv_auto('http://169.254.169.254/latest/meta-data/...') reaches instance metadata IPs.

Patches

Fixed in 2026.06.1 (PR #442) via a structural sandbox at the DuckDB layer:

1. SET GLOBAL allowed_directories = [...] enumerates Arc's legitimate filesystem prefixes (storage roots + tier prefixes + import upload dir + compaction temp). 2. SET GLOBAL enable_external_access = false (one-way at runtime). 3. Verified by reading back the flag.

After lockdown, DuckDB refuses to open any file outside the allowlist and refuses further INSTALL/LOAD. Already-loaded extensions remain callable.

Workarounds

  • Restrict API access to known-trusted networks via firewall rules.
  • Temporary mitigation: add read_csv*/read_json*/glob etc. to dangerousSQLPattern in internal/api/query.go pending 2026.06.1.

Credits

Reported by Alex Manson (@NeuroWinter, https://neurowinter.com/) on 2026-05-19.

Is GHSA-p2j4-c4g6-rpf5 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/basekick-labs/arc, and gives you the command that fixes it.

More advisories for github.com/basekick-labs/arc

  • LowGO-2026-6907Arc has unauthenticated application log disclosure via `/api/v1/logs` in github.com/basekick-labs/arc · 5 Nov 2026
  • LowCVE-2026-55098Arc: DuckDB I/O aliases bypass database RBAC after CVE-2026-47735 in github.com/basekick-labs/arc · 5 Nov 2026
  • MediumCVE-2026-55098Arc: DuckDB I/O aliases bypass database RBAC after CVE-2026-47735 · 4 Nov 2026
  • LowGHSA-m3qr-fvp4-78xjArc has unauthenticated application log disclosure via `/api/v1/logs` · 3 Nov 2026
  • LowCVE-2026-55678arc has unauthenticated cluster node admission when `cluster.shared_secret` is unset in github.com/basekick-labs/arc · 2 Sept 2026
  • MediumCVE-2026-55678arc has unauthenticated cluster node admission when `cluster.shared_secret` is unset · 28 Aug 2026
All 9 advisories for github.com/basekick-labs/arc

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.