GHSA-fc4h-xcf3-qj5f: Matrix sdk Matrix-sdk 0.6.0 Logs Access Tokens Vulnerability
MODERATEGHSA-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
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.
Upgrade matrix-sdk to 0.6.2
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
GHSA-fc4h-xcf3-qj5f Affected Matrix sdk Versions
1 component(s)| 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?
Which Matrix sdk versions are affected?
What version fixes GHSA-fc4h-xcf3-qj5f?
Is matrix-sdk affected?
What CWE is associated with GHSA-fc4h-xcf3-qj5f?
How can I check crates.io dependencies for GHSA-fc4h-xcf3-qj5f?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}