{"id":"CVE-2026-41678","published":"2026-04-24T17:18:27Z","modified":"2026-04-24T18:33:14Z","title":"rust-openssl: Incorrect bounds assertion in aes key wrap","vendor":"rust-openssl","product":"rust-openssl","tier":"tail","description":{"text":"rust-openssl provides OpenSSL bindings for the Rust programming language.  From  to before 0.10.78, aes::unwrap_key() contains an incorrect assertion: it checks that out.len() + 8 <= in_.len(), but this condition is reversed. The intended invariant is out.len() >= in_.len() - 8, ensuring the output buffer is large enough. Because of the inverted check, the function only accepts buffers at or below the minimum required size and rejects larger ones. If a smaller buffer is provided the function will write past the end of out by in_.len() - 8 - out.len() bytes, causing an out-of-bounds write from a safe public function. This vulnerability is fixed in 0.10.78.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00463,"percentile":0.32171,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-8c75-8mhr-p7r9","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":6.43},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"rust-openssl","affectedVersions":[{"vendor":"rust-openssl","product":"rust-openssl","versions":[">= 0.10.24, < 0.10.78"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-24T18:27:46.176271Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"openssl","vulnerableRanges":[">=0.10.24, <0.10.78"],"patched":["0.10.78"],"from":["GHSA-8c75-8mhr-p7r9","RUSTSEC-2026-0463"],"provenance":"source"}],"summary":{"text":"The rust-openssl crate, which provides OpenSSL bindings for Rust, has an inverted bounds assertion in its aes::unwrap_key() function, so a buffer smaller than required causes an out-of-bounds write past the end of the output buffer from a safe public function. An attacker can trigger this over the network with no authentication, no user interaction and no special configuration, by supplying input that leads to the function being called with an undersized output buffer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:44Z"},"euvd":{"id":"EUVD-2026-25584","exploited":false,"provenance":"source"}}