CVE-2025-24898

medium
Published 2025-02-02 ยท Modified 2025-07-02
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
5.5

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Mixed 5 releases
VersionStatusFixed in
trixie Fixed 0.10.70-1
sid Fixed 0.10.70-1
forky Fixed 0.10.70-1
bullseye Fixed 0.10.29-1+deb11u1
bookworm Affected โ€”
redhat Red Hat Fixed 1 release
VersionStatusFixed in
9 Fixed โ€”
rockylinux Rocky Linux Fixed 1 release
VersionStatusFixed in
9 Fixed โ€”

Package impact

EcosystemPackageVulnerableFixed
rust crates.ioopenssl
rust crates.ioopenssl>=0.0.0-0,<0.10.700.10.70
rust crates.ioopenssl>=0.10.0,<0.10.700.10.70

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.