CVE-2026-41677CWE-125CWE-1284

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

Low · published April 24, 2026

CVSS v4.0
1.7
EPSS
0%
Percentile
20.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
1.7 · LOW
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
EPSS
0.00294 · 20.8th percentile
Weaknesses
CWE-125 · Out-of-bounds Read; CWE-1284 · Improper Validation of Specified Quantity in Input
Published
2026-04-24T17:17Z
EPSS history
Timeline
  • 24 APR 17:17Z
    rust-openssl: Out-of-bounds read in PEM password callback when user callback returns an oversized length
    cvelistv5