LOW
GHSA-xmgf-hq76-4vx2
rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length
Details
The `*_from_pem_callback` APIs 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/openssl
Introduced in:
0.9.0Fixed in: 0.10.78Upgrade openssl to 0.10.78 or newer (ecosystem crates.io).
References
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xmgf-hq76-4vx2[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-41677[ADVISORY]
- https://github.com/rust-openssl/rust-openssl/pull/2605[WEB]
- https://github.com/rust-openssl/rust-openssl/commit/5af6895c907773699f37f583f409b862284062b1[WEB]
- https://github.com/rust-openssl/rust-openssl[PACKAGE]
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78[WEB]