{"id":"CVE-2025-24898","published":"2025-02-03T17:57:39Z","modified":"2025-02-12T20:51:24Z","title":"rust openssl ssl::select_next_proto use after free","vendor":"sfackler","product":"rust-openssl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00676,"percentile":0.53163,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sfackler/rust-openssl/pull/2360","tags":["x_refsource_MISC"]},{"url":"https://crates.io/crates/openssl","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00009.html","tags":[]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":10.63},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"sfackler","affectedVersions":[{"vendor":"sfackler","product":"rust-openssl","versions":[">= 0.10.0, < 0.10.70"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-03T18:16:43.147824Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"openssl","vulnerableRanges":[">=0.10.0, <0.10.70",">=0.0.0-0, <0.10.70"],"patched":["0.10.70"],"from":["GHSA-rpmj-rpgj-qmpm","RUSTSEC-2025-0004"],"provenance":"source"}],"summary":{"text":"The flaw is a use-after-free in the ssl::select_next_proto function of rust-openssl, the Rust bindings for OpenSSL, where the returned slice can point into the server buffer while carrying a lifetime tied to the client buffer. An attacker over the network, with no authentication or user interaction, can exploit it when the server buffer is shorter-lived than the client buffer, typically when that buffer is constructed within the ALPN select callback, to crash the server or read arbitrary memory contents, and this is fixed in the openssl crate 0.10.70 and later.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:27Z"},"euvd":{"id":"EUVD-2025-0223","exploited":false,"provenance":"source"}}