Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rustls
  4. ›
  5. GHSA-c8m5-c952-6cm4

GHSA-c8m5-c952-6cm4: Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs

October 27, 2026

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 →

Affected versions

All versions before 0.23.46, all versions starting from 0.24.0-dev.1 before 0.24.0-dev.2

Fixed versions

  • 0.23.46
  • 0.24.0-dev.2

Solution

Upgrade to versions 0.23.46, 0.24.0-dev.2 or above.

Impact 4 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer

Source file

cargo/rustls/GHSA-c8m5-c952-6cm4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:45 +0000.