CVE-2022-31162
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.94% (higher than 61% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-99j7-mhfh-w84pRUSTSEC-2022-0086

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.

Affected

Product or packageVersionsReported by
abdolence slack-morphism-rust< 0.41.0CVE List
slack-morphism (crates.io)before 0.41.0, from 0.0.0-0 before 0.41.0GitHub Advisory Database, RustSec Advisory Database
slack_morphism_project slack_morphismbefore 0.41.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-200CWE-212CWE-1258

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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:

RustSec Advisory Database

Debug log formatting made it possible to leak OAuth secrets into debug logs.

The patched version has introduced more strict checks to avoid this.

NVD (es)

Slack Morphism es una biblioteca cliente asíncrona para Rust. En versiones anteriores a 0.41.0, era posible que la información del cliente Slack OAuth fuera filtrada en los registros de depuración de la aplicación. En la versión 0.41.0 fue introducido un formato de depuración más estricto y seguro para los tipos de secreto OAuth con el fin de reducir la posibilidad de imprimir información confidencial en los registros de la aplicación. Como mitigación, no imprimas/impresiones de peticiones y respuestas para OAuth y configuraciones de clientes en los registros

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31162 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-99j7-mhfh-w84p changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2022-0086 changed 2023-11-08CC0-1.0
NVDCVE-2022-31162 changed 2026-06-17Public domain