Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with basic application privileges
-
ExploitSend ordinary request to Mongoid-backed endpoint
-
ExecutionModel default restriction silently discarded in query
-
ImpactRead, modify, or delete withheld records
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 | Exploitation requires an application that relies on a Mongoid model-level default restriction (a default scope intended to return no records) for access control, and that restriction being combined into a query where the flaw causes it to be silently discarded. The attacker must hold basic authenticated application privileges (PR:L) - it is not anonymous - but needs no elevated role, no user interaction, and only an ordinary request (AV:N/AC:L/UI:N). The principal limiting factor is that the application must depend on Mongoid default restrictions to withhold records; applications that enforce access control at a different layer are not exposed through this specific mechanism. The precise code-level trigger (which query-building operations cause the restriction to be dropped) is not described in the available sources. |
| Impact | This is a credible this-week priority rather than a theoretical high-CVSS issue. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N) describes a remotely reachable, low-complexity authorization flaw requiring only basic application privileges, with high confidentiality and integrity impact - a profile that maps cleanly to a broken-access-control bug (CWE-863, Incorrect Authorization). The vendor-assigned decision label is 'this_week', consistent with a serious but not emergency item. Key risk-tempering signals are missing from the input: no EPSS probability is provided, the vulnerability is NOT in CISA KEV (no confirmed active exploitation), and no proof-of-concept or working exploit is referenced - the only reference is the MONGOID-6025 Jira tracking ticket, not exploit code. One data conflict must be verified: the CPE lists 'mongodb:ruby_driver' while the description and the MONGOID-6025 ticket both identify the Mongoid ODM, which is a distinct library from the MongoDB Ruby driver - confirm the exact affected package with the vendor. Net: a real, easily-triggered authorization bypass that warrants prompt patching, but current data shows no evidence of widespread or active exploitation. |
| Exploit ScenarioDerived | A low-privileged but authenticated application user sends an ordinary request to an endpoint backed by a Mongoid model whose model-level default restriction is supposed to return no records; because the restriction is silently dropped when combined into the query, the user reads, modifies, or deletes records that should have been withheld. No proof-of-concept or working exploit code is referenced - only the MONGOID-6025 tracking ticket exists. With AV:N/AC:L/PR:L the attack is remote and low-complexity, needing only valid basic credentials and no user interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Mongoid, the MongoDB object-document mapper for Ruby, silently drops a model-level default restriction - a default scope intended to return no records - when that restriction is combined into a query, so an authenticated user holding only basic application privileges can read, modify, or delete records the restriction was meant to withhold through an ordinary request. The defect is an incorrect-authorization logic error (CWE-863) scored 8.6 under CVSS 4.0 and tracked as a this-week priority by the reporting source; exposure is confined to applications that actually rely on Mongoid default restrictions for access control and that route user-influenced criteria through the affected query-building path. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the specific query-building operations that cause the restriction to be discarded are not described in the available sources.
RemediationAI
No vendor-released patch version is identified in the supplied intelligence, so the primary action is to track MONGOID-6025 (https://jira.mongodb.org/browse/MONGOID-6025) for the fixed Mongoid release and upgrade as soon as that version is published. Until then, stop treating Mongoid model-level default restrictions as an authorization boundary: audit every model that declares a deny-all default scope and add explicit, per-query user or tenant filters to each call site, accepting the code churn and the risk of missing call sites that this refactor carries. Alternatively, centralize the record-level check in an application policy or middleware layer that runs after Mongoid returns results, which reduces reliance on query composition but adds latency and requires every data-access path to be routed through it. Also review query-building paths that merge user-supplied criteria into scoped queries, and restrict or validate untrusted query parameters until a patched release is applied; note that the trigger conditions for the restriction being dropped are not described in the available sources, so any such testing must be derived from the vendor advisory rather than assumed.
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 the official Ruby object-document mapper for MongoDB; it translates Ruby model scopes and query criteria into MongoDB query documents. This issue sits in the query-building layer rather than in MongoDB itself: when a model defines a default restriction meant to yield an empty result (a deny-all style default scope) and that restriction is later combined with other criteria during query composition, the restriction is discarded instead of being ANDed into the final selector. The result is an authorization failure (CWE-863, Incorrect Authorization) in which the database returns documents the model-level policy intended to hide. The supplied CPE string, cpe:2.3:a:mongodb:ruby_driver:*:*:*:*:*:*:*:*, is unbounded and appears to map the MongoDB Ruby driver family rather than a precise Mongoid gem version, so the exact affected release range is not enumerated in the available data. Exploitation requires a target application that depends on this Mongoid default-restriction mechanism for record-level withholding; applications enforcing authorization in a separate service or policy layer are not reached through this specific code path. The precise composition operations that trigger the drop are not described in the sources.
Know when MongoDB 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:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Remote low-privilege authenticated user (PR:L) sends an ordinary request (AC:L/UI:N); the dropped restriction exposes and lets them alter withheld records (C:H/I:H) with no availability loss.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
A logic flaw in the query-building layer of the Mongoid object-document mapper causes a model-level default restriction that is meant to return no records to be silently discarded when it is combined into a query. A user with basic application privileges who sends an ordinary request may read, change, or remove records that the restriction was intended to withhold.
Articles & Coverage 1
Executive ViewAI
A high-severity authorization flaw in Mongoid, the MongoDB object-document mapper used by Ruby applications, causes model-level default restrictions to be silently dropped during query building, letting authenticated users with only basic privileges access, alter, or delete records those restrictions were designed to protect. This affects any application that relies on Mongoid default scopes as an access-control boundary. Leadership should care because this can result in unauthorized data exposure and tampering within business applications, with potential integrity, confidentiality, and compliance consequences.
No vendor-released patch identified at time of analysis. Interim mitigations: enforce authorization explicitly in application code rather than relying on Mongoid default scopes, validate and constrain user-supplied query criteria, restrict database credentials to least privilege at the collection level, and monitor/alert on unusual read, update, or delete activity for protected record sets.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
EUVD-2026-135618
GHSA-fpw8-vqgq-r7xv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB