CVE-2025-59047: matrix-sdk-base Panic Vulnerability

LOW
Advisory Identifier: GHSA-qhj8-q5r6-8q6j
CWE-682
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-59047
GHSA Identifier GHSA-qhj8-q5r6-8q6j
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-682: Incorrect Calculation
Affected Product matrix-sdk-base
Package Ecosystem crates.io
Published Date
Last Updated

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.

matrix-sdk-base fixed: 0.14.1
Upgrade matrix-sdk-base to 0.14.1
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-59047 Affected matrix-sdk-base Versions

1 component(s)
Fixed Versions:
0.14.1
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?
CVE-2025-59047 is a security vulnerability in matrix-sdk-base involving Panic in the `RoomMember::normalized_power_level()` method under CWE-682: Incorrect Calculation.
Which matrix-sdk-base versions are affected?
Affected versions include releases prior to 0.14.1 across affected packages: matrix-sdk-base.
What version fixes CVE-2025-59047?
Upgrading to 0.14.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is matrix-sdk-base affected?
Yes, matrix-sdk-base is affected in releases prior to 0.14.1. Upgrade your dependency to 0.14.1 or later.
What CWE is associated with CVE-2025-59047?
CVE-2025-59047 is classified under CWE-682: Incorrect Calculation (The product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management.).
How can I check crates.io dependencies for CVE-2025-59047?
Run the dependency tree command: 'inspect dependencies for matrix-sdk-base'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}