CVE-2026-135135

Description

A flaw was found in Mongoid. When generating automatic encryption schemas for certain embedded document associations, Mongoid fails to properly include all fields intended for encryption. Consequently, sensitive data is written to the database in cleartext without raising an error or warning to the application. An authenticated user with basic read access to the database collection can exploit this vulnerability to access sensitive information without possessing the encryption keys.

Statement

This flaw has a Moderate impact as Mongoid fails to generate a complete automatic encryption schema for certain embedded document associations, causing fields intended for encryption to be written to the database in cleartext. An authenticated user with basic read access to the affected MongoDB collection could read this data without the encryption keys. Mongoid is not shipped in any Red Hat enterprise product. The only Red Hat-adjacent occurrence is the Fedora rubygem-mongoid package, which ships version 7.3.3 -- a release that predates Mongoid 9.0.0, the version in which the automatic encryption schema feature (and therefore this flaw) was introduced. Red Hat products are not affected by this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Application Data

An attacker with access to the system could read sensitive information stored in cleartext (i.e., unencrypted). Even if the information is encoded in a way that is not human-readable, certain techniques could determine which encoding is being used, then decode the information.

Frequently Asked Questions

Want to get errata notifications? Sign up here.