Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain read-only database credential
-
ExploitQuery collection backed by inherited model
-
ImpactRead sensitive fields stored in plaintext
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V14 - Data Protection Encryption of sensitive data
|
| Exploitation Conditions | Exploitation requires three concrete conditions: (1) the application has the ODM's automatic (client-side) field-level encryption configured for sensitive fields; (2) at least one affected document model uses class inheritance, which is the specific trigger that causes designated fields to be written unencrypted; and (3) the attacker possesses a MongoDB database account with read access to the application's collections. What limits exploitation: the affected fields are silently exposed only for inheritance-based models - non-inherited models are unaffected - and the actor must already hold a valid read credential (PR:L), though notably they do NOT need access to the encryption key store. There is no remote unauthenticated path and no code execution; impact is confined to reading values that should have been encrypted. |
| Impact | This is a confidentiality-only data-at-rest exposure, not a remote code execution or mass-exploitation issue, and the supplied signals agree on a moderate, conditional risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) scores 7.1 but hinges on PR:L - the actor must already hold a MongoDB database account with read access to the application's collections. VC:H with VI:N/VA:N confirms the impact is pure disclosure of fields that were supposed to be client-side-encrypted. No EPSS score, KEV listing, or POC was provided, and there is no public exploit identified at time of analysis; the only reference is the vendor's own Jira tracker. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a flaw that requires both a specific configuration and pre-existing database access rather than opportunistic internet-wide attack. The real significance is that it defeats the exact trust boundary field-level encryption is deployed to enforce - separating people/accounts that can read the database from those that can read plaintext - so for compliance-driven deployments (CSFLE used to keep DBAs/read accounts away from PII) the control is silently bypassed for inherited-model fields. Note that EPSS is absent, so probabilistic exploitation likelihood cannot be compared here; the CVSS vector and description are internally consistent. |
| Exploit ScenarioDerived | An application uses the Ruby ODM's automatic field-level encryption to protect sensitive fields and deliberately separates encryption-key access from routine database read access for compliance. Because a document model uses class inheritance, certain designated fields are written to MongoDB in plaintext with no error or warning. A holder of a read-only database credential with no key-vault access - an analytics account, support engineer, or a leaked/compromised read credential - queries the collection and recovers the sensitive values. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Mongoid's automatic field-level (client-side) encryption is silently skipped for document models that use class inheritance, so values the application marked for encryption are persisted to MongoDB in readable plaintext with no error or warning. Any database account that can read the application's collections can then retrieve those values - notably without needing access to the encryption key store - though such an account must already exist with valid read credentials (CVSS 4.0 7.1, PR:L, confidentiality-only). The issue is rated this_week priority; no public exploit code and no confirmed active exploitation (CISA KEV) were identified at time of analysis.
RemediationAI
No vendor-released patch is identified in the supplied data; track MONGOID-6037 at https://jira.mongodb.org/browse/MONGOID-6037 for the fixed release and upgrade as soon as a patched version is published. Until then, the highest-value compensating control is to stop relying on inheritance for models that carry encrypted fields - declare the encryption configuration explicitly on each concrete model (or flatten the model hierarchy) - accepting the trade-off of duplicated declarations and some loss of code reuse. Verify the fix empirically rather than by inspection: write a test document through the affected model and read the raw document back from the collection to confirm the field is ciphertext. Treat existing data as already exposed: query the impacted collections for the designated fields and, where plaintext is found, re-encrypt via the application and rotate the affected secrets, accepting the operational cost of a data migration and key rotation. Restrict MongoDB read access so that only accounts genuinely needing collection reads hold them, since a read credential is the attacker's prerequisite - though note this does not repair data already written in plaintext and does not substitute for encryption. Given the moderate, conditional risk profile (this_week priority, confidentiality only, no public exploit identified), these steps can be scheduled within the current patch cycle rather than as an emergency.
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
The flaw is a missing-encryption case (CWE-311) in the client-side, application-layer field-level encryption provided by the Ruby ODM for MongoDB. Encryption in this model is applied by the ODM before documents are written, so the database only ever stores ciphertext for designated fields; the security guarantee depends entirely on the ODM correctly recognising which fields are designated. When a document model is built through class inheritance, that encryption configuration is not applied to certain fields, and the write path completes normally with plaintext values - no exception, no log entry. Per the assessed vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) the attack surface is the database itself: an actor holding a read-only database credential can query the affected collections and read the plaintext, despite having no access to the key store, which is what makes the exposure meaningful rather than a theoretical configuration error. Exploitation requires three things together: automatic encryption configured for sensitive fields, at least one affected model that uses inheritance (non-inherited models are unaffected), and a valid read account. There is no unauthenticated remote path, no integrity or availability impact, and no code execution. The sources do not describe which point of the inheritance chain (subclass-only declarations, inherited configuration not propagated, or similar) causes the omission, so the precise trigger mechanism is not described in the available 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:N/VA:N/SC:N/SI:N/SA:N
A network-reachable read-only database account (AV:N, PR:L) with no interaction can read fields that were meant to be encrypted, giving C:H with no integrity or availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
A Ruby object-document mapper does not apply its automatic field-level encryption configuration to certain fields when the data model uses class inheritance. Values the application designated for encryption are written to the database in readable form without any error or warning. A database account holding only read access to the application's collections, and no access to the encryption key store, may obtain those values.
Articles & Coverage 1
Executive ViewAI
Mongoid's client-side encryption is silently bypassed for Ruby models using class inheritance, causing sensitive data intended to be encrypted to be stored in plaintext within MongoDB. This affects any application using inherited Mongoid models with field-level encryption, potentially exposing regulated data to anyone with read access to the database, including those without encryption keys. Leadership should care because the flaw undermines a key security control, creating compliance and data breach risks.
No vendor-released patch identified at time of analysis. Interim mitigations include: refactoring models to avoid class inheritance for encrypted fields; implementing application-level encryption as a workaround; restricting database access to trusted accounts; and monitoring for unauthorized data access.
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.
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
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
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-125456
GHSA-q5w2-57qp-493f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB