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-2026-42199

CVE-2026-42199: Rust Grid Library Buffer Overflow Flaw

CVE-2026-42199 is a buffer overflow vulnerability in the Rust Grid library caused by integer overflow in Grid::expand_rows(). This flaw can lead to undefined behavior. Learn about technical details, affected versions, and patches.

Published: May 18, 2026

CVE-2026-42199 Overview

CVE-2026-42199 is an integer overflow vulnerability in the grid crate, a data structure library for Rust. The flaw affects versions 0.17.0 through versions prior to 1.0.1. An integer overflow in the Grid::expand_rows() function corrupts the relationship between the grid's logical dimensions and its backing storage. Once the internal invariant breaks, calls to the safe get() API can invoke get_unchecked() with an invalid index, producing Undefined Behavior. The maintainer addressed the issue in version 1.0.1.

Critical Impact

Local attackers who can influence grid dimensions can trigger Undefined Behavior, leading to memory safety violations and application crashes in Rust programs depending on the grid crate.

Affected Products

  • grid crate for Rust, versions 0.17.0 to before 1.0.1
  • Rust applications and libraries depending on vulnerable versions of grid
  • Downstream crates statically linking the affected versions

Discovery Timeline

  • 2026-05-08 - CVE-2026-42199 published to the National Vulnerability Database (NVD)
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42199

Vulnerability Analysis

The grid crate provides a two-dimensional data structure backed by a single contiguous Vec. The library maintains an internal invariant that the product of rows and columns equals the length of the backing storage. The Grid::expand_rows() method extends the grid by adding new rows, computing the new total size through arithmetic on the row and column counts. When that arithmetic overflows a machine integer, the computed allocation size no longer matches the logical dimensions reported by the grid object. This vulnerability is classified under CWE-190: Integer Overflow or Wraparound.

Root Cause

The root cause is unchecked multiplication or addition inside expand_rows() when computing the new storage capacity. Rust release builds perform wrapping arithmetic by default on integer operations, so the overflow produces a smaller-than-expected value rather than panicking. The grid then records logical dimensions that exceed the actual backing buffer length. Subsequent calls to the safe get() accessor bypass bounds validation and delegate to get_unchecked(), which performs unchecked indexing into memory outside the allocated region.

Attack Vector

An attacker who controls grid dimensions passed to expand_rows() can trigger the overflow. Out-of-bounds reads via get() produce Undefined Behavior, which the Rust compiler may translate into crashes, memory corruption, or unpredictable execution. The attack requires local access to a process that accepts attacker-influenced row or column counts. Exploitation does not require authentication or user interaction, but the impact is limited to availability of the affected process.

No verified exploit code is publicly available. For technical specifics, refer to the GitHub Security Advisory GHSA-38c5-483c-4qqp and the fix commit.

Detection Methods for CVE-2026-42199

Indicators of Compromise

  • Unexpected process termination or SIGSEGV signals in Rust applications using the grid crate
  • Sanitizer reports (AddressSanitizer, MemorySanitizer) flagging out-of-bounds reads originating from Grid::get() call sites
  • Cargo dependency manifests pinning grid to versions between 0.17.0 and 1.0.0 inclusive

Detection Strategies

  • Run cargo audit against project lockfiles to flag vulnerable grid versions referenced by advisory GHSA-38c5-483c-4qqp
  • Audit source code for calls to Grid::expand_rows() that accept externally supplied row counts without prior bounds checking
  • Execute test suites under cargo +nightly miri or with AddressSanitizer enabled to surface Undefined Behavior triggered by overflowed dimensions

Monitoring Recommendations

  • Monitor crash telemetry and core dumps for Rust services that consume the grid crate
  • Track software composition analysis (SCA) alerts that reference RUSTSEC advisories tied to this CVE
  • Review CI/CD pipeline logs for failed dependency security scans after enabling cargo deny policies

How to Mitigate CVE-2026-42199

Immediate Actions Required

  • Upgrade the grid crate to version 1.0.1 or later in Cargo.toml and rebuild affected binaries
  • Run cargo update -p grid to refresh the lockfile, then redeploy compiled artifacts
  • Inventory all Rust services and tools that transitively depend on vulnerable grid versions through SCA tooling

Patch Information

The maintainer released the fix in grid v1.0.1. The corrective change is documented in commit be213bd3, which adds overflow-checked arithmetic to expand_rows() and preserves the invariant between logical dimensions and backing storage length. Consumers should pin to 1.0.1 or higher.

Workarounds

  • Validate and cap row and column counts before invoking Grid::expand_rows() to prevent overflow in arithmetic
  • Wrap calls to expand_rows() in checked arithmetic using usize::checked_mul and usize::checked_add on caller-supplied inputs
  • Avoid exposing expand_rows() to untrusted input until the upgrade is deployed
bash
# Update the grid crate to the patched version
cargo update -p grid --precise 1.0.1

# Verify no vulnerable versions remain
cargo tree -i grid
cargo audit

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGrid

  • SeverityMEDIUM

  • CVSS Score6.2

  • EPSS Probability0.01%

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

  • GitHub Release v1.0.1

  • GitHub Security Advisory GHSA-38c5-483c-4qqp
  • Related CVEs
  • CVE-2025-58657: EdwardBock Grid CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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