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-2302

CVE-2026-2302: Mongoid Criteria RCE Vulnerability

CVE-2026-2302 is a remote code execution vulnerability in Mongoid that allows attackers to execute arbitrary Ruby code through malicious Hash values. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-2302 Overview

CVE-2026-2302 is an arbitrary code execution vulnerability in MongoDB's Mongoid ODM (Object-Document Mapper) for Ruby. Under specific conditions, when processing a maliciously crafted value of type Hash, the Mongoid::Criteria.from_hash method may allow for executing arbitrary Ruby code. This vulnerability poses a significant risk to applications that pass untrusted user input to the from_hash method without proper validation.

Critical Impact

Successful exploitation of this vulnerability could allow remote attackers to execute arbitrary Ruby code on vulnerable systems, potentially leading to complete system compromise, data theft, or further lateral movement within the network.

Affected Products

  • Mongoid ODM for Ruby (specific versions not disclosed)
  • Ruby applications using vulnerable Mongoid::Criteria.from_hash implementations
  • MongoDB-backed Ruby on Rails applications utilizing Mongoid

Discovery Timeline

  • 2026-02-10 - CVE CVE-2026-2302 published to NVD
  • 2026-02-10 - Last updated in NVD database

Technical Details for CVE-2026-2302

Vulnerability Analysis

This vulnerability falls under the category of Code Injection affecting the Mongoid ODM library. The Mongoid::Criteria.from_hash method is designed to construct query criteria from hash input, but under specific conditions, it fails to properly sanitize malicious input. When an attacker provides a specially crafted Hash value, the method may interpret certain hash keys or values as executable Ruby code rather than data parameters.

The vulnerability requires network access and low privileges, but also requires some user interaction for successful exploitation. The primary impact is to system integrity, as successful exploitation allows arbitrary code execution that can modify system state, inject malicious code, or tamper with application data.

Root Cause

The root cause of this vulnerability lies in improper input validation within the Mongoid::Criteria.from_hash method. The method fails to adequately sanitize or validate Hash input before processing, allowing specially crafted hash structures to be interpreted as executable code. This is a classic example of an Insecure Deserialization or Object Injection vulnerability pattern common in dynamic languages like Ruby, where hash or object instantiation can trigger unintended method calls or code evaluation.

Attack Vector

The attack vector is network-based, requiring the attacker to submit a maliciously crafted Hash value through an application interface that eventually passes the input to Mongoid::Criteria.from_hash. Attack scenarios may include:

  1. Web forms or API endpoints that accept complex query parameters
  2. JSON or YAML payloads that are deserialized into Ruby Hash objects
  3. Any input path where user-controlled data reaches the vulnerable method

The vulnerability mechanism involves the unsafe processing of Hash input within Mongoid's criteria building functionality. When user-controlled Hash data containing specially crafted keys or values is passed to Mongoid::Criteria.from_hash, the method may evaluate certain constructs as Ruby code rather than treating them as literal data. For detailed technical information, refer to the MongoDB JIRA Ticket MONGOID-5919.

Detection Methods for CVE-2026-2302

Indicators of Compromise

  • Unusual Ruby process activity or unexpected child processes spawned by the application
  • Anomalous network connections originating from the Ruby application server
  • Log entries showing malformed or suspicious Hash parameters in application requests
  • Unexpected file system modifications in application directories

Detection Strategies

  • Implement application-level logging for all calls to Mongoid::Criteria.from_hash with parameter inspection
  • Deploy web application firewall (WAF) rules to detect suspicious Hash-like patterns in request payloads
  • Monitor Ruby process behavior for unusual system calls or code execution patterns
  • Review application logs for attempts to inject Ruby code constructs in query parameters

Monitoring Recommendations

  • Enable detailed application logging for Mongoid query construction activities
  • Implement runtime application self-protection (RASP) to detect code injection attempts
  • Set up alerts for unusual database query patterns that may indicate exploitation attempts
  • Monitor network traffic from application servers for unexpected outbound connections

How to Mitigate CVE-2026-2302

Immediate Actions Required

  • Audit all code paths where user input reaches Mongoid::Criteria.from_hash and implement strict input validation
  • Consider implementing allowlist-based filtering for Hash keys and values before passing to Mongoid
  • Review and restrict the privileges of the Ruby application to minimize impact if exploitation occurs
  • Temporarily disable or wrap vulnerable functionality if immediate patching is not possible

Patch Information

MongoDB has acknowledged this vulnerability through JIRA Ticket MONGOID-5919. Administrators should monitor the MongoDB security advisories and Mongoid gem releases for official patches. Update the Mongoid gem to the patched version as soon as it becomes available using bundle update mongoid.

Workarounds

  • Implement a validation layer that sanitizes all Hash input before passing to Mongoid::Criteria.from_hash
  • Use allowlisting to restrict acceptable Hash keys and value types in user input
  • Consider wrapping the vulnerable method with a security proxy that validates input structure
  • Deploy network-level controls to limit exposure of vulnerable application endpoints
bash
# Configuration example - Input validation wrapper
# Add to your application's initializers or base controller

# Gemfile security update (when patch is available)
# bundle update mongoid

# Validate hash input before Mongoid processing
# Implement allowlist for permitted keys in your application layer
# Example: params.permit(:field1, :field2).to_h before passing to from_hash

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMongoid

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/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
  • IntegrityHigh
  • AvailabilityNone
  • Technical References
  • MongoDB JIRA Ticket MONGOID-5919
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected 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