4.1medium
Rustls before 0.23.46 and 0.24.0-dev.1 before 0.24.0-dev.2 Secret Exposure via Debug
- Severity
- 4.1medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-c8m5-c952-6cm4RUSTSEC-2026-0346
Description
Rustls before 0.23.46 and 0.24.0-dev.1 before 0.24.0-dev.2 contains an information disclosure vulnerability where derived Debug formatting of client session values exposes secret key material. Custom ClientSessionStore implementations that log Tls12ClientSessionValue or Tls13ClientSessionValue can leak TLS 1.2 master secrets or TLS 1.3 resumption PSKs to log readers.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rustls rustls | before 0.23.46, from 0.24.0-dev.1 before 0.24.0-dev.2 Not affected: 0.23.46, 0.24.0-dev.2 | CVE List |
| rustls (crates.io) | before 0.23.46, from 0.24.0-dev.1 before 0.24.0-dev.2, from 0.21.0 before 0.23.46 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| VulnCheck | 4.1medium CVSS:4.0 | 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 |
| VulnCheck | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N |
| RustSec Advisory Database | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Rustls before 0.23.46 and 0.24.0-dev.1 before 0.24.0-dev.2 contains an information disclosure vulnerability where derived Debug formatting of client session values exposes secret key material. Custom ClientSessionStore implementations that log Tls12ClientSessionValue or Tls13ClientSessionValue can leak TLS 1.2 master secrets or TLS 1.3 resumption PSKs to log readers.
GitHub Advisory Database
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 OutboundDisclosures@openai.com for the disclosure.
RustSec Advisory Database
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-123609 changed 2026-11-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c8m5-c952-6cm4 changed 2026-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0346 changed 2026-11-09 | CC0-1.0 |
| NVD | CVE-2026-123609 changed 2026-11-12 | Public domain |