GHSA-c8m5-c952-6cm4: Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
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.
References
- github.com/advisories/GHSA-c8m5-c952-6cm4
- github.com/rustls/rustls/commit/dcdb9464d376f45f42a94a5f837cda1506449f23
- github.com/rustls/rustls/commit/f5f7bf5078a7edcbd81a9e82a97f2bd14dc1c855
- github.com/rustls/rustls/pull/3299
- github.com/rustls/rustls/pull/3354
- github.com/rustls/rustls/releases/tag/v/0.23.46
- github.com/rustls/rustls/security/advisories/GHSA-c8m5-c952-6cm4
- rustsec.org/advisories/RUSTSEC-2026-0346.html
Code Behaviors & Features
Detect and mitigate GHSA-c8m5-c952-6cm4 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →