CVE-2025-59047: matrix-sdk-base: Panic in the `RoomMember::normalized_power_level()` method
In matrix-sdk-base before 0.14.1, calling the RoomMember::normalizedpowerlevel() method can cause a panic if a room member has a power level of Int::Min. Patches The issue is fixed in matrix-sdk-base 0.14.1. Workarounds The affected method isn’t used internally, so avoiding calling RoomMember::normalizedpowerlevel() prevents the panic.
Published Sep 11, 2025
Affected packages
matrix-sdk-base
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.14.1
- Fixed in
- 0.14.1
- Check
cargo tree -i matrix-sdk-base
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Patches
The issue is fixed in matrix-sdk-base 0.14.1.
Workarounds
The affected method isn’t used internally, so avoiding calling RoomMember::normalized_power_level() prevents the panic.
Credited to poljar.
References
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-qhj8-q5r6-8q6j
- https://nvd.nist.gov/vuln/detail/CVE-2025-59047
- 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
- https://rustsec.org/advisories/RUSTSEC-2025-0065.html
- https://github.com/advisories/GHSA-qhj8-q5r6-8q6j
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
