Description
matrix-sdk-base is the base component to build a Matrix client library. In matrix-sdk-base before 0.14.1, calling the `RoomMember::normalized_power_level()` method can cause a panic if a room member has a power level of `Int::Min`. The issue is fixed in matrix-sdk-base 0.14.1. The affected method isn’t used internally, so avoiding calling `RoomMember::normalized_power_level()` prevents the panic.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| matrix-org | matrix-rust-sdk | < 0.14.1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | matrix-sdk-base | < 0.14.1 | 0.14.1 | GHSA-qhj8-q5r6-8q6j |
| crates.io | matrix-sdk-base | >= 0.0.0-0, < 0.14.1 | 0.14.1 | RUSTSEC-2025-0000 |
References
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-qhj8-q5r6-8q6j
- https://github.com/matrix-org/matrix-rust-sdk/pull/5635
- https://github.com/matrix-org/matrix-rust-sdk/commit/ce3b67f801446387972ff120e907ca828a9f1207
- https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-base-0.14.1