All vulnerabilities

crates.io

CVE-2026-123609

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

Severity
Medium 4.1
Published
27 Oct 2026
Last changed
10 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.23.46, 0.24.0-dev.2
Exploit chance
0.1% in the next 30 daysEPSS by FIRST, 24 Nov 2026
Weakness
CWE-212
Attack
Needs local access · Only under certain conditions · Needs an administrator account · Needs someone to view a page or file
Attacker can
Read data
CVSS vector
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Also known as
GHSA-c8m5-c952-6cm4, RUSTSEC-2026-0346
Sources
CVE Program, OSV.dev and GitHub

Description

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.

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

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

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
rustlscrates.io · osv:crates.io:rustls
  • Every version before 0.23.46
  • From 0.24.0-dev.1 before 0.24.0-dev.2

About rustls

Downloads in the last 90 days (crates.io)
301,339,089crates.io, 24 Nov 2026
Total downloads (crates.io)
1,163,899,463crates.io, 24 Nov 2026

References