Email me

Rust advisories / rustls

Vulnerability MediumRUSTSEC-2026-0346 · rustls

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

Short answerA security vulnerability in the rustls crate: `Debug` impls for client session values expose TLS secrets. Medium severity (CVSS 4.0). Fixed in 0.23.46: update to a fixed version.

Craterustls
TypeVulnerability (crypto-failure)
Affected versionsFrom 0.21.0 before 0.23.46.
Fixed in0.23.46
SeverityMedium, CVSS 4.0
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N
Published2026-10-14
Last changed2026-10-14
Also known asGHSA-c8m5-c952-6cm4

What to do

  1. See which version you have: cargo tree -i rustls (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p rustls. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example rustls = "0.23.46") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for rustls

Full security history of rustls

Up next

Same craterustls: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ