# RUSTSEC-2026-0346: Debug impls for client session values expose TLS secrets

- Database: RustSec
- Published: 2026-10-14
- Modified: 2026-11-09

## Tracked as

- [CVE-2026-123609](https://cve.now/CVE-2026-123609.md): Rustls secret key exposure in client session debug output

## Also published as

- [GHSA-C8M5-C952-6CM4](https://cve.now/GHSA-C8M5-C952-6CM4.md) (GitHub)

## Affected versions

- rustls (crates.io): from 0.21.0, fixed in 0.23.46

## Description

The `Debug` implementations of `Tls12ClientSessionValue` and
`Tls13ClientSessionValue` were derived, and so included the TLS 1.2 master
secret or TLS 1.3 resumption PSK in their output.

Custom `ClientSessionStore` implementations that format these values with
`Debug` (for example, when logging) could disclose these secrets to readers of
the logs. This conflicts with rustls's
[key-material redaction policy](https://github.com/rustls/rustls/blob/99f2358cae2954837dbb866faf6727de75489ab9/SECURITY.md#boundary-public-api).

Ordinary connection and built-in session cache `Debug` output is redacted and
is not affected.

## References

- https://crates.io/crates/rustls
- https://rustsec.org/advisories/RUSTSEC-2026-0346.html
- https://github.com/rustls/rustls/pull/3299

Page: https://cve.now/RUSTSEC-2026-0346

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
