Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain read-only database account
-
ExploitIdentify collection shared by multiple Mongoid models
-
ExecutionQuery fields intended to be encrypted
-
ImpactRead sensitive values stored as cleartext
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V14 - Data Protection Encrypted storage of sensitive data
|
| Exploitation Conditions | Exploitation requires all of the following: (1) the application uses Mongoid's automatic client-side encryption with schema generation enabled; (2) more than one model is mapped onto the same storage location (collection), which is the specific condition that triggers declared-encrypted values to be written as cleartext with no error or warning; and (3) the attacker possesses at least an ordinary read-only database account (PR:L), though notably no access to encryption key material is needed. Limiting factors: this does not affect correctly-configured deployments where models map to distinct collections, requires a valid DB credential rather than fully unauthenticated access, and yields only confidentiality impact (no write or availability effect). |
| Impact | This is a moderate-severity information-disclosure flaw (CWE-312, cleartext storage) that depends heavily on a specific misconfiguration rather than being broadly exploitable. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N, 6.0) signals network reachability but gates exploitation behind two factors: PR:L means the attacker must already hold a database account (the description specifies an ordinary read-only account), and AT:P means a specific attack requirement must hold - here, that two or more models are mapped onto the same storage location so that declared-encrypted values silently persist as cleartext. Impact is confidentiality-only (VC:H; integrity and availability N). On exploitation signals: no CISA KEV entry, no EPSS score provided, and no public exploit or PoC reference - only a vendor Jira ticket (MONGOID-6037) - so this is no public exploit identified at time of analysis. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real-but-not-urgent priority: it is a genuine data-at-rest exposure for affected deployments, but it is neither remotely wormable nor exploitable against default, correctly-configured setups. One cross-source note: the CPE and tags label this 'ruby_driver', while the description and Jira key identify the affected component as the Mongoid ODM, which is a distinct gem layered on the driver - verify the exact affected package/versions with MongoDB. |
| Exploit ScenarioDerived | An application uses Mongoid's automatic client-side encryption with schema generation, and two models are mapped to the same collection, causing fields the developer marked for encryption to be written in cleartext with no error. An insider or third party holding only a read-only database account - and no access to the encryption keys - queries the collection and reads the sensitive values directly. No public exploit code is required; the data is simply stored unencrypted. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Mongoid's automatic client-side encryption can silently store values that an application declared for encryption as cleartext when more than one model is mapped onto the same storage location (collection), with no error or warning raised. Exploitation requires the specific multi-model mapping condition plus an ordinary read-only database account - no access to encryption key material is needed - so a low-privileged database reader could obtain the affected values in clear form. This is a moderate-severity confidentiality-only issue (CWE-312 cleartext storage, independent assessment CVSS:3.1 AV:N/AC:H/PR:L/UI:N/C:H/I:N/A:N) that is not confirmed as actively exploited (CISA KEV) and for which no public exploit code has been identified at time of analysis; the vendor-tracked issue is MONGOID-6037.
RemediationAI
No vendor-released fix version is confirmed in the available data; track https://jira.mongodb.org/browse/MONGOID-6037 for the patched release and apply it once identified, and verify after upgrading that auto-generated schemas for shared collections no longer omit declared-encrypted fields. Until then, the primary actionable control is to eliminate the triggering condition: audit the application's Mongoid models and ensure no two models are mapped onto the same collection where either declares fields for encryption, splitting them into distinct collections - a change that may require data migration and application refactoring. Where models must share a collection, replace reliance on automatic schema generation with an explicitly declared encryption schema so encrypted fields are not silently dropped, at the cost of manual maintenance of that schema. Because the flaw produces cleartext at rest, review values written while the condition existed - they may need re-encryption or key/data remediation, and any read-only database credentials that could see those collections should be treated as exposure paths and scoped down to the minimum required collections. Tightening database authorization to restrict ordinary read-only accounts is only a partial compensating control, since a legitimate low-privileged reader is precisely the actor the design intended to defend against.
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 Ruby object-document mapper for MongoDB, distributed in the MongoDB Ruby driver ecosystem (CPE cpe:2.3:a:mongodb:ruby_driver), and it supports MongoDB's client-side field level encryption through automatic encryption schema generation. That feature inspects model declarations to derive which fields must be encrypted on the wire and at rest. The root cause class is CWE-312 (cleartext storage of sensitive information): when two or more models are mapped onto the same collection, the generated encryption schema does not correctly reconcile the per-model encrypted-field declarations, so a field marked for encryption in one model is written unencrypted - with no error or warning surfaced to the application. The consequence is that ciphertext-at-rest expectations are violated without any indication, and the plaintext becomes readable through a normal database read path. The assessed Vector (CVSS:4.0 AT:P / CVSS:3.1 AC:H) reflects that the flaw is not broadly triggerable: it depends on the deployment-specific multi-model mapping precondition, and the attacker must hold at least a low-privileged (PR:L) database credential. The mechanism for generating and reconciling the schema across models is described only at that level in the available sources; the exact internal failure path is not documented publicly beyond the MONGOID-6037 tracking issue.
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:H/VI:N/VA:N/SC:N/SI:N/SA:N
Attacker needs a read-only DB account (PR:L) and the non-default condition of two models sharing one collection (AC:H); exposure is confidentiality-only (C:H, I:N, A:N).
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
A flaw in the automatic client-side encryption schema generation of the Mongoid ODM may cause values that an application declared for encryption to be written and stored as cleartext when more than one model is mapped onto the same storage location. No error or warning is raised. A party holding an ordinary read-only database account, with no access to the encryption key material, may then obtain those values in clear form.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
EUVD-2026-125452
GHSA-jw2c-7599-4ghc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB