CVE-2026-41677: rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length

CVE-2026-41677 · Severity: critical · CVSS 9.1 · Published 2026-04-24

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

Technologies: openssl (crates.io), Rust-Openssl Project Rust-Openssl. Vendors: crates.io, Rust-Openssl Project.

Quick answers

Is CVE-2026-41677 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-41677 being exploited in the wild.
How severe is CVE-2026-41677?
Critical severity, with a CVSS score of 9.1, published 24 April 2026.
Which products and versions are affected?
openssl (crates.io) SEMVER:introduced=0.9.0,fixed=0.10.78.
Is there a fix for CVE-2026-41677?
Yes. openssl (crates.io): upgrade to 0.10.78 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-41677?
Check whether you run openssl (crates.io) or Rust-Openssl Project Rust-Openssl at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • openssl (crates.io): upgrade to 0.10.78 or later
    cargo update -p openssl

Affected products

  • openssl (crates.io) SEMVER:introduced=0.9.0,fixed=0.10.78
  • Rust-Openssl Project Rust-Openssl

Identifiers

  • CVE-2026-41677
  • GHSA-xmgf-hq76-4vx2
  • RUSTSEC-2026-0479

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.