Skip to content

immudb version 1.12.2

Latest

Choose a tag to compare

@vchaindz vchaindz released this 01 Dec 14:02
fa18a0e

immudb — Changes from v1.12.1 to v1.12.2

v1.12.2 is a hardening release that closes the remaining findings from the external security review. All users should upgrade.

Authorization

  • SQL permissions are checked against the database the statement runs on, not the session's current database. A user could previously begin a session transaction, USE a database where they hold ReadWrite, and commit writes to a database where they only hold Read (#2174, GHSA-r4mj-2pwc-gqgh).
  • pgsql COPY … FROM stdin accepts only identifiers as table and column names, so a crafted name can no longer append statements (#2174, GHSA-r4mj-2pwc-gqgh).

Crashes

  • Concurrent CREATE SEQUENCE and NEXTVAL no longer crash the server; NEXTVAL is now atomic (#2174, GHSA-jv8p-9qhv-8j67).
  • A truncation frequency of 0 with retention enabled is rejected, so it can no longer crash the server on every start (#2174, GHSA-rm76-jhgv-5rg6).
  • Document queries are capped at 10,000 comparisons instead of overflowing the stack (#2174, GHSA-63jm-qrj8-f7xw).

Availability and data integrity

  • A CHECK constraint literal containing a quote, such as 'O''Brien', is persisted correctly and no longer breaks all SQL on the database (#2174, GHSA-p4px-vjxx-w7x5).
  • A session transaction with SnapshotMustIncludeTxID beyond the last committed transaction returns ErrTxNotFound instead of blocking the database (#2174, GHSA-8x7c-c8vv-9v88).

Dependencies

  • google.golang.org/grpc 1.83.2 in every module, fixing GHSA-2v4p-qf9q-27wj; immudb does not use the affected xDS package. golang.org/x/crypto, x/net and x/text move to newer minor versions (#2175).

Upgrade notes

  • Databases with retention enabled and a truncation frequency of 0 fail validation; set a frequency of at least the store minimum. A value already stored makes the truncator log an error instead of starting.
  • Databases that already stored a CHECK literal containing a quote are not repaired by this release; recreate the constraint or restore from backup.
  • NewTx with SnapshotMustIncludeTxID greater than the latest transaction fails with ErrTxNotFound.
  • Document searches with more than 10,000 comparisons fail with ErrMaxLengthExceeded.
  • pgsql COPY statements whose table or column names are not plain or double-quoted identifiers are no longer handled as COPY FROM stdin.