Vulnerability
CVE-2026-41898
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.24 to before 0.10.78, the FFI trampolines behind SslContextBuilder::set_psk_client_callback, set_psk_server_callback, set_cookie_generate_cb, and set_stateless_cookie_generate_cb forwarded the user closure's returned usize directly to OpenSSL without checking it against the &mut [u8] that was handed to the closure. This can lead to buffer overflows and other unintended consequences. This vulnerability is fixed in 0.10.78.
100 advisories report this vulnerability, across 8 ecosystems.
Advisories in Chainguard
- CGA-27fw-xc7v-2968
- CGA-3jpr-fpr3-4frh
- CGA-6225-cg76-qjg3
- CGA-773h-83gr-jx2h
- CGA-7rrc-7cfg-xv5g
- CGA-8frp-qrmp-7jxv
- CGA-8j8h-3v6c-x459
- CGA-925x-v7rc-4crq
- CGA-97h9-794g-89p7
- CGA-9cqq-gh6x-vj2c
- CGA-9h7j-22xh-jvg5
- CGA-9x89-mp2p-cqmr
- CGA-cm4p-4pxr-xpq6
- CGA-f3vc-vqwc-8p3w
- CGA-f4c3-mjgr-8gw9
- CGA-h3gw-vgp3-7h83
- CGA-h3h3-vfgm-349p
- CGA-h4p5-q549-v6rx
- CGA-hgh4-rvmx-g5c8
- CGA-j95c-gqxm-qpp8
- CGA-jg53-9f9p-2jxw
- CGA-jqcw-8mq2-h6r4
- CGA-mh28-24w3-9w4g
- CGA-mrwm-2pjg-8825
- CGA-q5hm-7m76-q9r6
- CGA-q67w-8p45-wfcm
- CGA-qpfp-5qf5-4wc2
- CGA-qvr3-7wrc-59fg
- CGA-rcpc-wvjj-vff8
- CGA-vr7m-fm82-9c2f
- CGA-w6gx-86mg-5wfw
- CGA-xrrg-grvf-4mpp
- CGA-xvhp-gf37-9v74
- CGA-xxw7-6fpp-24hf
References
- https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c
- https://github.com/rust-openssl/rust-openssl/pull/2607
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3