The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-24898

CVE-2025-24898: rust-openssl Use-After-Free Vulnerability

CVE-2025-24898 is a use-after-free flaw in rust-openssl affecting ssl::select_next_proto that can cause crashes or memory leaks. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-24898 Overview

A Use After Free vulnerability has been identified in rust-openssl, a set of OpenSSL bindings for the Rust programming language. The vulnerability exists in the ssl::select_next_proto function, which 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 condition.

Critical Impact

This vulnerability could cause affected servers to crash or return arbitrary memory contents to clients, potentially exposing sensitive data or enabling denial of service attacks.

Affected Products

  • rust-openssl crate versions prior to 0.10.70
  • Applications using ssl::select_next_proto in ALPN callbacks
  • Systems with Rust applications implementing custom ALPN protocol selection

Discovery Timeline

  • 2025-02-03 - CVE CVE-2025-24898 published to NVD
  • 2025-02-11 - Last updated in NVD database

Technical Details for CVE-2025-24898

Vulnerability Analysis

The vulnerability is a classic Use After Free (CWE-416) memory safety issue that occurs due to improper lifetime management in Rust's OpenSSL bindings. The ssl::select_next_proto function is designed to assist with Application-Layer Protocol Negotiation (ALPN) during TLS handshakes. When called, it should return a reference to data within one of its input buffers.

The core issue lies in how the function's return value lifetime is constrained. The returned slice points to memory in the server argument's buffer, but the Rust compiler's borrow checker only enforces that the returned reference lives as long as the client argument. This creates a window where the server buffer can be deallocated while references to its contents still exist.

This vulnerability requires network access to exploit but involves complex attack prerequisites. The vulnerable pattern is most likely to occur when the server buffer is constructed within the ALPN selection callback itself, rather than being passed in from an outer scope with a longer lifetime.

Root Cause

The root cause is an incorrect lifetime annotation in the ssl::select_next_proto function signature. In Rust, lifetime parameters are used to ensure that references remain valid for as long as they are used. The original function signature failed to properly constrain the output buffer's lifetime to both input buffers, allowing the compiler to accept code that could access freed memory.

Specifically, the function's signature allowed the returned slice lifetime to be tied only to the client parameter, when it should have been tied to both server and client parameters since the returned data could originate from either buffer.

Attack Vector

The attack vector for this vulnerability involves triggering the use after free condition during TLS ALPN negotiation. An attacker would need to:

  1. Establish a TLS connection with a vulnerable server implementing custom ALPN selection
  2. Send crafted ALPN protocol lists that trigger the vulnerable code path
  3. Exploit the race between buffer deallocation and access to cause either a crash (denial of service) or memory disclosure

The vulnerability is exploited over the network during the TLS handshake process. The specific impact depends on timing and memory layout - successful exploitation could reveal arbitrary memory contents from the server process or cause the server to crash.

For technical details on the vulnerability and its fix, refer to the GitHub Security Advisory GHSA-rpmj-rpgj-qmpm and the associated pull request #2360.

Detection Methods for CVE-2025-24898

Indicators of Compromise

  • Unexpected server crashes during TLS handshake operations
  • Anomalous memory access patterns in application logs
  • Unusual ALPN negotiation failures or errors in TLS connection logs
  • Memory corruption indicators in crash dumps from Rust applications using OpenSSL bindings

Detection Strategies

  • Review application dependencies for rust-openssl versions prior to 0.10.70
  • Audit code using ssl::select_next_proto within ALPN selection callbacks for local buffer construction patterns
  • Monitor for abnormal process terminations in services using rust-openssl for TLS
  • Implement cargo-audit or similar dependency scanning tools to identify vulnerable crate versions

Monitoring Recommendations

  • Enable detailed TLS handshake logging to detect anomalous ALPN negotiation patterns
  • Configure memory sanitizers in development and staging environments to catch use after free conditions
  • Set up alerting for unexpected service restarts or crashes in production systems using rust-openssl
  • Monitor network traffic for unusual TLS handshake patterns that could indicate exploitation attempts

How to Mitigate CVE-2025-24898

Immediate Actions Required

  • Upgrade the openssl crate to version 0.10.70 or later immediately
  • Review all usages of ssl::select_next_proto in ALPN selection callbacks
  • If the server buffer is constructed within the callback, refactor to use a buffer with appropriate lifetime
  • Run cargo update to pull the latest patched version and rebuild affected applications

Patch Information

The vulnerability has been fixed in rust-openssl crate version 0.10.70. The fix properly constrains the output buffer's lifetime to that of both input buffers in the ssl::select_next_proto function signature. Users should update their Cargo.toml to require at least version 0.10.70 of the openssl crate.

The patch is available via Crates.io and detailed in GitHub Pull Request #2360. Debian users should also reference the Debian LTS Announcement for distribution-specific updates.

Workarounds

  • Ensure the server buffer passed to ssl::select_next_proto has a lifetime that extends beyond the callback scope
  • Move server buffer construction outside of the ALPN selection callback
  • If immediate upgrade is not possible, consider implementing ALPN selection using alternative methods
  • Apply network-level controls to limit TLS connection sources to trusted endpoints while awaiting patch deployment
bash
# Configuration example
# Update Cargo.toml to require patched version
# In Cargo.toml:
# [dependencies]
# openssl = ">=0.10.70"

# Update dependencies and rebuild
cargo update -p openssl
cargo build --release

# Verify the installed version
cargo tree -p openssl

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechRust Openssl

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.32%

  • Known ExploitedNo
  • CVSS Vector
  • 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
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-416
  • Technical References
  • Crates.io OpenSSL Package

  • GitHub Pull Request #2360

  • GitHub Security Advisory GHSA-rpmj-rpgj-qmpm

  • Debian LTS Announcement
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English