rustls is vulnerable to Incomplete Internal State Distinction
53
Medium Risk
Rustls's handshake deframer tracks whether previously buffered handshake data is aligned, but the check only looked at whether the current fragment span was incomplete, not whether any pending handshake message, complete or partial, still remained. A peer that coalesces record layer messages could exploit that gap to have a handshake message processed at the wrong encryption level, letting content that should still require the negotiated handshake keys pass through as if it belonged to an earlier, unencrypted flow. The handshake transcript hash still binds every exchanged message, so an attacker cannot forge or complete a handshake this way, but rustls accepted improperly encrypted or misplaced messages that it should have rejected. The fix redefines alignment to require no pending handshake messages at all, closing the gap.
You are affected if you are using a version that falls within the vulnerable range.
rustls is vulnerable to Incomplete Internal State Distinction in versions 0.23.13 - 0.23.44.
Upgrade the rustls library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.