Buffer Over-read Vulnerability in rust-openssl by Rust
CVE-2026-41677
1.7LOW
What is CVE-2026-41677?
A security flaw exists in the rust-openssl library, specifically affecting versions from 0.9.0 up to, but not including, 0.10.78. The issue arises from the *_from_pem_callback APIs, which fail to properly validate the length returned by a user's callback function. This negligence can lead to scenarios where the password callback returns a value that exceeds the allocated buffer size, resulting in potential over-read vulnerabilities. It is important to note that OpenSSL 3.x is immune to this vulnerability. The issue has been addressed in the updated version 0.10.78.
Affected Version(s)
rust-openssl >= 0.9.0, < 0.10.78
