CVE-2025-24898

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-24898
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24898.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-24898
Aliases
Related
Published
2025-02-03T18:15:43Z
Modified
2025-02-12T05:45:45.952928Z
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/debian/rust-openssl?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.10.29-1+deb11u1

Affected versions

0.*

0.10.29-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/debian/rust-openssl?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.10.45-1
0.10.57-1
0.10.64-1
0.10.68-1
0.10.70-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/debian/rust-openssl?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.10.70-1

Affected versions

0.*

0.10.45-1
0.10.57-1
0.10.64-1
0.10.68-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}