Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint using regex query on embedded docs
-
DeliverySubmit malicious backtracking-inducing string
-
ExploitMongoid evaluates pattern in-memory
-
ExecutionCatastrophic regex backtracking pins CPU
-
ImpactWorker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Data disclosure and permanent record deletion in Mongoid can be triggered by an unauthenticated remote attacker when an
Code injection in Mongoid allows unauthenticated attackers who can influence a query argument to execute arbitrary JavaS
Insecure direct object reference in Mongoid's nested-attributes handling lets an authenticated user with basic applicati
Unsafe reflection (CWE-470) in Mongoid's document persistence layer allows a crafted key to be reflected into an interna
Unauthenticated, remote query-operator injection in Mongoid - the official MongoDB object-document mapper for Ruby - all
Silent, warning-free failure of encryption-configuration generation in the Mongoid object-document mapper causes fields
Mongoid can silently persist values in readable form that applications intended to encrypt, because its client-side fiel
Mongoid's automatic client-side encryption can silently store values that an application declared for encryption as clea
EUVD-2026-83207
GHSA-6c34-f5wx-m58m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB