Skip to content

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

Open

Description

@github-actions
Details
Package rustls
Version 0.23.41
URL rustls/rustls#3299
Patched Versions >=0.23.46
Unaffected Versions <0.21.0
Aliases GHSA-c8m5-c952-6cm4

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions