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

- Severity: Low 1.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-04-19T12:00:00.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-xmgf-hq76-4vx2, RUSTSEC-2026-0479
- Weaknesses: CWE-125, CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rust-openssl rust-openssl: >= 0.9.0, < 0.10.78
- openssl (crates.io): from 0.9.0 before 0.10.78
- rust-openssl_project rust-openssl: from 0.9.0 before 0.10.78

## Every score

- GitHub_M: CVSS:4.0 1.7 Low `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`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xmgf-hq76-4vx2> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41677> (advisory)
- <https://github.com/rust-openssl/rust-openssl/pull/2605> (web)
- <https://github.com/rust-openssl/rust-openssl/commit/5af6895c907773699f37f583f409b862284062b1> (web)
- <https://github.com/rust-openssl/rust-openssl> (package)
- <https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78> (web)
- <https://crates.io/crates/openssl> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0479.html> (advisory)

## Sources

- CVE List: [CVE-2026-41677](https://www.cve.org/CVERecord?id=CVE-2026-41677), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-xmgf-hq76-4vx2](https://github.com/advisories/GHSA-xmgf-hq76-4vx2), CC-BY-4.0, modified 2026-11-10
- RustSec Advisory Database: [RUSTSEC-2026-0479](https://rustsec.org/advisories/RUSTSEC-2026-0479.html), CC0-1.0, modified 2026-11-10
- NVD: [CVE-2026-41677](https://nvd.nist.gov/vuln/detail/CVE-2026-41677), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41677 · Whole record: https://cve.day/CVE-2026-41677.json · Rebuilt by cve.day 2026-11-25T22:59:19.552Z
