Skip to main content

CVE-2022-31162 — Vulnerability in slack-morphism — CVE Details

HIGH

Slack Morphism for Rust before 0.41.0 can leak Slack OAuth client information in application debug logs

Published July 20, 2022Updated November 8, 2023Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.96%). Schedule for your next planned update.

Does your project use an affected slack-morphism version?

Paste your Cargo.lock to check it for CVE-2022-31162 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

Impact

Potential/accidental leaking of Slack OAuth client information in application debug logs.

Patches

More strict and secure debug formatting was introduced in v0.41 for OAuth secret types to avoid the possibility of printing sensitive information in application logs.

Workarounds

Don't print/output in logs request and responses for OAuth and client configurations.

For more information

If you have any questions or comments about this advisory:

Advisory Timeline

  • First published July 20, 2022 (1590 days ago).
  • Last revised November 8, 2023 — 476 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update slack-morphism to 0.41.0 or later
cargo update -p slack-morphism --precise 0.41.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
slack-morphism crates.io · Affected: All versions0.41.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Frequently Asked Questions

What is CVE-2022-31162?
Slack Morphism for Rust before 0.41.0 can leak Slack OAuth client information in application debug logs. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2022-31162?
CVE-2022-31162 affects slack-morphism. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31162 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.96%
EPSS percentile: 60

This is an above-median EPSS score — 60% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-99j7-mhfh-w84p
RUSTSEC-2022-0086

Related CVEs

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2022-39292
    HIGH

    Exposure of sensitive Slack webhook URLs in debug logs and traces

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock