Security mailing lists by PureSourceCode

CVE-2025-24898

MEDIUM 6.3CVSS 4.0

rust-openssl ssl::select_next_proto use after free

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 crateopenssl 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
3 Feb 2025
Last modified
12 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-416
Also known as
GHSA-rpmj-rpgj-qmpmRUSTSEC-2025-0004
Sources
NVDJSONOSV GHSA-rpmj-rpgj-qmpmJSONOSV RUSTSEC-2025-0004JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 MEDIUM 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
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io openssl >= 0.10.0, < 0.10.70 0.10.70
OSV crates.io openssl >= 0.0.0-0, < 0.10.70 0.10.70

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 3 Feb 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Feb 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Feb 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.