GHSA-fc4h-xcf3-qj5f: Matrix sdk Matrix-sdk 0.6.0 Logs Access Tokens Vulnerability

MODERATE
Published
Advisory Summary

GHSA-fc4h-xcf3-qj5f is a MODERATE matrix-sdk 0.6.0 logs access tokens vulnerability (General Security Weakness) affecting Matrix sdk libraries in the crates.io ecosystem. The issue involves matrix-sdk 0.6.0 logs access tokens. Remediation is available by upgrading affected packages to version 0.6.2.

GHSA-fc4h-xcf3-qj5f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-fc4h-xcf3-qj5f
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Matrix sdk
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-fc4h-xcf3-qj5f

To remediate this vulnerability, upgrade all affected Matrix sdk 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 fixed: 0.6.2
Upgrade matrix-sdk to 0.6.2
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

How to Check if You Are Affected

To determine whether your application is affected by GHSA-fc4h-xcf3-qj5f, inspect your project dependencies for Matrix sdk:

inspect dependencies for matrix-sdk

Analyze the terminal output to locate any version of Matrix sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.2), 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 General Security Weakness. In Matrix sdk, 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

When sending Matrix requests using an affected version of `matrix-sdk` in an application that writes logs using `tracing-subscriber` (in a way that includes fields of tracing spans such as `tracing_subscriber`s default text output from the `fmt` module), these logs will contain the user's access token.

GHSA-fc4h-xcf3-qj5f Affected Matrix sdk Versions

1 component(s)
Fixed Versions:
0.6.2
Product / Package Ecosystem Affected Versions Fixed Version
matrix-sdk
crates.io
≥ 0.6.0
< 0.6.2
0.6.2

References

Frequently Asked Questions

What is GHSA-fc4h-xcf3-qj5f?
GHSA-fc4h-xcf3-qj5f is a security vulnerability in Matrix sdk involving matrix-sdk 0.6.0 logs access tokens under General Security Weakness.
Which Matrix sdk versions are affected?
Affected versions include releases prior to 0.6.2 across affected packages: matrix-sdk.
What version fixes GHSA-fc4h-xcf3-qj5f?
Upgrading to 0.6.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is matrix-sdk affected?
Yes, matrix-sdk is affected in releases prior to 0.6.2. Upgrade your dependency to 0.6.2 or later.
What CWE is associated with GHSA-fc4h-xcf3-qj5f?
GHSA-fc4h-xcf3-qj5f is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-fc4h-xcf3-qj5f?
Run the dependency tree command: 'inspect dependencies for matrix-sdk'. 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-fc4h-xcf3-qj5f",
  "modified" : "2022-10-25T20:22:19Z",
  "published" : "2022-10-25T20:22:19Z",
  "aliases" : [ ],
  "summary" : "matrix-sdk 0.6.0 logs access tokens",
  "details" : "When sending Matrix requests using an affected version of `matrix-sdk` in an application that writes logs using `tracing-subscriber` (in a way that includes fields of tracing spans such as `tracing_subscriber`s default text output from the `fmt` module), these logs will contain the user's access token.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "matrix-sdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.6.0"
      }, {
        "fixed" : "0.6.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/matrix-org/matrix-rust-sdk/issues/1110"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/matrix-org/matrix-rust-sdk"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0062.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-25T20:22:19Z",
    "nvd_published_at" : null
  }
}