Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain read access to DB/backup/data files
-
ExploitLocate fields intended for CSFLE on embedded models
-
ExecutionObserve values stored in cleartext
-
ImpactRecover sensitive data outside application boundary
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: (1) the application enables Mongoid's client-side field-level encryption (CSFLE) feature, (2) it declares fields intended for encryption on EMBEDDED models (top-level document fields are not implicated by this description), and (3) the party has read access to the MongoDB data - routine database read access, a database backup, or the underlying on-disk data files. The limiting factors are significant: this is not remote code execution and grants no write/integrity impact; it only exposes data at rest to someone who already has some form of database/backup/file read access, and only for apps that both use CSFLE and place encrypted fields on embedded documents. There is no active exploitation and no public exploit code identified at time of analysis. |
| Impact | This is a genuine but bounded confidentiality risk, and the signals are internally consistent. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N, 7.1) describes a pure confidentiality impact with no integrity or availability effect, which matches the description of a data-at-rest exposure. The real 'attack' is not an active exploit against a running service - it is that a party with routine read access to the database, a backup, or the underlying data files reads values that were supposed to be encrypted client-side. My independent read is that PR:L is appropriate (the reader needs some level of database/backup/file read access) and AV:N is defensible but slightly generous, since reading a backup or the underlying data files can be a local rather than network operation. No EPSS score, no CISA KEV entry, and no public exploit code are present in the input; there is nothing to 'weaponize' here beyond ordinary data access. This is a real correctness/data-protection defect worth remediating for teams relying on Mongoid CSFLE, but it is not an urgent internet-facing exploitation priority - its severity depends entirely on whether the affected app enables client-side field-level encryption AND declares encrypted fields on embedded models. |
| Exploit ScenarioDerived | An application uses Mongoid's client-side field-level encryption and declares sensitive fields (e.g., SSN, PAN) on an embedded document; because Mongoid omits the encryption rules for those embedded-model fields when generating the CSFLE schema, they are written to MongoDB in cleartext with no error or warning. A DBA, an attacker who obtains a database backup, or anyone with read access to the underlying data files later reads those values directly, defeating the encryption the developers believed was in effect. No public exploit code is identified in the input; exploitation is passive data reading rather than an active code-execution chain. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Mongoid can silently persist values in readable form that applications intended to encrypt, because its client-side field-level encryption (CSFLE) schema generation omits encryption rules for fields declared on embedded models - the MongoDB driver then writes those values unencrypted with no error or warning. The exposure is limited to applications that both enable CSFLE and declare encrypted fields on embedded documents (top-level fields are not implicated), and to parties who already hold read access to the database, a backup, or the underlying on-disk data files; there is no write, integrity, or availability impact and no remote code execution. Data-level risk is real but bounded: no public exploit code identified at time of analysis, no confirmed active exploitation, and the reported CVSS 4.0 base score of 7.1 is consistent with the independent CVSS 3.1 assessment of 7.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
RemediationAI
No vendor-released patch or fixed version was identified in the available data; remediation status should be confirmed against the upstream tracking issue at https://jira.mongodb.org/browse/MONGOID-5989 before relying on a release fix. Until a patched Mongoid release is confirmed, the most direct compensating control is to stop depending on auto-generated schema for embedded models: explicitly supply the CSFLE schema map (or explicitly register the encrypted field paths of embedded models with the driver) and verify at startup that every field path intended for encryption appears in the schema map with the expected algorithm and keyId. The trade-off is that a hand-maintained schema map must be updated whenever models change, and drift reintroduces the same silent plaintext failure, so pair it with automated assertions or tests that inspect a written document for the expected BSON subtype 6 (encrypted) rather than assuming it. As a secondary risk-reduction measure, treat the affected field data as already exposed: rotate or re-encrypt any secrets previously written to those fields, and re-write affected records once encryption is confirmed working - noting that re-encryption alone does not invalidate data already captured in backups or on disk. Restricting database read access, tightening backup and snapshot permissions, and applying storage- or volume-level encryption reduce exposure to the 'read access to data files/backups' vector, but their side effect is that they do not protect against an actor with legitimate MongoDB-level read credentials, which is precisely the primary threat path here; disabling CSFLE entirely is not an acceptable substitute, since it converts a silent failure into a broad one. Finally, review whether the encrypted embedded fields can be promoted to top-level document fields, which the reported issue does not affect, at the cost of a data migration.
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 (ODM) for MongoDB, and client-side field-level encryption (CSFLE) is a MongoDB driver feature in which the driver - not the server - encrypts specified BSON fields before transmission, using an explicit JSON schema map that pairs each field path with an encryption algorithm and key. Mongoid generates that schema map from model declarations; when an encrypted field is declared on an embedded model, the generated rule is missing, so the driver regards the field as ordinary plaintext and stores it as such. Because the driver is behaving correctly given an incomplete schema, the failure is entirely silent - no exception, no log entry, no deprecation warning - which is the classic CWE-312 (Cleartext Storage of Sensitive Information) pattern. The provided CPE cpe:2.3:a:mongodb_inc.:mongoid:*:*:*:*:*:*:*:* uses a wildcard and does not enumerate a version range, so the affected version set is not pinned by the available data; the upstream tracking reference is the MongoDB Jira issue MONGOID-5989.
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
Pure confidentiality (C:H) from cleartext-at-rest exposure; PR:L for required database/backup read access; AV:N accepted though backup/data-file reads may be local; no integrity or availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
Mongoid may omit encryption rules for fields declared on embedded models when generating the client-side field-level encryption schema. Applications that enable this feature can therefore store values intended to be encrypted in readable form, with no error or warning. A party with routine read access to the database, a backup, or the underlying data files may then see data that was meant to remain unreadable outside the application.
Executive ViewAI
Mongoid's client-side field-level encryption silently fails to protect fields declared on embedded documents, so data that application teams and compliance programs believe is encrypted may be written to MongoDB, backups, and on-disk files in readable form with no error or warning. Only applications that both enable CSFLE and declare encrypted fields on embedded models are affected, and reaching the data requires an attacker to already hold authenticated read access to the database or its underlying storage - there is no write, integrity, availability, or code-execution impact, and no public exploit identified at time of analysis. Leadership should care because this quietly erodes an encryption control that may underpin regulatory or contractual data-protection commitments, and no vendor patch was identified at time of analysis.
No vendor-released patch identified at time of analysis; interim mitigations: independently verify actual encryption by inspecting stored documents, snapshots, and on-disk data files rather than trusting schema configuration; restrict authenticated read access to databases, backups, and underlying storage to a minimal set of privileged identities; apply storage- and backup-level encryption and access controls; refactor encrypted embedded fields into top-level documents, which are not implicated by this issue, or add application-layer encryption before the Mongoid write path; and re-encrypt or purge existing plaintext values and rotate data-encryption keys where exposure is confirmed.
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's automatic client-side encryption can silently store values that an application declared for encryption as clea
EUVD-2026-83195
GHSA-p3g7-qcr8-3pgm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB