Advisory

RUSTSEC-2026-0463

Also known as: CVE-2026-41678, GHSA-8c75-8mhr-p7r9

Summary

Out-of-bounds write in aes::unwrap_key

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-04-19 12:00 UTC
Modified
2026-11-09 16:15 UTC

Affected packages and fixes

openssl

crates.io · All systems

Affected

  • introduced 0.10.24, fixed 0.10.78 (semver)

Fixed versions

0.10.78

Fix

  • Fixed version 0.10.78
    cargo update -p openssl --precise 0.10.78

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences