CVE-2025-59047: matrix-sdk-base Panic Vulnerability
LOWCVE-2025-59047 is a LOW panic vulnerability (CWE-682: Incorrect Calculation) affecting matrix-sdk-base libraries in the crates.io ecosystem. The issue involves panic in the `roommember::normalized_power_level()` method. Remediation is available by upgrading affected packages to version 0.14.1.
CVE-2025-59047 at a Glance
How to Fix CVE-2025-59047
To remediate this vulnerability, upgrade all affected matrix-sdk-base dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade matrix-sdk-base to 0.14.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for matrix-sdk-base
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-59047, inspect your project dependencies for matrix-sdk-base:
inspect dependencies for matrix-sdk-base
Analyze the terminal output to locate any version of matrix-sdk-base in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-682: Incorrect Calculation, where the product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management. In matrix-sdk-base, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59047 Affected matrix-sdk-base Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matrix-sdk-base
|
crates.io |
< 0.14.1
|
0.14.1
|
References
Frequently Asked Questions
What is CVE-2025-59047?
Which matrix-sdk-base versions are affected?
What version fixes CVE-2025-59047?
Is matrix-sdk-base affected?
What CWE is associated with CVE-2025-59047?
How can I check crates.io dependencies for CVE-2025-59047?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qhj8-q5r6-8q6j",
"modified" : "2025-09-11T21:23:55Z",
"published" : "2025-09-11T21:23:55Z",
"aliases" : [ "CVE-2025-59047" ],
"summary" : "matrix-sdk-base: Panic in the `RoomMember::normalized_power_level()` method",
"details" : "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`.\n\n### Patches\nThe issue is fixed in matrix-sdk-base 0.14.1.\n\n### Workarounds\nThe affected method isn’t used internally, so avoiding calling `RoomMember::normalized_power_level()` prevents the panic.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "matrix-sdk-base"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.14.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-qhj8-q5r6-8q6j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59047"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-rust-sdk/pull/5635"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-rust-sdk/commit/ce3b67f801446387972ff120e907ca828a9f1207"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/matrix-org/matrix-rust-sdk"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-base-0.14.1"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0065.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-682" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-11T21:23:55Z",
"nvd_published_at" : "2025-09-11T18:15:35Z"
}
}