Vulnerability
CVE-2026-41678
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.
101 advisories report this vulnerability, across 9 ecosystems.
Advisories in Chainguard
- CGA-266m-7mr4-2pp5
- CGA-39j4-jpvx-79r7
- CGA-39ph-jp9c-v7cp
- CGA-66q7-5v8c-m6rq
- CGA-67qp-87w2-jgj7
- CGA-7p5m-444g-326h
- CGA-7pv2-wc8g-2hmh
- CGA-7qxm-rmjj-mxw4
- CGA-896w-xxfx-h8gx
- CGA-9f2c-vh76-gmfw
- CGA-9mrf-6c9f-fhwp
- CGA-9vf8-mwh7-857m
- CGA-cmxm-27f8-68rv
- CGA-f7hg-rjhq-gmcm
- CGA-gqff-hpcx-3wfm
- CGA-hq28-fpc6-7qrw
- CGA-hxwv-47q6-3r4f
- CGA-j5x7-rrv9-q2xm
- CGA-jhh8-whh8-6j2w
- CGA-m2rg-fgr4-x47g
- CGA-mf4h-rwgj-6rp2
- CGA-mfw7-f77q-896f
- CGA-mh6x-83fx-735q
- CGA-mhc6-4cmh-8xph
- CGA-p77p-8c9q-qj95
- CGA-q868-5jpf-5c39
- CGA-qcq7-4w24-x7j7
- CGA-qj3m-7cgc-43f9
- CGA-r4vv-g96m-q25w
- CGA-r825-pfh2-hpc5
- CGA-vvp9-8qm9-7cvg
- CGA-wg6v-wr3r-xmvc
- CGA-wmr8-q5pp-3758
- CGA-x32x-r46q-39xq