Skip to main content

Mongoid ODM CVE-2026-126817

| EUVDEUVD-2026-125452 MEDIUM
Cleartext Storage of Sensitive Information (CWE-312)
2026-11-13 mongodb GHSA-jw2c-7599-4ghc
6.0
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 account
  2. Exploit
    Identify collection shared by multiple Mongoid models
  3. Execution
    Query fields intended to be encrypted
  4. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 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

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

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

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

Vendor (mongodb) PRIMARY 6.0 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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).

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/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
Present
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 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

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
popular Ruby ODM for MongoDB, but client-side encryption feature less commonly enabled
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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.

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