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

Open
opened 2026-10-15 00:08:54 +00:00 by gitea-actions · 0 comments

Debug impls for client session values expose TLS secrets

Details
Package rustls
Version 0.23.45
URL https://github.com/rustls/rustls/pull/3299
Date 2026-10-14
Patched versions >=0.23.46
Unaffected versions <0.21.0

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.

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

See advisory page for additional details.

> `Debug` impls for client session values expose TLS secrets | Details | | | ------------------- | ---------------------------------------------- | | Package | `rustls` | | Version | `0.23.45` | | URL | [https://github.com/rustls/rustls/pull/3299](https://github.com/rustls/rustls/pull/3299) | | Date | 2026-10-14 | | Patched versions | `>=0.23.46` | | Unaffected versions | `<0.21.0` | 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&#39;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. See [advisory page](https://rustsec.org/advisories/RUSTSEC-2026-0346.html) for additional details.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Dreaded_X/automation_rs#18