Repository navigation
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,
USEa database where they hold ReadWrite, and commit writes to a database where they only hold Read (#2174, GHSA-r4mj-2pwc-gqgh). - pgsql
COPY … FROM stdinaccepts only identifiers as table and column names, so a crafted name can no longer append statements (#2174, GHSA-r4mj-2pwc-gqgh).
Crashes
- Concurrent
CREATE SEQUENCEandNEXTVALno longer crash the server;NEXTVALis now atomic (#2174, GHSA-jv8p-9qhv-8j67). - A truncation frequency of
0with 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
CHECKconstraint 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
SnapshotMustIncludeTxIDbeyond the last committed transaction returnsErrTxNotFoundinstead of blocking the database (#2174, GHSA-8x7c-c8vv-9v88).
Dependencies
google.golang.org/grpc1.83.2 in every module, fixing GHSA-2v4p-qf9q-27wj; immudb does not use the affected xDS package.golang.org/x/crypto,x/netandx/textmove to newer minor versions (#2175).
Upgrade notes
- Databases with retention enabled and a truncation frequency of
0fail 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
CHECKliteral containing a quote are not repaired by this release; recreate the constraint or restore from backup. NewTxwithSnapshotMustIncludeTxIDgreater than the latest transaction fails withErrTxNotFound.- Document searches with more than 10,000 comparisons fail with
ErrMaxLengthExceeded. - pgsql
COPYstatements whose table or column names are not plain or double-quoted identifiers are no longer handled asCOPY FROM stdin.