Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. openssl
  4. ›
  5. CVE-2025-24898

CVE-2025-24898: rust-openssl ssl::select_next_proto use after free

February 3, 2025 (updated October 31, 2025)

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 server 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.

References

  • crates.io/crates/openssl
  • github.com/advisories/GHSA-rpmj-rpgj-qmpm
  • github.com/sfackler/rust-openssl
  • github.com/sfackler/rust-openssl/commit/f014afb230de4d77bc79dea60e7e58c2f47b60f2
  • github.com/sfackler/rust-openssl/pull/2360
  • github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm
  • lists.debian.org/debian-lts-announce/2025/02/msg00009.html
  • nvd.nist.gov/vuln/detail/CVE-2025-24898
  • rustsec.org/advisories/RUSTSEC-2025-0004.html

Code Behaviors & Features

Detect and mitigate CVE-2025-24898 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.10.0 before 0.10.70

Fixed versions

  • 0.10.70

Solution

Upgrade to version 0.10.70 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

cargo/openssl/CVE-2025-24898.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:27 +0000.