CVE-2026-126817
published medium CVSS 4.0 · 6.0Mongoid stores encrypted fields in plaintext when two models share a collection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB | — | Ruby Driver9.0.0 · 9.0.1 · 9.0.2 · 9.0.3 · 9.0.4 · 9.0.5 · 9.0.6 · 9.0.7 · 9.0.8 · 9.0.9 · 9.0.10 · 9.0.11 · 9.0.12 · 9.1.0 · 9.1.1 · Other versions: unaffected | Affected | Not stated | mongodb |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | mongodb · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB | Ruby Driver | 9.0.0 (affected · semver)9.0.1 (affected · semver)9.0.2 (affected · semver)9.0.3 (affected · semver)9.0.4 (affected · semver)9.0.5 (affected · semver)9.0.6 (affected · semver)9.0.7 (affected · semver)9.0.8 (affected · semver)9.0.9 (affected · semver)9.0.10 (affected · semver)9.0.11 (affected · semver)9.0.12 (affected · semver)9.1.0 (affected · semver)9.1.1 (affected · semver)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-312 CWE-312: Cleartext Storage of Sensitive Information
References
1Provider assertions
2mongodb · cna
Mongoid stores encrypted fields in plaintext when two models share a collection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2293fbe1c3e74f848ff5ca454d80b8901dfd86ac3c75814f3a50ddb1f55581fc
- Ingested
- 16 Nov 2026, 23:41:52 UTC
- Source record
- Official CVE record