Cleartext storage of encrypted embedded fields in Mongoid
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-312.
Summary
MongoDB Ruby Driver from 9.0.0 before 9.1.3 builds an incomplete automatic encryption schema for certain embedded document associations. Values the application declares as encrypted may be written to the database in cleartext, with no error or warning returned. A remote attacker with only basic read privileges on the affected collection, and no access to the encryption keys, can read those values in readable form. The flaw is classified as CWE-312.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
Mongoid builds an incomplete automatic encryption schema for certain embedded document associations. As a result, values that the application declared as encrypted may be written to the database in cleartext, with no error or warning returned to the application. A party holding only basic read privileges on the affected collection, and no access to the encryption keys, may then obtain those values in readable form.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
MongoDB Ruby Driver fixed in 9.1.3. Upgrade to 9.1.3 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- Fix · CNA Ruby Driver (MongoDB) Fixed in 9.1.3
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
MongoDB Ruby Driver 9.1.3
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2026-98380 Improper restriction of object attributes in Mongoid belongs_to assignmentPriority MEDIUM 43
- TI-2026-98378 Incorrect authorization from a discarded default scope in MongoidPriority LOW 38
- TI-2026-98376 Incorrect authorization in Mongoid has_many delete_all removes extra recordsPriority LOW 27
Vendor assessments
Timeline
- 2026-11-25 Threatist record created from CVE-2026-135135
- 2026-11-25 Alias added: GHSA-jr9r-7gmf-6g53
- 2026-11-25 CISA SSVC decision points changed
- 2026-11-27 Affected versions changed · Red Hat
- 2026-11-27 CVSS score added · Red Hat
References
More MongoDB vulnerabilities
- TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
- TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-135135 · CVE Program
- CVE-2026-135135 · NVD
- FIRST EPSS
- GHSA-jr9r-7gmf-6g53 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-135135 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences