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
    • 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-1979

CVE-2026-1979: mruby Use-After-Free Vulnerability

CVE-2026-1979 is a use-after-free vulnerability in mruby up to version 3.4.0, affecting the mrb_vm_exec function in the JMPNOT-to-JMPIF optimization component. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-1979 Overview

A use after free vulnerability has been discovered in mruby up to version 3.4.0. This flaw affects the function mrb_vm_exec of the file src/vm.c within the JMPNOT-to-JMPIF optimization component. By executing a specific manipulation, an attacker can trigger a use after free condition. The attack requires local access to the target system. The exploit has been publicly disclosed and may be actively used.

Critical Impact

Local attackers can exploit this use after free vulnerability in mruby's bytecode optimization to potentially achieve arbitrary code execution or cause application crashes through memory corruption.

Affected Products

  • mruby versions up to 3.4.0
  • Applications embedding the mruby interpreter
  • Systems using mruby for embedded scripting

Discovery Timeline

  • 2026-02-06 - CVE-2026-1979 published to NVD
  • 2026-02-06 - Last updated in NVD database

Technical Details for CVE-2026-1979

Vulnerability Analysis

This vulnerability exists in mruby's bytecode compiler optimization logic, specifically in the pattern matching optimization that converts JMPNOT instructions to JMPIF instructions. The flaw occurs in the mrbgems/mruby-compiler/core/codegen.c file where the optimization routine fails to properly validate the instruction type before performing the transformation.

The root issue stems from insufficient validation during the optimization phase. The original code checked only two conditions: (1) a single entry in the fail_pos chain, and (2) that JMPNOT is immediately before the current position. However, it failed to verify that the instruction at the target location was actually a JMPNOT instruction rather than a JMP from an undefined pinned variable.

When the optimization incorrectly processes a JMP instruction as if it were JMPNOT, it can lead to bytecode corruption. This corruption manifests as a use after free condition during virtual machine execution in mrb_vm_exec, where freed memory may be accessed due to the malformed bytecode.

Root Cause

The vulnerability is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer). The insufficient conditional check in the JMPNOT-to-JMPIF optimization allows bytecode corruption to occur when the instruction at the fail_pos location is not actually a JMPNOT instruction. This can happen when the instruction originates from an undefined pinned variable (JMP instruction), leading to incorrect bytecode manipulation and subsequent memory safety violations during execution.

Attack Vector

The attack vector is local, requiring an attacker to execute malicious mruby code on the target system. An attacker would need to craft a specific mruby script that triggers the flawed optimization path during compilation. When the corrupted bytecode is executed by the virtual machine, the use after free condition is triggered, potentially allowing:

  • Arbitrary code execution through memory manipulation
  • Application denial of service via crashes
  • Information disclosure from freed memory regions

The following patch addresses the vulnerability by adding a third condition to verify the instruction type:

c
         }
 
         /* Optimize: single JMPNOT can be inverted to JMPIF, eliminating JMP */
-        /* Conditions: (1) single entry in fail_pos chain, and
-         * (2) JMPNOT is immediately before current position (no code between) */
+        /* Conditions: (1) single entry in fail_pos chain,
+         * (2) JMPNOT is immediately before current position (no code between), and
+         * (3) the instruction is actually JMPNOT (not JMP from undefined pinned var) */
         if ((int32_t)(fail_pos + 2) + (int16_t)PEEK_S(s->iseq+fail_pos) == 0 &&
-            fail_pos + 2 == s->pc) {
+            fail_pos + 2 == s->pc &&
+            s->iseq[fail_pos - 2] == OP_JMPNOT) {
           /* Single failure point - invert JMPNOT to JMPIF */
           s->iseq[fail_pos - 2] = OP_JMPIF;
           match_pos = fail_pos;

Source: GitHub Commit e50f15c

Detection Methods for CVE-2026-1979

Indicators of Compromise

  • Unexpected crashes in applications using mruby with stack traces pointing to mrb_vm_exec in src/vm.c
  • Memory corruption errors or segmentation faults during mruby script execution
  • Unusual mruby scripts containing complex pattern matching constructs designed to trigger optimization paths

Detection Strategies

  • Monitor for application crashes with memory corruption signatures in mruby-embedded applications
  • Implement runtime memory sanitizers (AddressSanitizer, Valgrind) during development and testing to detect use after free conditions
  • Review mruby script inputs for potentially malicious constructs targeting bytecode optimization

Monitoring Recommendations

  • Enable crash dump collection for applications embedding mruby to capture exploitation attempts
  • Deploy memory safety monitoring tools in environments running mruby interpreters
  • Audit mruby version deployments across your infrastructure to identify vulnerable installations (versions up to 3.4.0)

How to Mitigate CVE-2026-1979

Immediate Actions Required

  • Update mruby to a version that includes commit e50f15c1c6e131fa7934355eb02b8173b13df415 or later
  • Audit all applications and systems that embed or use mruby as a scripting engine
  • Restrict execution of untrusted mruby scripts until patching is complete

Patch Information

The vulnerability has been addressed in commit e50f15c1c6e131fa7934355eb02b8173b13df415. This patch adds an additional validation check to ensure the instruction being optimized is actually a JMPNOT instruction before performing the JMPNOT-to-JMPIF transformation. Organizations should apply this patch by pulling the latest mruby source code from the official mruby repository and rebuilding their applications. For detailed information about the fix, refer to GitHub Issue #6701.

Workarounds

  • Disable or restrict execution of untrusted mruby scripts in production environments
  • Implement sandboxing for mruby execution contexts to limit the impact of potential exploitation
  • Consider running mruby-embedded applications with reduced privileges to minimize damage from successful exploitation
bash
# Verify your mruby version and check if the patch is applied
cd /path/to/mruby
git log --oneline | grep -i "e50f15c"

# If patch is not present, update to latest version
git pull origin master
make clean
make

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/TechMruby

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/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
  • AvailabilityLow
  • CWE References
  • CWE-119
  • Technical References
  • GitHub Project Repository

  • GitHub Issue #6701

  • GitHub Issue Comment

  • GitHub Commit e50f15c

  • VulDB CTIIID #344501

  • VulDB #344501

  • VulDB Submission #743377
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS 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