{"id":"GHSA-2mjx-qc3c-rqvc","kind":"vulnerability","aliases":["GHSA-2mjx-qc3c-rqvc"],"related":[],"title":"Rustls: TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries","description":"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.\n\nThis issue affects rustls versions 0.23.13 through 0.23.44 inclusive.\n\n# Original report\n### Summary\nRustls (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.\n\nThis is very similar to Go's CVE-2025-61730 fixed in https://github.com/golang/go/commit/5046bdf8a612b35a2c1a9e168054c1d5c65e7dd7\n\n### Details\nIt 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.\n\nThis is insufficient per RFC 8446 section 5.1's\n\n> 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, and KeyUpdate messages can immediately precede a key change, implementations MUST send these messages in alignment with a record boundary.\n\n### Impact\nAn on path attacker can inject plaintext messages that are accepted.\n\n### Tool Use Disclosure\nThis was discovered by a new TLS/DTLS test suite currently under construction. The specific testcase was inspired by the Go CVE. Other tested implementations (Botan, OpenSSL, BoringSSL, Go, wolfSSL) reject this protocol flow. Daybreak Blue reviewed the rustls code to identify probable root cause.","summary":"Rustls accepted TLS 1.3 handshake messages sent in plaintext when they followed a key-changing message in the same record, violating RFC 8446. A network-position attacker can inject plaintext handshake messages that rustls accepts, though the authenticated transcript still prevents altering or completing a handshake.","severity":"medium","cvss":5.3,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"rustls","fixed":["0.23.45"],"affected":">= 0.23.13, < 0.23.45","ecosystem":"cargo"}],"ecosystems":["cargo"],"tags":["cargo","package","rust","rustls"],"not_affected_if":["default-config"],"how_to_check":"- Run `cargo tree -i rustls` in the project to find the resolved rustls version.\n- Check `Cargo.lock` for the `rustls` entry and confirm whether it is `0.23.13` through `0.23.44`.","fix":"- Upgrade the `rustls` crate to `0.23.45` or later and rebuild.\n- Run `cargo update -p rustls` if the version is pinned in `Cargo.lock`.","status":"open","published_at":"2026-10-05T23:30:17+00:00","first_seen_at":"2026-10-27T15:18:30+00:00","triaged_at":"2026-10-27T15:18:56+00:00","updated_at":"2026-10-27T15:18:56+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-27T15:18:56Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade the `rustls` crate to `0.23.45` or later and rebuild.\n- Run `cargo update -p rustls` if the version is pinned in `Cargo.lock`.","reach":"network","title":"Rustls: TLS 1.3 handshake messages accepted across encryption level boundaries","impact":"low","summary":"Rustls accepted TLS 1.3 handshake messages sent in plaintext when they followed a key-changing message in the same record, violating RFC 8446. A network-position attacker can inject plaintext handshake messages that rustls accepts, though the authenticated transcript still prevents altering or completing a handshake.","category":"package","nicknames":[],"who_cares":["rust","rustls","cargo"],"confidence":0.7,"needs_auth":"no","worst_case":"On-path attacker injects plaintext handshake messages that rustls accepts","analyst_note":"","how_to_check":"- Run `cargo tree -i rustls` in the project to find the resolved rustls version.\n- Check `Cargo.lock` for the `rustls` entry and confirm whether it is `0.23.13` through `0.23.44`.","needs_analyst":false,"not_affected_if":["default-config"],"who_is_affected":"Applications that use rustls 0.23.13 through 0.23.44 as a TLS client or server, where a network-position attacker can sit on the path of the connection. Systems pinned to earlier or later rustls releases are outside the stated range; the sources do not describe any other configuration requirement.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"medium"},"cost_usd":0.000678,"input_tokens":4003,"output_tokens":556,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2025':200C '-61730':201C '/golang/go/commit/5046bdf8a612b35a2c1a9e168054c1d5c65e7dd7':206C '0.23.13':147C '0.23.44':149C,157C '1.3':3A,30B,78C,176C '2mjx':14A,19A '5.1':251C '8446':50B,249C 'accept':7A,28B,63B,76C,173C,326C 'across':8A 'affect':144C 'alert':288C 'align':211C,214C,271C,310C 'alter':70B,115C 'appear':160C,209C 'attack':55B,110C,319C 'authent':66B,104C 'blue':364C 'boringssl':356C 'botan':354C 'boundari':11A,275C,314C 'buffer':223C,243C 'cannot':111C 'cargo':23B 'caus':373C 'chang':42B,93C,259C,270C,303C 'clienthello':291C 'code':368C 'complet':72B,117C,225C,237C 'connect':141C,283C 'consid':212C 'construct':341C 'could':127C 'current':339C 'cve':199C,350C 'daybreak':363C 'defram':210C 'detail':207C 'disclosur':329C 'discov':332C 'effect':122C 'encrypt':9A,85C,134C 'encryptedextens':182C,239C 'endofearlydata':292C 'finish':294C 'fix':202C 'flight':178C 'flow':362C 'follow':38B,89C 'ghsa':13A,18A 'ghsa-2mjx-qc3c-rqvc':12A,17A 'github.com':205C 'github.com/golang/go/commit/5046bdf8a612b35a2c1a9e168054c1d5c65e7dd7':204C 'go':197C,349C,357C 'handshak':4A,31B,59B,74B,79C,100C,119C,129C,232C,253C 'identifi':370C 'immedi':266C,299C 'impact':315C 'implement':260C,304C,353C 'inclus':150C 'incorrect':6A 'inject':57B,321C 'inspir':346C 'instal':230C 'insuffici':246C 'issu':143C,163C 'key':41B,92C,233C,258C,269C,302C 'key-chang':40B,91C 'keyupd':296C 'latest':165C 'level':10A,86C 'long':216C 'master':166C 'messag':5A,32B,43B,60B,80C,94C,130C,219C,254C,265C,287C,297C,308C,323C 'must':255C,261C,280C,305C 'network':53B,108C 'network-posit':52B,107C 'new':335C 'openssl':355C 'origin':151C 'pack':184C 'packag':24B 'path':318C 'peer':126C 'per':247C 'plaintext':35B,58B,136C,181C,238C,322C 'posit':54B,109C 'practic':121C 'preced':267C,300C 'prevent':69B 'probabl':371C 'process':227C 'protocol':361C 'pull':235C 'qc3c':15A,20A 'record':47B,98C,188C,274C,313C 'reject':139C,359C 'remain':220C 'report':152C 'review':365C 'rfc':49B,248C 'root':372C 'rqvc':16A,21A 'rust':25B 'rustl':1A,26B,27B,62B,75C,138C,145C,154C,226C,367C 'rustls':22A 'section':250C 'send':128C,306C 'sent':33B,81C 'server':177C 'serverhello':191C,229C,293C 'similar':195C 'span':257C 'specif':343C 'still':68B,103C,161C 'suit':338C 'summari':153C 'termin':281C 'test':155C,171C,337C,352C 'testcas':344C 'though':64B,167C 'tls':2A,29B,77C,175C 'tls/dtls':336C 'tool':327C 'transcript':67B,101C 'unexpect':286C 'use':112C,328C 'verifi':262C 'version':146C,156C 'violat':48B 'without':137C 'wolfssl':358C 'wrong':84C","nicknames":[],"mitigations":[],"who_affected":"Applications that use rustls 0.23.13 through 0.23.44 as a TLS client or server, where a network-position attacker can sit on the path of the connection. Systems pinned to earlier or later rustls releases are outside the stated range; the sources do not describe any other configuration requirement.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-05T23:30:17+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-2mjx-qc3c-rqvc","url":"https://github.com/advisories/GHSA-2mjx-qc3c-rqvc","severity":"medium","published_at":"2026-10-05T23:30:17+00:00","modified_at":"2026-10-27T15:14:39+00:00","first_seen_at":"2026-10-27T15:18:30+00:00","fetched_at":"2026-10-27T15:18:30+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}