Repository navigation
v0.9.3
A security fix, and scaled mode's writer pool starts writing. In-place safe from 0.9.x: no data migration, no config changes.
Upgrade if you expose /sql to anyone you do not trust. The first item is an arbitrary file read.
Security: arbitrary file read via /sql
SELECT * FROM "read_csv"('/etc/passwd')The file-access denylist matched a forbidden function name only when the next non-space character was (. DuckDB accepts a quoted function name, where the next character is " — so this passed both guards and DuckDB executed it. Confirmed against a live connection during a pre-1.0 adversary pass: it returned the contents of /etc/hosts.
Exploitable on any /sql surface reachable by an untrusted party, in every prior release. /sql is bound to localhost by default; the exposure is real for anyone who has put it behind a proxy or bound it wider.
Same class as the stacked-COPY TO arbitrary write (#153): the guard was right about the shape it imagined, and the shape had another spelling.
Fixed by normalising quotes away before the scan, which collapses every placement at once — "read_csv"(, read"_"csv(, and anything else quoting can do to break a name apart. Stripping can only make the denylist match more, and over-refusing is the safe direction: the cost is a rejected query with a bizarre identifier, against reading /etc/passwd.
An advisory accompanies this release. The full audit — one exploitable finding, six open items including the design question this raises — ships in docs/security-audit-2026-07-31.md.
The writer pool now writes
worker::run registered with the control plane, took cursor leases, loaded secrets, reported — and contained no indexing code at all. A worker acquired a cursor and did nothing with it. Scaled mode's control plane worked; its ingestion did not exist.
That is why a distributed fleet logged acquired cursors chains=["arbitrum-one"] immediately followed by runtime secrets injected for held cursors nests=0, and why last_block never moved.
Why nothing caught it. Every level-5 check in the verification runbook tests the control plane — registration, planning, lease fencing, version pinning, write-only secrets. Not one asserted that a row appears. "10/10, zero skipped" was true and meant less than it read.
Now:
- A worker holding a cursor builds and drives the declared nests for that chain, indexing into the shared store.
- Losing a lease stops exactly the nests that cursor authorised and leaves the others running — the lease is per cursor, so the isolation is the shape of the code rather than care taken at each call site.
- Shutdown stops indexing before releasing leases: once a lease is gone another worker may take the cursor, and two writers overlapping is something the fence exists to survive, not to create casually.
- Check 5.11 asserts
last_blockadvances in the shared store — the one check that could not have passed before this.
What is still missing, stated plainly
A worker can only index a nest it can locate, and the control plane records only (name, chain, estimated_rss_mb) — no bundle address, no path. That gap is why the code was never written. RFC-0022 names RFC-0019 ("the registry workers pull nests from") as the intended source; that is not built.
Until it is, a worker indexes nests the operator has already placed on the machine (--nest-root, default /nest), which is what the compose topology implies with its ./nest mount. A declared nest a worker cannot find now warns loudly, including "holding this cursor but indexing nothing" — that silence is what let this survive a release.
Scaled mode remains behind embedded mode. nuthatch dev and roost are unaffected by any of this and remain the primary deliverable.
Also
- wasmtime 46.0.1 → 46.0.2 — RUSTSEC-2026-0222 and -0223.
- Issue #241 items 1–4, 6–7: factory rules no longer silently collide (one event can announce many children), stale
schema.jsonis regenerated at startup so the AI surface stops recommending_deccolumns that do not exist, a premature view no longer kills its whole file,nuthatch doctorprobes an endpoint before you trust a backfill to it, and batch-count limits narrow instead of stalling. - Two shipped RPC defaults could not serve a backfill —
ethereum-rpc.publicnode.comhad moved archive requests behind a token while listed first for mainnet, andeth.llamarpc.comwas returning HTTP 521. Both removed; a weekly job now re-probes the shipped defaults and fails rather than warns.
Verifying the download
curl -fsSLO https://github.com/nightswatchhq/nuthatch/releases/download/v0.9.3/nuthatch-x86_64-unknown-linux-gnu.tar.gz
curl -fsSLO https://github.com/nightswatchhq/nuthatch/releases/download/v0.9.3/nuthatch-x86_64-unknown-linux-gnu.tar.gz.sha256
sha256sum -c nuthatch-x86_64-unknown-linux-gnu.tar.gz.sha256| Artifact | Contains |
|---|---|
nuthatch-x86_64-unknown-linux-gnu.tar.gz · :0.9.3 · :latest |
embedded — no database driver |
nuthatch-scaled-x86_64-unknown-linux-gnu.tar.gz · :0.9.3-scaled |
scaled — worker, control, serve --hot-store |