Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-24889

CVE-2026-24889: Soroban SDK Buffer Overflow Vulnerability

CVE-2026-24889 is a buffer overflow vulnerability in the Soroban SDK for Rust smart contracts that triggers arithmetic overflow in slice and random number methods. This article covers technical details, affected versions, and mitigation.

Published: January 29, 2026

CVE-2026-24889 Overview

CVE-2026-24889 is an Integer Overflow vulnerability affecting the Soroban SDK, a Rust SDK for building Soroban smart contracts on the Stellar blockchain. The vulnerability exists in the Bytes::slice, Vec::slice, and Prng::gen_range (for u64) methods in versions up to and including 25.0.1, 23.5.1, and 25.0.2. When arithmetic operations on range bounds are performed without overflow checks, the values can silently wrap around, causing the affected methods to operate on incorrect data ranges or generate random numbers from unintended ranges.

Critical Impact

Smart contracts using user-controlled or computed range bounds with affected methods may experience corrupted contract state, potentially leading to integrity issues in blockchain operations.

Affected Products

  • soroban-sdk versions up to and including 25.0.1
  • soroban-sdk versions up to and including 23.5.1
  • soroban-sdk versions up to and including 25.0.2

Discovery Timeline

  • 2026-01-28 - CVE CVE-2026-24889 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2026-24889

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The core issue lies in how range bounds are processed in the slice and gen_range methods. When handling Bound::Excluded ranges, the code performs direct arithmetic operations (*s + 1 or *b - 1) without checking for potential overflow conditions. In Rust, when overflow-checks is disabled (which is the default for release builds unless explicitly enabled), these operations silently wrap around instead of panicking.

For example, if a Bound::Excluded start bound is set to u32::MAX (4294967295) in the slice method, adding 1 would cause the value to wrap to 0, resulting in an incorrect slice range. Similarly, in Prng::gen_range for u64, passing Bound::Excluded(0) for an end bound would cause subtraction underflow, wrapping to u64::MAX.

Root Cause

The root cause is the use of bare arithmetic operations (+ and -) on range bounds without explicit overflow checking. The vulnerable code paths relied on Rust's overflow-checks compiler flag to catch these conditions, but this setting is disabled by default in release profiles. Contracts that did not explicitly configure overflow-checks = true in their Cargo profiles were susceptible to silent arithmetic wraparound.

Attack Vector

This vulnerability can be exploited remotely through network-accessible smart contracts. An attacker could craft malicious input values for contract functions that pass user-controlled range bounds to the affected methods. The attack requires no authentication and does not require user interaction.

The exploitation scenario involves:

  1. Identifying a Soroban contract that uses Bytes::slice, Vec::slice, or Prng::gen_range with user-controllable bounds
  2. Supplying range bounds at or near integer boundary values (e.g., u32::MAX or 0 for excluded bounds)
  3. Triggering the arithmetic overflow to cause the contract to operate on unintended data ranges
rust
// Vulnerable code (before patch) - bytes.rs slice method
pub fn slice(&self, r: impl RangeBounds<u32>) -> Self {
    let start_bound = match r.start_bound() {
        Bound::Included(s) => *s,
        Bound::Excluded(s) => *s + 1,  // VULNERABLE: overflow if s == u32::MAX
        Bound::Unbounded => 0,
    };
    let end_bound = match r.end_bound() {
        Bound::Included(s) => *s + 1,  // VULNERABLE: overflow if s == u32::MAX
        Bound::Excluded(s) => *s,
        Bound::Unbounded => self.len(),
    };

Source: GitHub Commit

rust
// Fixed code (after patch) - bytes.rs slice method with checked arithmetic
pub fn slice(&self, r: impl RangeBounds<u32>) -> Self {
    let start_bound = match r.start_bound() {
        Bound::Included(s) => *s,
        Bound::Excluded(s) => s
            .checked_add(1)
            .expect_optimized("attempt to add with overflow"),
        Bound::Unbounded => 0,
    };
    let end_bound = match r.end_bound() {
        Bound::Included(s) => s
            .checked_add(1)
            .expect_optimized("attempt to add with overflow"),
        Bound::Excluded(s) => *s,
        Bound::Unbounded => self.len(),
    };

Source: GitHub Commit

Detection Methods for CVE-2026-24889

Indicators of Compromise

  • Unexpected contract state changes when processing boundary value inputs
  • Contract operations producing results inconsistent with specified ranges
  • Random number generation producing values outside expected ranges in contracts using Prng::gen_range
  • Contract logs showing slice operations on unexpectedly large or wrapped ranges

Detection Strategies

  • Audit Soroban contract dependencies to identify use of soroban-sdk versions prior to the patched releases (v22.0.9, v23.5.1, v25.0.2)
  • Review contract code for usage of Bytes::slice, Vec::slice, or Prng::gen_range methods with user-controlled inputs
  • Check Cargo.toml profile configurations for overflow-checks settings; absence of overflow-checks = true in release profiles indicates potential vulnerability
  • Analyze contract transaction history for inputs containing boundary values (e.g., u32::MAX, u64::MAX, or 0) passed to slice or range operations

Monitoring Recommendations

  • Monitor contract invocations for parameters containing maximum integer values that could trigger overflow conditions
  • Implement contract-level input validation logging to capture suspicious range bound values
  • Set up alerts for contract state anomalies that could indicate data corruption from overflow exploitation
  • Review smart contract audit reports for any findings related to integer overflow in range operations

How to Mitigate CVE-2026-24889

Immediate Actions Required

  • Update soroban-sdk to patched versions: v22.0.9, v23.5.1, or v25.0.2 depending on your version branch
  • Audit existing contracts for usage of affected methods (Bytes::slice, Vec::slice, Prng::gen_range) with user-controlled inputs
  • Enable overflow-checks = true in Cargo.toml release profiles as a defense-in-depth measure
  • Validate range bounds in contract logic before passing them to slice or gen_range methods

Patch Information

The fix replaces bare arithmetic operations with checked_add and checked_sub methods, ensuring overflow conditions trap regardless of the overflow-checks profile setting. Patched versions are available:

  • v22.0.9
  • v23.5.1
  • v25.0.2

For detailed patch information, see the GitHub Security Advisory GHSA-96xm-fv9w-pf3f and the associated pull request #1703.

Workarounds

  • Configure overflow-checks = true in the contract's Cargo.toml release profile to catch arithmetic overflows at runtime
  • Implement manual bounds validation in contract code before calling slice or gen_range methods with user-provided values
  • Use the contract boilerplate generated by stellar contract init which enables overflow checks by default
  • For Prng::gen_range, ensure exclusive bounds are never 0 (for end) or u64::MAX (for start) when using excluded bounds
toml
# Cargo.toml - Recommended profile configuration
[profile.release]
overflow-checks = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechSoroban Sdk

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Pull Request

  • GitHub Release v22.0.9

  • GitHub Release v23.5.1

  • GitHub Release v25.0.2

  • GitHub Security Advisory GHSA-96xm-fv9w-pf3f
  • Related CVEs
  • CVE-2026-26267: Soroban SDK Auth Bypass 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