ADVISORIES

RustSec Advisory Database

RUSTSEC-2026-0477

Buffer overflow with AES key wrap with padding in `cipher_update_inplace`

Details

CipherCtxRef::cipher_update_inplace had the same sizing error that 0.10.79 fixed in cipher_update (GHSA-xv59-967r-8726); that fix missed this method. It required room for inlen + block_size bytes, but with the AES key-wrap-with-padding ciphers OpenSSL writes up to 7 more bytes when inlen is not a multiple of 8, past the end of data.

Only users of the AES key-wrap-with-padding ciphers are affected. cipher_update_inplace was added in 0.10.50, and 0.10.80 applies the corrected size check to it.

Affected packages

EcosystemPackageAffected versions
crates.ioopenssl
From 0.10.50 before 0.10.80 (fixed in 0.10.80)

References