CVE-2026-123609: Rustls session Debug formatting exposes TLS secret keys

CVE-2026-123609 · Severity: medium · CVSS 4 · Published 2026-11-08

Rustls is a TLS library used to encrypt network communications. When application developers use custom logging with Rustls session data, the Debug formatting accidentally exposes sensitive cryptographic keys (TLS master secrets and resumption keys) to anyone reading the logs. This only affects custom implementations that specifically log session values, not normal Rustls usage.

Technologies: Rustls. Vendors: Rustls.

Quick answers

Is CVE-2026-123609 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-123609 being exploited in the wild.
How severe is CVE-2026-123609?
Medium severity, with a CVSS score of 4, published 8 November 2026.
Which products and versions are affected?
Rustls before 0.23.46 and 0.24.0-dev.1 before 0.24.0-dev.2.
Is there a fix for CVE-2026-123609?
Yes: fixed in Rustls 0.23.46, 0.24.0-dev.2 and later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-123609 attacked?
It is attacked with local access.
Am I affected by CVE-2026-123609?
Check whether you run Rustls at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: Rustls 0.23.46, 0.24.0-dev.2 and later

Technical details

The vulnerability stems from derived Debug trait implementations on Tls12ClientSessionValue and Tls13ClientSessionValue that expose secret key material (TLS 1.2 master secrets and TLS 1.3 resumption PSKs). Custom ClientSessionStore implementations that log these session values will leak these secrets. The attack requires local access and a developer-written logging implementation that uses Debug formatting on session objects.

Affected products

  • Rustls Rustls before 0.23.46 and 0.24.0-dev.1 before 0.24.0-dev.2

Timeline

  • 2026-10-14: disclosed
  • 2026-11-08: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.