CVE-2025-24898: sfackler rust-openssl Use After Free
Vulnerability summary
CVE-2025-24898 is a medium (CVSS 6.3) Use After Free vulnerability in sfackler rust-openssl. EPSS estimates a 0.68% chance of exploitation in the next 30 days, higher than 51.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 10Timeline
- 03-02-2025PublishedVulnerability first disclosed.
- 12-02-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated6.3MediumCVSS: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 · WolfiEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · Crates.ioEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
- NVDNIST6.3MediumCVSS: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
EPSS trend
Probability
0.68%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
0.00 pp
From 0.68% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat20 products
- bootc< 0:1.1.6-3.el9_6
- bootc-debuginfo< 0:1.1.6-3.el9_6
- bootc-debugsource< 0:1.1.6-3.el9_6
- bootupd< 0:0.2.27-3.el9
- bootupd-debuginfo< 0:0.2.27-3.el9
Chainguard11 products
- berg< 0.4.7-r1
- linkerd-extension-init< 0.1.2-r1
- linkerd2< 25.1.2-r1
- lychee< 0.18.0-r1
- nushell< 0.102.0-r0
Wolfi11 products
- berg< 0.4.7-r1
- linkerd-extension-init< 0.1.2-r1
- linkerd2< 25.1.2-r1
- lychee< 0.18.0-r1
- nushell< 0.102.0-r0
Crates.Io1 product
- openssl≥ 0.10.0, < 0.10.70 | ≥ 0.0.0-0, < 0.10.70
Debian1 product
- rust-opensslAll versions (No fix recorded) | < 0.10.70-1 | < 0.10.29-1+deb11u1
Opensuse1 product
- obs-service-cargo&distro=openSUSE Tumbleweed< 4.5.0-2.1
Sfackler1 product
- rust-openssl≥ 0.10.0, < 0.10.70
Ubuntu1 product
- rust-openssl< 0.10.23-1ubuntu0.1~esm1 | < 0.10.36-1ubuntu0.1~esm1 | < 0.10.57-1ubuntu0.1~esm1
8 vendors · 47 products
References
34 links- github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpmX Refsource CONFIRMARTICLEREPORTAdvisoryWEB