CVE-2022-31162 Slack Morphism for Rust before 0.41.0 can accidentally leak Slack OAuth client information in application debug logs
Slack Morphism for Rust leaks OAuth client secrets in debug logs, allowing attackers with log access to steal credentials.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31162?
CVE-2022-31162 is a high-severity vulnerability in abdolence slack-morphism-rust, published on 21 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Slack Morphism is an async client library for Rust. Prior to 0.41.0, it was possible for Slack OAuth client information to leak in application debug logs. Stricter and more secure debug formatting was introduced in v0.41.0 for OAuth secret types to reduce the possibility of printing sensitive information in application logs. As a workaround, do not print/output requests and responses for OAuth and client configurations in logs.
Which versions are affected by CVE-2022-31162?
3 open source packages ship an affected version, including slack-morphism. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
slack-morphism crates.io | All versions | 0.41.0 |
slack-morphism crates.io | All versions | 0.41.0 |
slack-morphism crates.io | From 0.0.0-0 | 0.41.0 |
Products include Slack Morphism Project Slack Morphism.
How do I fix CVE-2022-31162?
Upgrade slack-morphism to 0.41.0 or later.
Is CVE-2022-31162 being exploited?
There is no known exploitation of CVE-2022-31162 in the wild and no public exploit code.
Other vulnerabilities in abdolence slack-morphism-rust
Sources
Also known as GHSA-99j7-mhfh-w84p, RUSTSEC-2022-0086.