Mongoid stores encrypted fields in plaintext when two models share a collection

Summary

CVECVE-2026-126817
StatePUBLISHED
Assignermongodb
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-13 16:18:46 UTC
Updated2026-11-13 16:18:46 UTC
DescriptionA 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


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary6MEDIUMCVSS: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.0CNACVSS6MEDIUMCVSS: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]Secondary6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
3.1CNACVSS6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

CVSS v4.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Confidentiality
High
Integrity
None
Availability
None
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

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

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report