Cleartext storage of encrypted foreign key fields in Mongoid
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 23, 2026
Description
Mongoid may omit a field from the client-side encryption settings it generates for a collection when that same field is also used as a reference to another record. The value is then stored in readable form instead of encrypted, and the application receives no indication that this has happened. A party with ordinary authenticated read access to the affected collection may be able to view data that was intended to be protected.
| Product | Versions |
|---|---|
| Ruby Driver MongoDB | 9.0.0 to before 9.1.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | mongodb | |
| 3.1 | 4.3 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.