rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length
Low severity
GitHub Reviewed
Published
Apr 19, 2026
in
rust-openssl/rust-openssl
•
Updated Apr 27, 2026
Description
Published to the GitHub Advisory Database
Apr 22, 2026
Reviewed
Apr 22, 2026
Published by the National Vulnerability Database
Apr 24, 2026
Last updated
Apr 27, 2026
The
*_from_pem_callbackAPIs did not validate the length returned by the user's callback. A password callback that returns a value larger than the buffer it was given can cause some versions of OpenSSL to over-read this buffer. OpenSSL 3.x is not affected by this.References