Out-of-bounds write in `aes::unwrap_key`
Historical advisory saved 9 Nov 2026 17:04:58 UTC. The publisher may have updated it since then. Latest advisory.
osv · RUSTSEC-2026-0463
Published`openssl::aes::unwrap_key` guarded the size of its output buffer with an inverted assertion, `out.len() + 8 <= in_.len()`. Instead of rejecting an `out` buffer too small for the unwrapped key, it rejected buffers larger than needed and accepted buffers that were too small. When `out` is shorter than `in_.len() - 8` bytes, the underlying `AES_unwrap_key` call writes past the end of `out`. This out-of-bounds write is reachable from a safe function; applications that let untrusted input influence the input or output buffer sizes are exposed. The function was added in 0.10.24. 0.10.78 corrects the assertion, so an output buffer that is too small now causes a panic before anything is written.
- Source published
- 19 Apr 2026 12:00:00 UTC
- Source modified
- 9 Nov 2026 16:15:02 UTC
- Saved here
- 9 Nov 2026 17:04:58 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.