GHSA-fc4h-xcf3-qj5f matrix-sdk 0.6.0 logs access tokens

Not scored Published

The matrix-sdk library leaks user access tokens into logs when used with specific tracing configurations, allowing attackers with log access to hijack accounts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-fc4h-xcf3-qj5f?

GHSA-fc4h-xcf3-qj5f is a vulnerability in matrix-sdk, published on 24 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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_subscribers default text output from the fmt module), these logs will contain the user's access token.

Which versions are affected by GHSA-fc4h-xcf3-qj5f?

3 open source packages ship an affected version, including matrix-sdk.

PackageAffectedFixed in
matrix-sdk crates.ioFrom 0.6.00.6.2
matrix-sdk crates.ioFrom 0.6.00.6.2
matrix-sdk crates.ioFrom 0.6.00.6.2

How do I fix GHSA-fc4h-xcf3-qj5f?

Upgrade matrix-sdk to 0.6.2 or later.

Is GHSA-fc4h-xcf3-qj5f being exploited?

There is no known exploitation of GHSA-fc4h-xcf3-qj5f in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2022-0062.

Is GHSA-fc4h-xcf3-qj5f in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free