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 February 11, 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. Learn more about Dependency Scanning →

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.

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 Wed, 14 May 2025 12:16:16 +0000.