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

Read the record on cve.org

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.

ProductVersions
Ruby Driver MongoDB9.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

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.