Skip to main content

Mongoid EUVDEUVD-2026-125456

| CVE-2026-126818 HIGH
Missing Encryption of Sensitive Data (CWE-311)
2026-11-13 mongodb GHSA-q5w2-57qp-493f
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain read-only database credential
  2. Exploit
    Query collection backed by inherited model
  3. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Ruby Driver 9.0.4
Ruby Driver 9.1.1
Ruby Driver 9.1.0
Ruby Driver 9.0.11
Ruby Driver 9.0.9
Ruby Driver 9.0.8
Ruby Driver 9.0.3
Ruby Driver 9.0.1
Ruby Driver 9.0.2
Ruby Driver 9.0.7
Ruby Driver 9.0.12
Ruby Driver 9.0.0
Ruby Driver 9.0.10
Ruby Driver 9.0.6
Ruby Driver 9.0.5

Affected Packages

euvd ruby_driver no fix

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

Vendor (mongodb) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
widely used Ruby/Rails MongoDB ODM, but ecosystem-specific not ubiquitous
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy