IntelligenceAdvisoriesAdvisory
GHSA-xmgf-hq76-4vx2
rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length
In short
What to know.
- Package
- openssl crates.iofrom 0.9.0 before 0.10.78
- What to do
- Upgrade openssl to 0.10.78 or later.
- Source's rating
- LowNoumen has not assessed it.
- Noumen finding
- NMN-2026-0128Candidate. Severity low, confidence high.
3 December 2026
Source
- OSV record GHSA-xmgf-hq76-4vx2osv.devRetrieved 3 December 2026
Full record
- Identifier
- GHSA-xmgf-hq76-4vx2
- Aliases
- CVE-2026-41677, RUSTSEC-2026-0479
- Severity
- Low, as rated by the source. Noumen has not assessed it.
- CVSS
- 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
- Fixed versions
- 0.10.78
- Published
- 22 April 2026
- Modified
- 10 November 2026
- Source
- OSV record GHSA-xmgf-hq76-4vx2, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| openssl crates.io | from 0.9.0 before 0.10.78 | 0.10.78 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
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.
References
- webgithub.com/rust-openssl/rust-openssl/security/advisories/GHSA-xmgf-hq76-4vx2
- advisorynvd.nist.gov/vuln/detail/CVE-2026-41677
- webgithub.com/rust-openssl/rust-openssl/pull/2605
- webgithub.com/rust-openssl/rust-openssl/commit/5af6895c907773699f37f583f409b862284062b1
- packagegithub.com/rust-openssl/rust-openssl
- webgithub.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78