Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege user
-
ExploitIssue bulk removal with crafted filter on referenced association
-
ExecutionPre-attached association condition overrides supplied filter
-
ImpactUnintended sibling records under same parent removed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated user with basic privileges in an application built on Mongoid (PR:L confirmed by the CVSS 4.0 vector). The critical prerequisite (AT:P) is that the targeted referenced association already has conditions attached (for example a scope or where-clause on a has_many/referenced association); during a bulk removal those pre-attached conditions take precedence over the caller-supplied filter. Limiting factors: a valid low-privilege account is needed, exploitation only occurs against associations configured with such conditions (not a universal default), and impact is confined to records belonging to the same parent record - a caller cannot reach arbitrary unrelated data. No user interaction is required (UI:N). |
| Impact | Signals are moderate and internally consistent rather than alarming. The supplied CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N) scores 6.0 (medium): network-reachable and low-complexity, but it requires an existing low-privilege account (PR:L) and carries an attack requirement (AT:P), with impact limited to integrity (VI:H) - no confidentiality (VC:N) or availability (VA:N) effect, even though the outcome is record removal. No EPSS score, no CISA KEV listing, and no public exploit were provided; the only reference is a MongoDB Jira ticket (MONGOID-6030), which is an issue tracker entry, not verified exploit code. The vuln.today decision label is 'this_month', not act_now/emergency. Net: this is a real but bounded authorization defect, not a high-CVSS-but-illusory issue and not a drop-everything emergency - damage is scoped to records under the same parent and needs a valid basic-privilege account. Note a data caveat: the CPE identifies 'mongodb:ruby_driver', but the description and CWE-863 clearly concern Mongoid (the Ruby ODM), a distinct component - verify the affected package and fixed version with MongoDB. |
| Exploit ScenarioDerived | A user holding a basic (low-privilege) account in a Ruby/Rails application built on Mongoid invokes a bulk removal through a referenced association whose definition already carries a scope or where-condition. That pre-attached condition takes precedence over the filter the user supplied, so the operation deletes sibling records under the same parent that the user did not select. No public exploit identified at time of analysis; the only reference is a MongoDB Jira ticket, not verified working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Incorrect authorization in Mongoid's bulk-removal handling for referenced associations can delete records the caller never selected, because conditions already attached to the association take precedence over the caller-supplied filter. Exploitation requires an authenticated user with basic application privileges (CVSS 4.0 PR:L) plus an association that already carries such conditions (AT:P), and the impact is integrity-only, confined to records belonging to the same parent record. No public exploit code and no CISA KEV entry were identified at time of analysis; the MongoDB tracking issue is MONGOID-6030, and the vuln.today decision label is this_month.
RemediationAI
No vendor-released patch version is identified in the available data, so the fix state must be confirmed against MongoDB JIRA issue MONGOID-6030 (https://jira.mongodb.org/browse/MONGOID-6030) before upgrading, and the gem should be pinned to whatever release that ticket names as containing the correction. Until a fixed release is confirmed, the most direct compensating control is to stop routing low-privilege callers into bulk-removal operations on referenced associations that already carry conditions; this removes the attack surface entirely but adds an application-layer authorization check and may require reworking existing delete endpoints. Where bulk removal must stay available, explicitly intersect the association criteria with the caller's filter (an explicit $and of both condition sets) and verify the resolved record set before deletion - effective but it duplicates query logic and must be applied at every call site. A third option is to audit-log and gate bulk deletions behind a higher privilege level, accepting the usability cost of elevated approvals. Database-side role restrictions on the Mongoid connection do not help here because the removal is issued with the application's own credentials; only application-level enforcement changes the outcome.
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, mapping documents to Ruby objects and exposing associations whose reads and writes are executed as MongoDB queries carrying criteria already declared on the association. The weakness is CWE-863 (Incorrect Authorization): when a caller performs a bulk removal through such a referenced association, the pre-attached association conditions are combined with - and can take precedence over - the filter supplied by the caller, so the criteria actually executed do not narrow the operation to the records the caller selected. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N, with all subsequent-system metrics N) matches the independent assessment (CVSS 3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N): network-reachable through the application, integrity-only, no confidentiality or availability effect, and no downstream impact beyond the vulnerable component. The AT:P prerequisite is confirmed by the description itself - the targeted association must already have conditions attached (for example a scope or where-clause on a referenced has_many-style association); on associations without such conditions the precedence problem does not arise, so this is a configuration-dependent exposure rather than a universal default. Impact stays inside the blast radius of the parent record, meaning a caller cannot reach arbitrary unrelated data, and the exact library entry points involved are not named in the available sources.
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:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Authenticated basic user (PR:L) over the network (AV:N); AC:H reflects the dependency on an association carrying pre-attached conditions; impact is unauthorized record removal (I:H) with no confidentiality or availability effect.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
Mongoid contains an incorrect authorization weakness in the handling of caller-supplied filters for bulk removal through a referenced association. Conditions already attached to the association can take precedence over the filter the caller supplied, so records the caller did not select may be removed. A user with basic privileges in an application built on the library may cause unintended removal of records belonging to the same parent record.
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
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
CPU exhaustion in MongoDB's Mongoid Ruby ODM allows an unauthenticated remote party to render an embedding application u
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 encryption can write values that an application declared as encrypted into MongoDB in cleartext for
Mongoid's automatic client-side encryption can silently store values that an application declared for encryption as clea
Mongoid, MongoDB's Ruby object-document mapper, does not consistently enforce its read-only attribute protection when at
EUVD-2026-135620
GHSA-9p32-jgc3-hmrv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB