Mongoid stores encrypted fields in plaintext when two models share a collection
- State
- Published
- Severity
- 6.0 Medium
- Published
- Nov 13, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 11, 2026
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.
| Product | Versions |
|---|---|
| Ruby Driver MongoDB | 9.0.0 Affected9.0.1 Affected9.0.2 Affected9.0.3 Affected9.0.4 Affected9.0.5 Affected9.0.6 Affected9.0.7 Affected9.0.8 Affected9.0.9 Affected9.0.10 Affected9.0.11 Affected9.0.12 Affected9.1.0 Affected9.1.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.0 Medium | mongodb | |
| 3.1 | 6.5 Medium | mongodb |
Weaknesses
- CWE-312 Cleartext Storage of Sensitive Information
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.