CVE-2026-41677: rust-openssl: Out-of-bounds read in PEM password callback when user callback returns an oversized length

Published Apr 22, 2026
·
Updated

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.0 to before 0.10.78, the frompemcallback 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. This vulnerability is fixed in 0.10.78.

Other sources

The frompemcallback 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.

GitHub

Affected Software

2 affected componentsFixes available
rust/openssl>=0.9.0<0.10.78
0.10.78
Rust-openssl Project Rust-openssl Rust>=0.9.0<0.10.78

Event History

Apr 22, 2026
Advisory Published
via GitHub·09:20 PM
Data Sourced
via GitHub·09:20 PM
DescriptionWeaknessAffected Software
Apr 24, 2026
CVE Published
via MITRE·05:17 PM
Data Sourced
via MITRE·05:17 PM
DescriptionWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-41677?

CVE-2026-41677 has a moderate severity level due to the potential for buffer over-read vulnerabilities.

2

How do I fix CVE-2026-41677?

To fix CVE-2026-41677, upgrade the OpenSSL package to version 0.10.79 or later.

3

Which versions are affected by CVE-2026-41677?

CVE-2026-41677 affects OpenSSL versions from 0.9.0 up to and including 0.10.78.

4

Does CVE-2026-41677 affect OpenSSL 3.x?

No, CVE-2026-41677 does not affect OpenSSL 3.x versions.

5

What type of issue does CVE-2026-41677 involve?

CVE-2026-41677 involves an improper validation of the length returned by user callbacks, leading to potential buffer over-read.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203