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.
Affected products and versions
MongoDB Ruby Driver9.0.0 – < 9.1.3Fixed in: 9.1.3
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- Low impact
- Integrity
- None
- Availability
- None
Weakness type (CWE)
- CWE-312 Cleartext Storage of Sensitive Information
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.