RUSTSEC-2026-0346

    Dashboard / Vulnerabilities / RUSTSEC-2026-0346

    RUSTSEC-2026-0346

    Published: 14 Oct 2026Last Modified: 9 Nov 2026

    Summary: `Debug` impls for client session values expose TLS secrets

    Details: 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.

    Affected packages

    Package

    Name: rustls

    Purl: pkg:cargo/rustls

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.21.0
    Fixed -0.23.46

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High