Skip to main content

Mongoid CVE-2026-93761

| EUVDEUVD-2026-83207 HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-09-18 mongodb GHSA-6c34-f5wx-m58m
8.7
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint using regex query on embedded docs
  2. Delivery
    Submit malicious backtracking-inducing string
  3. Exploit
    Mongoid evaluates pattern in-memory
  4. Execution
    Catastrophic regex backtracking pins CPU
  5. Impact
    Worker process becomes unresponsive (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitable only when the embedding application places attacker-supplied text into a pattern-matching (regex) query condition evaluated against an embedded association through Mongoid's in-memory query evaluation. The limiting factor is this specific application coding pattern - a deployment that never routes untrusted input into regex conditions on embedded documents is not reachable. Where that pattern exists, exploitation is remote and unauthenticated (PR:N) with no user interaction, and impact is limited to availability (CPU exhaustion of the affected process) with no confidentiality or integrity effect.

Impact

This is a CWE-1333 inefficient-regular-expression-complexity (ReDoS) availability issue in Mongoid's in-memory query evaluation. The vendor CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N with VA:H and no confidentiality or integrity impact) presents it as high-severity unauthenticated remote DoS, and the PR:N metric does indicate no authentication is required at the CVSS level. However, the real-world risk is materially narrower than 8.7 suggests: exploitation is conditional on the downstream application actually placing user-supplied text into a pattern-matching (regex) query condition on an embedded association - this is a coding pattern the application must adopt, not a default-on behavior of Mongoid itself. Impact is confined to availability (single-process CPU exhaustion / unresponsiveness); there is no data disclosure or corruption. Crucially, there is NO EPSS score, NO CISA KEV listing, and NO public POC in the provided intelligence, and no vendor advisory body or fixed version - the only reference is the vendor's own Jira ticket (MONGOID-5981). This points to a real but not-yet-widely-weaponized bug: a genuine hardening priority for teams running Mongoid with user-influenced regex queries on embedded docs, but not an emergency 'patch-tonight' item on the strength of the score alone. The vendor's AT:N (no attack requirement) arguably understates the app-dependent gating; AT:P would better reflect that not all Mongoid deployments are reachable.

Exploit ScenarioDerived

An attacker submits a crafted search string (containing catastrophic-backtracking regex input) through a public web endpoint whose Mongoid backend uses that string in a regex/pattern-matching condition against an embedded association. Mongoid evaluates the pattern in-memory, backtracking pathologically, pinning a CPU core and rendering the worker process unresponsive. No public exploit code is identified at time of analysis, and success depends on the application exposing such a query path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 18, 2026

CPU exhaustion in MongoDB's Mongoid Ruby ODM allows an unauthenticated remote party to render an embedding application unresponsive by supplying crafted text that lands inside a pattern-matching query condition Mongoid evaluates in memory against an embedded association, triggering catastrophic regex backtracking (CWE-1333, ReDoS). The impact is availability-only: the affected Ruby application process burns CPU and stops responding, with no confidentiality or integrity effect. No public exploit code has been identified at time of analysis, and reachability depends on a specific application coding pattern, which is why the independent assessment applies AC:H and treats deployments that never route untrusted input into regex conditions on embedded documents as out of scope (the CNA's CVSS 4.0 vector rates it 8.7 with AC:L, a more aggressive reading than the assessed CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

RemediationAI

No vendor-released patch version is identified in the available intelligence - the only reference is the upstream MongoDB Jira issue MONGOID-5981, so track that issue for the fix release and apply the patched Mongoid gem version it names as soon as it ships (do not assume a version number not present in the source data). Until then, treat this as a code-pattern defect with concrete compensating controls: eliminate the practice of interpolating request data into regex conditions, using Regexp.escape plus explicit anchors (\A...\z) or switching to literal equality/$eq matching, accepting that this changes matching semantics and may require reworking search features; validate and hard-cap the length and character set of any string that can reach a query condition, which bounds the backtracking input but will reject some legitimate long values; on Ruby 3.2+ set Regexp.timeout as a global backstop so a pathological match raises Regexp::TimeoutError instead of hanging, with the trade-off that the exception must be rescued and handled throughout the application and that it applies to every regex in the process; and contain blast radius by running the application under CPU/memory cgroups with supervisor health-check restarts and by isolating latency-sensitive or multi-tenant workers, so that a single abusive request cannot starve co-located traffic. Rate-limiting the endpoints that accept regex-like filters is a useful additional layer but is not a substitute for removing the untrusted-input-to-regex path.

Affected VersionsENISA

Mongoid 8.1.0 ≤8.1.12
Mongoid 7.3.0 ≤7.3.5
Mongoid 7.5.0 ≤7.5.4
Mongoid 9.1.0
Mongoid 7.6.0 ≤7.6.1
Mongoid 8.0.0 ≤8.0.12
Mongoid 7.4.0 ≤7.4.3
Mongoid 9.0.0 ≤9.0.11
Mongoid 7.2.0 ≤7.2.6

Affected Packages

euvd mongoid no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mongoid is MongoDB's object-document mapper for Ruby, and this issue sits in its in-memory query evaluation path - the code that evaluates criteria in the Ruby process (rather than delegating to the MongoDB server) when matching criteria against embedded associations. CWE-1333 describes inefficient regular expression complexity: a regex containing nested or overlapping quantifiers exhibits exponential backtracking on certain non-matching inputs, so wall-clock time and CPU scale with input length rather than pattern length. Here the trigger is an application that interpolates attacker-controlled text into a Regexp used as a query condition (e.g. building /#{params[:q]}/ instead of Regexp.escape) and then evaluates that condition against embedded documents inside the Ruby process, where Ruby's Onigmo regex engine has no per-pattern execution budget by default. The supplied CPE, cpe:2.3:a:mongodb_inc.:mongoid:*:*:*:*:*:*:*:*, uses a wildcard for version, meaning the CNA has not published a discrete affected-version boundary; no fixed version is stated anywhere in the available intelligence. Note that the trust boundary here is the embedding application's own code, not the database: the CPU is consumed by the Ruby process, and the MongoDB server reported CPE is the library, not the server product.

Know when Mongoid gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Remote unauthenticated (PR:N) but reachability requires the app to feed user input into a regex condition on an embedded association, so AC:H; impact is pure availability (A:H).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

An inefficient regular expression complexity issue in the in-memory query evaluation component of the Mongoid library may allow an unauthenticated party to cause excessive processing within an embedding application process. Applications that place user-supplied text into a pattern-matching query condition on an embedded association may become unresponsive.

Executive ViewAI

Why It Matters

A high-severity availability flaw in MongoDB's Mongoid Ruby ODM can allow an unauthenticated remote actor to exhaust CPU in a Ruby application that evaluates crafted text inside pattern-matching queries against embedded associations, causing the application process to stop responding. The effect is denial of service only: no data exposure or modification is involved. Because no vendor patch is currently available and reachability depends on a specific Mongoid query pattern, leadership should treat this as an operational resilience and code-assurance risk for any customer-facing or internal Ruby service using the affected pattern.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: avoid routing untrusted input into regex conditions on embedded Mongoid associations; escape or allow-list input; use anchored or safe patterns; enforce regex/query timeouts and CPU/rate limits; monitor for CPU exhaustion; conduct focused code review; monitor vendor advisory for a patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
official MongoDB Ruby ODM, widely used in Ruby apps but narrow vulnerable path
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy