Vulnerability GHSA-c8m5-c952-6cm4

Medium Risk
MEDIUM RISK
CVSS Score: 4.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
12 days ago
October 27, 2026 at 04:08 PM UTC
Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
<0.23.46, >=0.24.0-dev.1 <0.24.0-dev.2
<0.23.46, >=0.24.0-dev.1 <0.24.0-dev.2

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 [email protected] for the disclosure.

Impacted packages

Timeline

Published
12 days ago
October 27, 2026 at 04:08 PM UTC
Fixed (0.24.0-dev.2)
25 days ago
October 14, 2026 at 05:59 AM UTC
Fixed (0.23.46)
25 days ago
October 14, 2026 at 09:54 AM UTC
Last Modified
12 hours ago
November 08, 2026 at 10:55 AM UTC