Advisory

RUSTSEC-2026-0346

Also known as: CVE-2026-123609, GHSA-c8m5-c952-6cm4

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.

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

Severity

Medium Basis: CVSS v3 score 4, vector CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N

Dates

Published
2026-10-14 12:00 UTC
Modified
2026-11-09 09:21 UTC

Affected packages and fixes

rustls

crates.io · All systems

Affected

  • introduced 0.21.0, fixed 0.23.46 (semver)

Fixed versions

0.23.46

Fix

  • Fixed version 0.23.46
    cargo update -p rustls --precise 0.23.46

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences