CVE-2025-24898 json
rust openssl ssl::select_next_proto use after free
published 2025-02-02 21 mo ago modified 2026-10-12 27 d ago also EUVD-2025-0223 , GHSA-rpmj-rpgj-qmpm , RUSTSEC-2025-0004
- cvss
- 6.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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 crate`openssl` 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.
Patch / fix
- crates.io openssl 0.10.70
- rust-openssl_project rust-openssl 0.10.70
- rust-openssl Debian 14, Debian 13 0.10.70-1
debian advisories DEBIAN-CVE-2025-24898
- rust-openssl Ubuntu Pro 20.04 LTS 0.10.23-1ubuntu0.1~esm1
- rust-openssl Ubuntu Pro 22.04 LTS 0.10.36-1ubuntu0.1~esm1
- rust-openssl Ubuntu Pro 24.04 LTS 0.10.57-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2025-24898
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python3.12-cryptography RHEL 9 41.0.7-2.el9
- keylime-agent-rust RHEL 9 0.2.2-2.el9
- rust-bootupd RHEL 9 0.2.27-3.el9
- bootupd RHEL 9 0.2.27-3.el9
- bootc RHEL 9 1.1.6-3.el9_6
- system-reinstall-bootc RHEL 9 1.1.6-3.el9_6
- rpm-ostree RHEL 9 2025.5-1.el9
- rpm-ostree-libs RHEL 9 2025.5-1.el9
red hat advisories RHSA-2025:7317RHSA-2025:7313RHSA-2025:7241RHSA-2025:7160RHSA-2025:7147
- libkrun Linux Micro 6.1 1.4.10-slfo.1.1_2.1
- libkrun Linux Micro 6.0 1.4.10-2.1
suse advisories SUSE-SU-2026:23070-1SUSE-SU-2026:23036-1
- libkrun openSUSE Leap 16.0 1.4.10-160000.3.1
- obs-service-cargo openSUSE Tumbleweed 4.5.0-2.1
opensuse advisories openSUSE-SU-2026:21464-1openSUSE-SU-2025:14814-1
- rpm-ostree AlmaLinux 9 2025.5-1.el9
- rpm-ostree-libs AlmaLinux 9 2025.5-1.el9
- bootc AlmaLinux 9 1.1.6-3.el9_6
- system-reinstall-bootc AlmaLinux 9 1.1.6-3.el9_6
- bootupd AlmaLinux 9 0.2.27-3.el9
- keylime-agent-rust AlmaLinux 9 0.2.2-2.el9
- python3.12-cryptography AlmaLinux 9 41.0.7-2.el9
almalinux advisories ALSA-2025:7147ALSA-2025:7160ALSA-2025:7241ALSA-2025:7313ALSA-2025:7317
- bootc Rocky Linux 9 1.1.6-3.el9_6
- rust-bootupd Rocky Linux 9 0.2.27-3.el9
- keylime-agent-rust Rocky Linux 9 0.2.2-2.el9
- python3.12-cryptography Rocky Linux 9 41.0.7-2.el9
rocky linux advisories RLSA-2025:7160RLSA-2025:7241RLSA-2025:7313RLSA-2025:7317
- github.com/sfackler/rust-openssl@f014afb commit
- github.com/sfackler/rust-openssl#2360 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-24898 updated cvss 4.8
rust-openssl: rust openssl ssl::select_next_proto use after free
-
Red Hat Enterprise Linux 9 fdo-init, fdo-client, fdo-admin-cli, fdo-owner-cli, fdo-rendezvous-server, fdo-manufacturing-server, +2 moreaffected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux 10 rust-bootupdaffected: workaround, no fix available
-
Red Hat Enterprise Linux AppStream (v. 9) bootc 1.1.6-3.el9_6, bootupd 0.2.27-3.el9, rpm-ostree 2025.5-1.el9, rust-bootupd 0.2.27-3.el9, rpm-ostree-libs 2025.5-1.el9, keylime-agent-rust 0.2.2-2.el9, +2 morefixed: vendor fix RHSA-2025:7160
-
Red Hat Directory Server 11 389-ds-base Red Hat Directory Server 12 389-ds-base Red Hat Enterprise Linux 8 389-ds-base, cockpit-389-ds, python3-lib389, 389-ds-base-libs, 389-ds-base-snmp, python3.12-cryptography, +1 morenot affected: vulnerable code not present
-
Red Hat Enterprise Linux 9 sevctl, 389-ds-base, python3-lib389, 389-ds-base-libs, 389-ds-base-snmp Red Hat Enterprise Linux 10 bootc, s390utils, rpm-ostree, 389-ds-base, rust-sevctl, rust-afterburn, +4 morenot affected: vulnerable code not in execute path
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 21 mo ago
Exploit prediction
0.68% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | openssl | >=0.10.0, <0.10.70 >=0.0.0-0, <0.10.70 |
0.10.70 |
Affected products
- sfackler rust-openssl
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/sfackler/rust-openssl/pull/2360
web
-
github.com
/sfackler/rust-openssl/commit/f014afb230de4d77bc79dea60e7e58c2f47b60f2
web
-
github.com
/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm
web
-
crates.io
/crates/openssl
web, package
-
lists.debian.org
/debian-lts-announce/2025/02/msg00009.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-24898
advisory
-
github.com
/sfackler/rust-openssl
package
-
rustsec.org
/advisories/RUSTSEC-2025-0004.html
web, advisory
Sources
- CVE List CVE-2025-24898
- GitHub Advisory GHSA-rpmj-rpgj-qmpm
- NVD CVE-2025-24898
- OSV RUSTSEC-2025-0004
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.