{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-24898","id":"CVE-2025-24898","title":"rust openssl ssl::select_next_proto use after free","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","descriptionLong":"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.","published":"2025-02-03T17:57:39.558Z","updated":"2026-10-28T02:30:24.749601145Z","reserved":"2025-01-27T15:32:29.452Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.3,"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.3,"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.3,"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/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","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["sfackler rust-openssl"],"affectedProducts":[{"vendor":"sfackler","product":"rust-openssl","defaultStatus":null,"versions":[{"version":">= 0.10.0, < 0.10.70","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"openssl","purl":"pkg:cargo/openssl","ranges":[">=0.10.0 <0.10.70",">=0.0.0-0 <0.10.70"],"fixed":["0.10.70"],"advisory":"GHSA-rpmj-rpgj-qmpm"}],"cwes":["CWE-416"],"aliases":["GHSA-rpmj-rpgj-qmpm","RUSTSEC-2025-0004"],"references":[{"url":"https://github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/sfackler/rust-openssl/pull/2360","tags":["x_refsource_MISC","fix","web"]},{"url":"https://crates.io/crates/openssl","tags":["x_refsource_MISC","web","package"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00009.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24898.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24898","tags":["advisory"]},{"url":"https://github.com/sfackler/rust-openssl/commit/f014afb230de4d77bc79dea60e7e58c2f47b60f2","tags":["web"]},{"url":"https://github.com/sfackler/rust-openssl","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0004.html","tags":["web","advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00676,"epssPercentile":0.53022,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-24898","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24898","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-24898","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rpmj-rpgj-qmpm","ok":true,"note":"GHSA-rpmj-rpgj-qmpm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-24898","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["openssl"],"critical":[],"attention":null}