CVE-2025-24898
MEDIUM 6.3CVSS 4.0rust-openssl ssl::select_next_proto use after free
rust-openssl is a set of OpenSSL bindings for the Rust programming language. In affected versions ssl::select_next_proto can return a slice pointing into the server argument's buffer but with a lifetime bound to the client argument. In situations where the sever buffer's lifetime is shorter than the client buffer's, this can cause a use after free. This could cause the server to crash or to return arbitrary memory contents to the client. The crateopenssl version 0.10.70 fixes the signature of ssl::select_next_proto to properly constrain the output buffer's lifetime to that of both input buffers. Users are advised to upgrade. In standard usage of ssl::select_next_proto in the callback passed to SslContextBuilder::set_alpn_select_callback, code is only affected if the server buffer is constructed within the callback.
- Published
- 3 Feb 2025
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-416
- Also known as
- GHSA-rpmj-rpgj-qmpmRUSTSEC-2025-0004
- Sources
- NVDJSONOSV GHSA-rpmj-rpgj-qmpmJSONOSV RUSTSEC-2025-0004JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | openssl | >= 0.10.0, < 0.10.70 | 0.10.70 |
| OSV | crates.io | openssl | >= 0.0.0-0, < 0.10.70 | 0.10.70 |
References
- https://crates.io/crates/openssl · WEB, PACKAGE
- https://github.com/sfackler/rust-openssl/pull/2360 · WEB
- https://github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm · WEB
- https://lists.debian.org/debian-lts-announce/2025/02/msg00009.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-24898 · ADVISORY
- https://github.com/sfackler/rust-openssl/commit/f014afb230de4d77bc79dea60e7e58c2f47b60f2 · WEB
- https://github.com/sfackler/rust-openssl · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0004.html · WEB, ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 3 Feb 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Feb 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Feb 2025)