CVE-2022-31162:
Slack Morphism for Rust before 0.41.0 can leak Slack OAuth client information in application debug logs
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.32504%
CWE
Published
7/20/2022
Updated
7/24/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
slack-morphism | rust | < 0.41.0 | 0.41.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from sensitive types implementing Debug traits that leaked secret values. The commit 4923fb7 shows:
- SlackClientSecret and SlackSigningSecret received custom Debug implementations that mask values
- SlackOAuthCode was introduced with a secure Debug implementation
- Multiple locations changed from String to newtype wrappers with secure formatting This indicates the original Debug implementations for these types (present in <0.41.0 versions) would print sensitive values when debug-logged, matching CWE-1258 (uncleared debug info) and CWE-200 (sensitive info exposure).