GHSA-c8m5-c952-6cm4

Suggest an improvement
Source
https://github.com/advisories/GHSA-c8m5-c952-6cm4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-c8m5-c952-6cm4/GHSA-c8m5-c952-6cm4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c8m5-c952-6cm4
Aliases
Downstream
CGA (74)
CLEANSTART (1)
MINI (2)
Published
2026-10-27T16:08:47Z
Modified
2026-11-08T10:55:36Z
Severity
  • 4.0 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
Details

Summary

Formatting a client session value with Debug exposes its TLS 1.2 master secret or TLS 1.3 resumption PSK. A custom session store that logs these values can disclose keys to readers of the logs. Ordinary connection and built-in cache diagnostics remain redacted, and the session-store interface already warns that its values are sensitive.

Details

Derived formatters traverse the session's secret-bearing fields. This conflicts with the project's explicit key-material redaction policy.

Proof of concept

Custom ClientSessionStore implementations could leak secret data by using the provided Tls12ClientSessionValue or Tls13ClientSessionValue in a way that triggers its implementation of the Debug trait.

Impact

Such store implementations could leak the master secret for the TLS connection.

Acknowledgement

Thanks to OpenAI OutboundDisclosures@openai.com for the disclosure.

Database specific
{
    "cwe_ids": [
        "CWE-212"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-27T16:08:47Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

crates.io / rustls

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.23.46

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-c8m5-c952-6cm4/GHSA-c8m5-c952-6cm4.json"

crates.io / rustls

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.24.0-dev.1
Fixed
0.24.0-dev.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-c8m5-c952-6cm4/GHSA-c8m5-c952-6cm4.json"