{"cve":"CVE-2025-24898","nvd":{"published":"2025-02-03T18:15:43.077","modified":"2026-06-17T08:59:48.490","status":"Deferred","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_v4":{"vector":"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","score":6.3},"cvss_v3":null,"cwes":["CWE-416"],"references":["https://crates.io/crates/openssl","https://github.com/sfackler/rust-openssl/pull/2360","https://github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm","https://lists.debian.org/debian-lts-announce/2025/02/msg00009.html"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:58:41.599736885+00:00"},"epss":{"cve":"CVE-2025-24898","score":0.0068,"percentile":0.5243,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rpmj-rpgj-qmpm","url":"https://osv.dev/vulnerability/GHSA-rpmj-rpgj-qmpm","summary":"rust-openssl ssl::select_next_proto use after free","modified":"2026-09-10T03:50:06.186180196Z","packages":[{"ecosystem":"crates.io","name":"openssl","purl":"pkg:cargo/openssl","ranges":[">=0.10.0 <0.10.70"],"fixed":["0.10.70"]}]},{"id":"RUSTSEC-2025-0004","url":"https://osv.dev/vulnerability/RUSTSEC-2025-0004","summary":"ssl::select_next_proto use after free","modified":"2026-10-12T18:00:12.406916247Z","packages":[{"ecosystem":"crates.io","name":"openssl","purl":"pkg:cargo/openssl","ranges":[">=0.0.0-0 <0.10.70"],"fixed":["0.10.70"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}