Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain read-only access to affected collection
-
ExploitQuery affected embedded document associations
-
ExecutionRead supposedly-encrypted fields stored in cleartext
-
ImpactExfiltrate sensitive data without encryption keys
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 | Requires a deployment that uses Mongoid's automatic (in-use/field-level) encryption and declares encrypted fields on the affected embedded document associations - the flaw is that Mongoid builds an incomplete encryption schema for 'certain embedded document associations', so only those specific association configurations are exposed; the exact triggering pattern is not described in the available sources. Exploitation (reading the exposed values) requires a principal with basic read privileges on the affected collection, but notably does NOT require access to the encryption keys. Limiting factors: the attacker must already hold authenticated read access to the collection (PR:L), the application must actually use Mongoid auto-encryption on the vulnerable embedded associations (non-default, feature-dependent), and only the specific fields that fell through the incomplete schema are readable - fields correctly encrypted remain protected. There is no integrity or availability impact and no user interaction is required. |
| Impact | Signals are moderate and internally consistent rather than alarming. The CVSS 4.0 base score is 7.1 (High) with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N; PR:L confirms this is an authenticated exposure - the beneficiary is a principal who already holds basic read privileges on the affected collection but does not hold the encryption keys. Impact is confidentiality-only (VC:H, VI:N, VA:N), consistent with CWE-312 (cleartext storage): there is no code execution, integrity or availability impact. No EPSS score, no CISA KEV listing, and no public exploit were provided; the only reference is a MongoDB Jira tracking ticket (MONGOID-6050), not a working exploit, so exploitation is not demonstrated. The vuln.today decision label is 'this_week' (not act_now/emergency), aligning with a prioritize-but-not-drop-everything posture. This is a genuine data-at-rest exposure rather than a high-CVSS-but-hollow issue, and the silent-failure nature (values written in cleartext with no error or warning) raises practical concern because operators may wrongly believe fields are encrypted; however, it is not remotely mass-exploitable - realistic risk is scoped to insiders, compromised low-privilege service accounts, backup/replica access, or anyone with read access to the collection who lacks the keys. Two data caveats: the CPE and 'Ruby Driver' tag name mongodb:ruby_driver, while the description explicitly names Mongoid (the Ruby ODM) - verify affected-component scope with the vendor - and no fixed version is listed in the available evidence. |
| Exploit ScenarioDerived | A user, insider, or compromised service account holding only read privileges on a MongoDB collection - and no access to the encryption keys - queries embedded documents whose fields the application declared as encrypted; because Mongoid built an incomplete automatic encryption schema, those values were written in cleartext and are returned in readable form. No public exploit code is available; only a MongoDB Jira ticket (MONGOID-6050) documents the issue, and the specific embedded-association trigger pattern is not detailed in the available sources. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Mongoid's automatic encryption can write values that an application declared as encrypted into MongoDB in cleartext for certain embedded document associations, with no error or warning returned. Applications are affected when they use Mongoid automatic/in-use field-level encryption and declare encrypted fields on the specific embedded associations that produce an incomplete encryption schema; an authenticated principal with only basic read privileges on the affected collection, and without the encryption keys, can then read those exposed values. No public exploit code has been identified at time of analysis, and the CVSS 4.0 score is 7.1 (assessed CVSS 3.1: 7.1, AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N), reflecting confidentiality impact only.
RemediationAI
No vendor-released patch or fixed version is identified in the available sources; MONGOID-6050 (https://jira.mongodb.org/browse/MONGOID-6050) is the tracking issue to monitor for a fix. Until a patched release is available, audit Mongoid models for encrypted fields declared on embedded document associations and verify whether the generated encryption schema includes those fields; for affected associations, do not rely on Mongoid automatic encryption-either encrypt the values in application code before persistence or avoid declaring encryption on those embedded associations, accepting the added application complexity and key-management burden. Because the exposure is readable by an authenticated principal with basic read privileges and no access to encryption keys, restrict read access to affected collections to trusted application identities; this limits who can retrieve the cleartext values but does not correct the underlying schema-generation defect.
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 applications. Its automatic encryption feature-also described as in-use or field-level encryption-relies on a generated schema that tells the driver which fields must be encrypted before being sent to MongoDB. For certain embedded document associations, Mongoid builds an incomplete schema, so declared encrypted fields are omitted from the encryption map and their values are persisted as plaintext. This is CWE-312 (Cleartext Storage of Sensitive Information): the database stores readable values even though the application's model declares encryption. The CPE entry cpe:2.3:a:mongodb:ruby_driver:*:*:*:*:*:*:*:* identifies the MongoDB Ruby driver family, but the issue is specifically in Mongoid's schema generation for affected embedded associations. The flaw requires a non-default deployment that uses automatic encryption and declares encrypted fields on those associations; the exact triggering pattern is not described in the available sources. Fields that are correctly included in the schema remain encrypted. No integrity or availability impact is described.
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:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Reader needs authenticated low-privilege collection access (PR:L) over the DB network (AV:N) but not the keys; confidentiality-only exposure (C:H), no integrity/availability impact, scope unchanged.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
Mongoid builds an incomplete automatic encryption schema for certain embedded document associations. As a result, values that the application declared as encrypted may be written to the database in cleartext, with no error or warning returned to the application. A party holding only basic read privileges on the affected collection, and no access to the encryption keys, may then obtain those values in readable form.
Articles & Coverage 1
Executive ViewAI
Mongoid's field-level encryption may silently write sensitive data in cleartext for embedded document associations, potentially exposing confidential information to unauthorized readers. This flaw affects applications using automatic encryption and could lead to data breaches, regulatory non-compliance, and reputational damage. Leadership must prioritize remediation to protect customer trust and avoid legal penalties.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict database read access to authorized users only, enable audit logging for affected collections, and consider application-level encryption for sensitive fields until a patch is available.
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
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
Incorrect authorization in Mongoid's bulk-removal handling for referenced associations can delete records the caller nev
EUVD-2026-135623
GHSA-jr9r-7gmf-6g53
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB