Advisory

GHSA-c8m5-c952-6cm4

Also known as: CVE-2026-123609, RUSTSEC-2026-0346

Summary

Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs

Details

Summary

Formatting a client session value with Debug exposes its TLS 1.2 master secret or TLS 1.3 resumption PSK. A custom session store that logs these values can disclose keys to readers of the logs. Ordinary connection and built-in cache diagnostics remain redacted, and the session-store interface already warns that its values are sensitive.

Details

Derived formatters traverse the session's secret-bearing fields. This conflicts with the project's explicit key-material redaction policy.

Proof of concept

Custom ClientSessionStore implementations could leak secret data by using the provided Tls12ClientSessionValue or Tls13ClientSessionValue in a way that triggers its implementation of the Debug trait.

Impact

Such store implementations could leak the master secret for the TLS connection.

Acknowledgement
Thanks to OpenAI [[email protected]](mailto:[email protected]) for the disclosure.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-27 16:08 UTC
Modified
2026-11-08 10:55 UTC

Affected packages and fixes

rustls

crates.io · All systems

Affected

  • introduced 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

rustls

crates.io · All systems

Affected

  • introduced 0.24.0-dev.1, fixed 0.24.0-dev.2 (semver)

Fixed versions

0.24.0-dev.2

Fix

  • Fixed version 0.24.0-dev.2
    cargo update -p rustls --precise 0.24.0-dev.2

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences