GHSA-c8m5-c952-6cm4Medium· 4.0▾ SunlitRustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
▾ Sunlit zone — Low / medium · no exploitation signal
impact 22 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
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.
Derived formatters traverse the session's secret-bearing fields. This conflicts with the project's explicit key-material redaction policy.
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.
Such store implementations could leak the master secret for the TLS connection.
Thanks to OpenAI [email protected] for the disclosure.
rustls < 0.23.46rustls >= 0.24.0-dev.1, < 0.24.0-dev.2Upgrade to a patched release:
rustls 0.23.46rustls 0.24.0-dev.2Connected by shared product, vendor, weakness, or advisory.
GHSA-h2v8-394m-p7vvLow· 3.7Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.
GHSA-vp88-798v-h67fLow· 2.3rustls: ECH rejection can expose buffered application data to authenticated outer server before `ech_required` alert
GHSA-w44r-93j7-qv28Low· 3.7rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share
RUSTSEC-2026-0346Medium· 4.0`Debug` impls for client session values expose TLS secrets
GHSA-2mjx-qc3c-rqvcMedium· 5.3Rustls: TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
RUSTSEC-2026-0347Low· 2.3Buffered application data sent to outer server after ECH rejection