Skip to content
Heist/ feed
MediumFix available

Rustls: TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries

Type: advisorySource: OSV1 source record

Rustls accepted TLS 1.3 handshake messages sent at the wrong encryption level when they followed a key-changing message in the same record. The handshake transcript is still authenticated, so a network-position attacker cannot use this to alter or complete a handshake; the practical effect is that a peer could send handshake messages that should be encrypted in plaintext without rustls rejecting the connection. This issue affects rustls versions 0.23.13 through 0.23.44 inclusive. # Original report ### Summary Rustls (tested version 0.23.44, and it appears still an issue on latest master though I have not tested this) accepts a TLS 1.3 server flight where a plaintext EncryptedExtensions is packed into the same record as the ServerHello. This is very similar to Go's CVE-2025-61730 fixed in https://github.com/golang/go/commit/5046bdf8a612b35a2c1a9e168054c1d5c65e7dd7 ### Details It appears `Deframer::aligned` considers itself aligned as long as all messages remaining in the buffer are complete. Rustls processes the ServerHello, installs the handshake keys, then pulls the complete (plaintext) EncryptedExtensions out of the buffer. This is insufficient per RFC 8446 section 5.1's > Handshake messages MUST NOT span key changes. Implementations MUST verify that all messages immediately preceding a key change align with a record boundary; if not, then they MUST terminate the connection with an "unexpected_message" alert. Because the ClientHello, EndOfEarlyData, ServerHello, Finished, a

Announced Source revision 1
Original source ↗

GHSA-2mjx-qc3c-rqvc

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-2mjx-qc3c-rqvc

rustls

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
0.23.45

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0.23.13"
          },
          {
            "fixed": "0.23.45"
          }
        ]
      }
    ],
    "package": {
      "name": "rustls",
      "purl": "pkg:cargo/rustls",
      "ecosystem": "crates.io"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-2mjx-qc3c-rqvc/GHSA-2mjx-qc3c-rqvc.json"
    }
  }
]

Publisher severity

medium

Source reference: /severity/0/score

Event
#85956 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement