A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-41197

CVE-2026-41197: Noir Brillig Buffer Overflow Vulnerability

CVE-2026-41197 is a buffer overflow flaw in Noir Brillig bytecode that causes heap corruption when processing nested arrays with composite types. This post covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-41197 Overview

CVE-2026-41197 is a critical memory corruption vulnerability in the Noir programming language's Brillig bytecode compiler. Noir is a Domain Specific Language (DSL) designed for SNARK proving systems that utilizes ACIR (Abstract Circuit Intermediate Representation) compatible proving systems, with Brillig serving as the bytecode ACIR uses for non-determinism.

The vulnerability exists in how the compiler handles memory allocation for nested arrays containing composite types (such as tuples) when processing foreign function calls. When allocating memory for nested array results, the compiler incorrectly uses the semantic length (number of logical elements) instead of the semi-flattened size (total memory slots needed), leading to heap buffer under-allocation and subsequent memory corruption.

Critical Impact

This vulnerability allows network-based attackers to corrupt the Brillig VM heap without any user interaction or special privileges. Successful exploitation can compromise the confidentiality, integrity, and availability of systems running affected Noir programs that utilize foreign calls returning nested arrays of composite types.

Affected Products

  • Noir versions prior to 1.0.0-beta.19
  • Applications compiled with vulnerable Noir compiler versions
  • Systems executing Brillig bytecode generated by affected compilers

Discovery Timeline

  • April 23, 2026 - CVE CVE-2026-41197 published to NVD
  • April 23, 2026 - Last updated in NVD database

Technical Details for CVE-2026-41197

Vulnerability Analysis

The vulnerability is classified under CWE-131 (Incorrect Calculation of Buffer Size), which occurs when software does not correctly calculate the size needed for a buffer, potentially leading to buffer overflows or under-allocations.

When Noir programs invoke external functions through foreign calls and the compiler encounters an Instruction::Call with a Value::ForeignFunction target, it processes the call through codegen_call() in brillig_call/code_gen_call.rs, which dispatches to convert_ssa_foreign_call(). Before emitting the foreign call opcode, the compiler must pre-allocate memory for any array results through allocate_external_call_results().

The BrilligArray struct represents Noir arrays in Brillig IR, with its size field indicating the semi-flattened size—the total memory slots the array occupies. This size accounts for composite types like tuples that consume multiple slots per element and is computed by compute_array_length() in brillig_block_variables.rs.

For outer arrays, allocate_external_call_results() correctly uses define_variable(), which internally calls allocate_value_with_type() to produce the correct semi-flattened size. However, for nested arrays, allocate_foreign_call_result_array() contains a critical bug: the pattern Type::Array(_, nested_size) discards the inner types with _ and uses only nested_size—the semantic length rather than the semi-flattened size.

Root Cause

The root cause lies in the allocate_foreign_call_result_array() function's handling of nested array type information. When processing Type::Array(_, nested_size), the function discards the inner type information (represented by the wildcard _) and relies solely on nested_size for memory allocation. While this works correctly for simple element types where each element occupies exactly one memory slot, it fails catastrophically for composite element types like tuples that require multiple slots per element.

This pattern matching oversight means that when a nested array contains tuples of N elements, the compiler allocates only enough memory for N single-slot values instead of the N × (tuple_size) slots actually required.

Attack Vector

The vulnerability can be exploited through network-based attacks without requiring authentication or user interaction. An attacker can craft malicious inputs to Noir programs that process foreign function calls returning nested arrays of composite types.

The exploitation mechanism works as follows:

  1. A Noir program defines a foreign function that returns nested arrays containing tuples or other composite types
  2. When compiled to Brillig bytecode, the compiler under-allocates heap memory for the nested array results
  3. When the foreign call executes and writes its return values, it overflows the allocated buffer
  4. The heap corruption can lead to arbitrary memory access, data corruption, or control flow hijacking within the Brillig VM

Detection Methods for CVE-2026-41197

Indicators of Compromise

  • Unexpected crashes or undefined behavior in Noir programs utilizing foreign calls with nested array returns
  • Memory corruption errors or heap-related exceptions in Brillig VM execution
  • Anomalous behavior in SNARK proof generation or verification processes
  • Integrity failures in cryptographic operations relying on affected Noir programs

Detection Strategies

  • Audit Noir source code for foreign function declarations that return nested arrays containing tuples or composite types
  • Review compiled Brillig bytecode for memory allocation patterns around foreign call sites
  • Implement runtime bounds checking in Brillig VM environments to detect heap overflows
  • Monitor for unexpected memory access patterns during foreign call execution

Monitoring Recommendations

  • Enable verbose logging for Brillig VM heap operations to identify allocation anomalies
  • Implement integrity checks on heap metadata structures before and after foreign call execution
  • Deploy memory sanitizers (when available) in development and testing environments
  • Monitor system resource usage for signs of memory corruption or leakage during Noir program execution

How to Mitigate CVE-2026-41197

Immediate Actions Required

  • Upgrade Noir to version 1.0.0-beta.19 or later immediately
  • Recompile all Noir programs that use foreign functions returning nested arrays with the patched compiler
  • Audit existing deployments to identify programs that may be affected by this vulnerability
  • Temporarily disable or isolate Noir programs using affected foreign call patterns until patched bytecode can be deployed

Patch Information

The vulnerability has been fixed in Noir version 1.0.0-beta.19. The patch corrects the memory allocation logic in allocate_foreign_call_result_array() to properly compute the semi-flattened size for nested arrays containing composite types, ensuring sufficient memory is allocated on the Brillig VM heap.

For detailed patch information, see the GitHub Noir Release v1.0.0-beta.19 and the GitHub Security Advisory GHSA-jj7c-x25r-r8r3.

Workarounds

  • Avoid using foreign functions that return nested arrays containing tuples or composite types until the compiler is upgraded
  • Refactor affected code to use flat array structures or single-level nesting with simple types as an interim solution
  • Implement additional validation layers around foreign call results in application code
  • Consider using ACIR-only compilation paths if Brillig-specific features are not required
bash
# Upgrade Noir to patched version
nargo --version  # Check current version
# Update to v1.0.0-beta.19 or later following official installation instructions
# Recompile affected projects
nargo compile --force

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechNoir

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-131
  • Technical References
  • GitHub Noir Release v1.0.0-beta.19

  • GitHub Security Advisory GHSA-jj7c-x25r-r8r3
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free 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