Mongoid stores encrypted fields in plaintext when two models share a collection
Summary
| CVE | CVE-2026-126817 |
|---|---|
| State | PUBLISHED |
| Assigner | mongodb |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-13 16:18:46 UTC |
| Updated | 2026-11-13 16:18:46 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v4.0 6 MEDIUM from [email protected]
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Problem Types: CWE-312 | CWE-312 CWE-312: Cleartext Storage of Sensitive Information
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 6 | 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/E:X/C... |
| 4.0 | CNA | CVSS | 6 | 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 |
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | CVSS | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
PresentPrivileges Required
LowUser Interaction
NoneConfidentiality
HighIntegrity
NoneAvailability
NoneSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | MongoDB | Ruby Driver | affected 9.0.0 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.1 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.2 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.3 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.4 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.5 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.6 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.7 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.8 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.9 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.10 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.11 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.0.12 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.1.0 semver | Not specified |
| CNA | MongoDB | Ruby Driver | affected 9.1.1 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| jira.mongodb.org/browse/MONGOID-6037 | [email protected] | jira.mongodb.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.