Vulnerability
CVE-2026-41676
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.27 to before 0.10.78, Deriver::derive (and PkeyCtxRef::derive) sets len = buf.len() and passes it as the in/out length to EVP_PKEY_derive, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract ignore the incoming *keylen, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL. This vulnerability is fixed in 0.10.78.
103 advisories report this vulnerability, across 9 ecosystems.
Advisories in Chainguard
- CGA-2p76-rwqj-c55g
- CGA-33jq-m85r-572j
- CGA-3cpc-66qq-q488
- CGA-3pr7-cgvf-rw2m
- CGA-4mhh-43j8-pr39
- CGA-4q86-3px6-rxr5
- CGA-4q9p-ff3h-cqqv
- CGA-4xrr-h5hx-2h65
- CGA-6x56-ppf3-rx5x
- CGA-7295-hwp5-pc6p
- CGA-73ph-m72f-g59w
- CGA-7539-h9mh-22cw
- CGA-77vw-h6fq-9j62
- CGA-7xq9-4v9p-qf4p
- CGA-83pq-mv3w-pjp8
- CGA-9ww6-fwfv-ph56
- CGA-c2j7-8jh3-fmcj
- CGA-cfr4-whp3-2crm
- CGA-f449-6pc4-qv5h
- CGA-f4xc-m3ff-8vc5
- CGA-fj3f-f36v-q4x9
- CGA-gj32-cfq8-5587
- CGA-gwj7-hpcr-mmf9
- CGA-hh24-4h55-fq5r
- CGA-hwhf-92q2-vmjx
- CGA-j9mv-74xj-7f54
- CGA-jghx-phrq-2xvx
- CGA-m5wp-3694-3h66
- CGA-m7rx-pm8x-h2fh
- CGA-pfxg-r94p-9fpm
- CGA-q278-h223-7948
- CGA-qr5j-r9jq-5h7r
- CGA-rf8v-h2xw-g62r
- CGA-xh4m-2542-r9pg