cve.bz

CVE-2026-126817 Mongoid stores encrypted fields in plaintext when two models share a collection

6.0 medium

Medium (6.0) in mongodb ruby driver.

On this page
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.

Severity

CVSS 4.0

6.0 medium
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

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE
CWE-312 Cleartext Storage of Sensitive Information
OWASP Top 10
A06:2025 Insecure Design
Published
Assigned by
mongodb (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-126817 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-126817?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-126817?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-126817 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-126817

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-126817](https://cve.bz/cve/badge/CVE-2026-126817.svg)](https://cve.bz/cve/CVE-2026-126817)

HTML:

<a href="https://cve.bz/cve/CVE-2026-126817"><img src="https://cve.bz/cve/badge/CVE-2026-126817.svg" alt="CVE-2026-126817"></a>

Affected

  • mongodb:ruby driver

Versions

From the CNA's record in the CVE List.

ProductAffected
MongoDB Ruby Driver9.0.0
MongoDB Ruby Driver9.0.1
MongoDB Ruby Driver9.0.2
MongoDB Ruby Driver9.0.3
MongoDB Ruby Driver9.0.4
MongoDB Ruby Driver9.0.5
MongoDB Ruby Driver9.0.6
MongoDB Ruby Driver9.0.7
MongoDB Ruby Driver9.0.8
MongoDB Ruby Driver9.0.9
MongoDB Ruby Driver9.0.10
MongoDB Ruby Driver9.0.11
MongoDB Ruby Driver9.0.12
MongoDB Ruby Driver9.1.0
MongoDB Ruby Driver9.1.1

Attack patterns (CAPEC)

  • CAPEC-37 Retrieve Embedded Sensitive Data Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON