Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceAdvisoriesAdvisory

GHSA-c8m5-c952-6cm4

Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs

In short

What to know.

Package
  • rustls crates.iofrom 0.24.0-dev.1 before 0.24.0-dev.2
What to do
Upgrade rustls to 0.24.0-dev.2 or later.
Source's rating
ModerateNoumen has not assessed it.
Noumen finding
NMN-2026-0164Candidate. Severity unknown, confidence high.

3 December 2026

Source

  1. OSV record GHSA-c8m5-c952-6cm4osv.devRetrieved 3 December 2026

Full record

Identifier
GHSA-c8m5-c952-6cm4
Aliases
CVE-2026-123609, RUSTSEC-2026-0346
Severity
Moderate, as rated by the source. Noumen has not assessed it.
CVSS
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N
Fixed versions
0.23.46, 0.24.0-dev.2
Published
27 October 2026
Modified
8 November 2026
Source
OSV record GHSA-c8m5-c952-6cm4, retrieved 3 December 2026, 00:00 UTC

Affected packages and ranges

Affected packages
PackageAffected versionsFixed in
rustls
crates.io
from 0.24.0-dev.1 before 0.24.0-dev.20.24.0-dev.2

Affected means inside a published range, not that the code path is reachable in your project.

Details, as published by the source
As published by the source
### 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](https://github.com/rustls/rustls/blob/99f2358cae2954837dbb866faf6727de75489ab9/SECURITY.md#boundary-public-api). ### 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](mailto:OutboundDisclosures@openai.com) for the disclosure.