CVE-2026-126818
Improper Encryption of Inherited Model Fields Leads to Information Disclosure
Overview
Description
A Ruby object-document mapper does not apply its automatic field-level encryption configuration to certain fields when the data model uses class inheritance. Values the application designated for encryption are written to the database in readable form without any error or warning. A database account holding only read access to the application's collections, and no access to the encryption key store, may obtain those values.
Source: OX vulnerability database
Severity
6.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-311
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | mongoid | — | ~> 9.0.139.1.2 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/advisories/GHSA-q5w2-57qp-493f
- github.com https://github.com/mongodb/mongoid/commit/d1c72108d6b2dc1a1e0a40267aa73bda61aed0ed
- github.com https://github.com/mongodb/mongoid/pull/6211
- github.com https://github.com/mongodb/mongoid/pull/6212
- github.com https://github.com/mongodb/mongoid/pull/6213
- github.com https://github.com/mongodb/mongoid/releases/tag/v9.0.13
- jira.mongodb.org https://jira.mongodb.org/browse/MONGOID-6037
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-126818
- rubygems.org https://rubygems.org/gems/mongoid/versions/9.0.13
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.